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

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

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

    /** Static value Joining for FleetMemberProvisioningState. */
    public static final FleetMemberProvisioningState JOINING = fromString("Joining");

    /** Static value Leaving for FleetMemberProvisioningState. */
    public static final FleetMemberProvisioningState LEAVING = fromString("Leaving");

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

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

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

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