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

package com.azure.resourcemanager.managednetworkfabric.models;

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

/** On or Off power cycle state. */
public final class PowerCycleState extends ExpandableStringEnum<PowerCycleState> {
    /** Static value On for PowerCycleState. */
    public static final PowerCycleState ON = fromString("On");

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

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

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

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