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

package com.azure.resourcemanager.sql.models;

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

/** The state of the elastic pool. */
public final class ElasticPoolState extends ExpandableStringEnum<ElasticPoolState> {
    /** Static value Creating for ElasticPoolState. */
    public static final ElasticPoolState CREATING = fromString("Creating");

    /** Static value Ready for ElasticPoolState. */
    public static final ElasticPoolState READY = fromString("Ready");

    /** Static value Disabled for ElasticPoolState. */
    public static final ElasticPoolState DISABLED = fromString("Disabled");

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

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