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

/** Defines values for ScriptExecutionProvisioningState. */
public final class ScriptExecutionProvisioningState extends ExpandableStringEnum<ScriptExecutionProvisioningState> {
    /** Static value Pending for ScriptExecutionProvisioningState. */
    public static final ScriptExecutionProvisioningState PENDING = fromString("Pending");

    /** Static value Running for ScriptExecutionProvisioningState. */
    public static final ScriptExecutionProvisioningState RUNNING = fromString("Running");

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

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

    /** Static value Cancelling for ScriptExecutionProvisioningState. */
    public static final ScriptExecutionProvisioningState CANCELLING = fromString("Cancelling");

    /** Static value Cancelled for ScriptExecutionProvisioningState. */
    public static final ScriptExecutionProvisioningState CANCELLED = fromString("Cancelled");

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

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

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