// 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;

/**
 * Observed deployment state of the Arc Agents on the target cluster. Possible values include: 'pending',
 * 'provisioning', 'provisioned', 'deleting', 'failed', 'upgrading'.
 */
public final class DeploymentState extends ExpandableStringEnum<DeploymentState> {
    /** Static value pending for DeploymentState. */
    public static final DeploymentState PENDING = fromString("pending");

    /** Static value provisioning for DeploymentState. */
    public static final DeploymentState PROVISIONING = fromString("provisioning");

    /** Static value provisioned for DeploymentState. */
    public static final DeploymentState PROVISIONED = fromString("provisioned");

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

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

    /** Static value upgrading for DeploymentState. */
    public static final DeploymentState UPGRADING = fromString("upgrading");

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

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

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