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

package com.azure.resourcemanager.machinelearningservices.models;

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

/** Defines values for OperationName. */
public final class OperationName extends ExpandableStringEnum<OperationName> {
    /** Static value Create for OperationName. */
    public static final OperationName CREATE = fromString("Create");

    /** Static value Start for OperationName. */
    public static final OperationName START = fromString("Start");

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

    /** Static value Restart for OperationName. */
    public static final OperationName RESTART = fromString("Restart");

    /** Static value Reimage for OperationName. */
    public static final OperationName REIMAGE = fromString("Reimage");

    /** Static value Delete for OperationName. */
    public static final OperationName DELETE = fromString("Delete");

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

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