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

package com.azure.resourcemanager.machinelearning.models;

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

/** The compute power action. */
public final class ComputePowerAction extends ExpandableStringEnum<ComputePowerAction> {
    /** Static value Start for ComputePowerAction. */
    public static final ComputePowerAction START = fromString("Start");

    /** Static value Stop for ComputePowerAction. */
    public static final ComputePowerAction STOP = fromString("Stop");

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

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

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