// 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 power state derived from the baseboard management controller. */
public final class BareMetalMachinePowerState extends ExpandableStringEnum<BareMetalMachinePowerState> {
    /** Static value On for BareMetalMachinePowerState. */
    public static final BareMetalMachinePowerState ON = fromString("On");

    /** Static value Off for BareMetalMachinePowerState. */
    public static final BareMetalMachinePowerState OFF = fromString("Off");

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

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

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