// 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 of this node. */
public final class KubernetesNodePowerState extends ExpandableStringEnum<KubernetesNodePowerState> {
    /** Static value On for KubernetesNodePowerState. */
    public static final KubernetesNodePowerState ON = fromString("On");

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

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

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

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

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