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

package com.azure.resourcemanager.kubernetesconfiguration.models;

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

/** The provisioning state of the resource provider. */
public final class ProvisioningStateType extends ExpandableStringEnum<ProvisioningStateType> {
    /** Static value Accepted for ProvisioningStateType. */
    public static final ProvisioningStateType ACCEPTED = fromString("Accepted");

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

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

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

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

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

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

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