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

package azure.resourcemanager.methodsubscriptionid.models;

import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;

/**
 * The provisioning state of a resource type.
 */
public final class ResourceProvisioningState extends ExpandableStringEnum<ResourceProvisioningState> {
    /**
     * Resource has been created.
     */
    public static final ResourceProvisioningState SUCCEEDED = fromString("Succeeded");

    /**
     * Resource creation failed.
     */
    public static final ResourceProvisioningState FAILED = fromString("Failed");

    /**
     * Resource creation was canceled.
     */
    public static final ResourceProvisioningState CANCELED = fromString("Canceled");

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

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

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