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

package com.azure.resourcemanager.avs.models;

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

/** The provisioning state. */
public final class WorkloadNetworkSegmentProvisioningState
    extends ExpandableStringEnum<WorkloadNetworkSegmentProvisioningState> {
    /** Static value Succeeded for WorkloadNetworkSegmentProvisioningState. */
    public static final WorkloadNetworkSegmentProvisioningState SUCCEEDED = fromString("Succeeded");

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

    /** Static value Building for WorkloadNetworkSegmentProvisioningState. */
    public static final WorkloadNetworkSegmentProvisioningState BUILDING = fromString("Building");

    /** Static value Deleting for WorkloadNetworkSegmentProvisioningState. */
    public static final WorkloadNetworkSegmentProvisioningState DELETING = fromString("Deleting");

    /** Static value Updating for WorkloadNetworkSegmentProvisioningState. */
    public static final WorkloadNetworkSegmentProvisioningState UPDATING = fromString("Updating");

    /** Static value Canceled for WorkloadNetworkSegmentProvisioningState. */
    public static final WorkloadNetworkSegmentProvisioningState CANCELED = fromString("Canceled");

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

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

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