com.azure.resourcemanager.elastic.models.OperationName Maven / Gradle / Ivy
// 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
*
* Operation to be performed on the given vm resource id.
*/
public final class OperationName extends ExpandableStringEnum {
/** 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 values() {
return values(OperationName.class);
}
}