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

package com.azure.resourcemanager.confluent.models;

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

/** Defines values for ProvisionState. */
public final class ProvisionState extends ExpandableStringEnum<ProvisionState> {
    /** Static value Accepted for ProvisionState. */
    public static final ProvisionState ACCEPTED = fromString("Accepted");

    /** Static value Creating for ProvisionState. */
    public static final ProvisionState CREATING = fromString("Creating");

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

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

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

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

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

    /** Static value Deleted for ProvisionState. */
    public static final ProvisionState DELETED = fromString("Deleted");

    /** Static value NotSpecified for ProvisionState. */
    public static final ProvisionState NOT_SPECIFIED = fromString("NotSpecified");

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

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