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

package com.azure.resourcemanager.managednetworkfabric.models;

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

/** Administrative state. */
public final class AdministrativeState extends ExpandableStringEnum<AdministrativeState> {
    /** Static value Enable for AdministrativeState. */
    public static final AdministrativeState ENABLE = fromString("Enable");

    /** Static value Disable for AdministrativeState. */
    public static final AdministrativeState DISABLE = fromString("Disable");

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

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

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