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

package com.azure.resourcemanager.elastic.models;

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

/**
 * OperationName
 *
 * <p>Operation to be performed on the given vm resource id.
 */
public final class OperationName extends ExpandableStringEnum<OperationName> {
    /** Static value Add for OperationName. */
    public static final OperationName ADD = fromString("Add");

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

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

    /**
     * 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);
    }

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