// 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 WorkloadNetworkPortMirroringProvisioningState
    extends ExpandableStringEnum<WorkloadNetworkPortMirroringProvisioningState> {
    /** Static value Succeeded for WorkloadNetworkPortMirroringProvisioningState. */
    public static final WorkloadNetworkPortMirroringProvisioningState SUCCEEDED = fromString("Succeeded");

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

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

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

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

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

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

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

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