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

package com.azure.resourcemanager.mysqlflexibleserver.models;

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

/** Enum to indicate whether value is 'Enabled' or 'Disabled'. */
public final class EnableStatusEnum extends ExpandableStringEnum<EnableStatusEnum> {
    /** Static value Enabled for EnableStatusEnum. */
    public static final EnableStatusEnum ENABLED = fromString("Enabled");

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

    /**
     * Creates a new instance of EnableStatusEnum value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public EnableStatusEnum() {
    }

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

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