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

package com.azure.resourcemanager.hybridcontainerservice.models;

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

/** Defines values for AgentPoolProvisioningState. */
public final class AgentPoolProvisioningState extends ExpandableStringEnum<AgentPoolProvisioningState> {
    /** Static value Succeeded for AgentPoolProvisioningState. */
    public static final AgentPoolProvisioningState SUCCEEDED = fromString("Succeeded");

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

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

    /** Static value InProgress for AgentPoolProvisioningState. */
    public static final AgentPoolProvisioningState IN_PROGRESS = fromString("InProgress");

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

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

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

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