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

package com.azure.resourcemanager.networkcloud.models;

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

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

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

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

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

    /** Static value Accepted for BareMetalMachineProvisioningState. */
    public static final BareMetalMachineProvisioningState ACCEPTED = fromString("Accepted");

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

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

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