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

package com.azure.resourcemanager.containerservicefleet.models;

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

/** The provisioning state of the UpdateRun resource. */
public final class UpdateRunProvisioningState extends ExpandableStringEnum<UpdateRunProvisioningState> {
    /** Static value Succeeded for UpdateRunProvisioningState. */
    public static final UpdateRunProvisioningState SUCCEEDED = fromString("Succeeded");

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

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

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

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

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