// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.postgresql.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for ServerVersion. */
public final class ServerVersion extends ExpandableStringEnum<ServerVersion> {
    /** Static value 9.5 for ServerVersion. */
    public static final ServerVersion NINE_FIVE = fromString("9.5");

    /** Static value 9.6 for ServerVersion. */
    public static final ServerVersion NINE_SIX = fromString("9.6");

    /** Static value 10 for ServerVersion. */
    public static final ServerVersion ONE_ZERO = fromString("10");

    /** Static value 10.0 for ServerVersion. */
    public static final ServerVersion ONE_ZERO_ZERO = fromString("10.0");

    /** Static value 10.2 for ServerVersion. */
    public static final ServerVersion ONE_ZERO_TWO = fromString("10.2");

    /** Static value 11 for ServerVersion. */
    public static final ServerVersion ONE_ONE = fromString("11");

    /**
     * Creates or finds a ServerVersion from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding ServerVersion.
     */
    @JsonCreator
    public static ServerVersion fromString(String name) {
        return fromString(name, ServerVersion.class);
    }

    /** @return known ServerVersion values. */
    public static Collection<ServerVersion> values() {
        return values(ServerVersion.class);
    }
}
