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

package com.azure.resourcemanager.baremetalinfrastructure.models;

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

/** Resource power state. */
public final class AzureBareMetalInstancePowerStateEnum
    extends ExpandableStringEnum<AzureBareMetalInstancePowerStateEnum> {
    /** Static value starting for AzureBareMetalInstancePowerStateEnum. */
    public static final AzureBareMetalInstancePowerStateEnum STARTING = fromString("starting");

    /** Static value started for AzureBareMetalInstancePowerStateEnum. */
    public static final AzureBareMetalInstancePowerStateEnum STARTED = fromString("started");

    /** Static value stopping for AzureBareMetalInstancePowerStateEnum. */
    public static final AzureBareMetalInstancePowerStateEnum STOPPING = fromString("stopping");

    /** Static value stopped for AzureBareMetalInstancePowerStateEnum. */
    public static final AzureBareMetalInstancePowerStateEnum STOPPED = fromString("stopped");

    /** Static value restarting for AzureBareMetalInstancePowerStateEnum. */
    public static final AzureBareMetalInstancePowerStateEnum RESTARTING = fromString("restarting");

    /** Static value unknown for AzureBareMetalInstancePowerStateEnum. */
    public static final AzureBareMetalInstancePowerStateEnum UNKNOWN = fromString("unknown");

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

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

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