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

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

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

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

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

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

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

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

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