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

package com.azure.resourcemanager.storage.models;

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

/** Gets the state of virtual network rule. */
public final class State extends ExpandableStringEnum<State> {
    /** Static value Provisioning for State. */
    public static final State PROVISIONING = fromString("Provisioning");

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

    /** Static value Succeeded for State. */
    public static final State SUCCEEDED = fromString("Succeeded");

    /** Static value Failed for State. */
    public static final State FAILED = fromString("Failed");

    /** Static value NetworkSourceDeleted for State. */
    public static final State NETWORK_SOURCE_DELETED = fromString("NetworkSourceDeleted");

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

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