// 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;

/** Operational state for the resource. */
public final class NetworkFabricOperationalState extends ExpandableStringEnum<NetworkFabricOperationalState> {
    /** Static value Provisioning for NetworkFabricOperationalState. */
    public static final NetworkFabricOperationalState PROVISIONING = fromString("Provisioning");

    /** Static value Provisioned for NetworkFabricOperationalState. */
    public static final NetworkFabricOperationalState PROVISIONED = fromString("Provisioned");

    /** Static value ErrorProvisioning for NetworkFabricOperationalState. */
    public static final NetworkFabricOperationalState ERROR_PROVISIONING = fromString("ErrorProvisioning");

    /** Static value Deprovisioning for NetworkFabricOperationalState. */
    public static final NetworkFabricOperationalState DEPROVISIONING = fromString("Deprovisioning");

    /** Static value Deprovisioned for NetworkFabricOperationalState. */
    public static final NetworkFabricOperationalState DEPROVISIONED = fromString("Deprovisioned");

    /** Static value ErrorDeprovisioning for NetworkFabricOperationalState. */
    public static final NetworkFabricOperationalState ERROR_DEPROVISIONING = fromString("ErrorDeprovisioning");

    /** Static value DeferredControl for NetworkFabricOperationalState. */
    public static final NetworkFabricOperationalState DEFERRED_CONTROL = fromString("DeferredControl");

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

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

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