com.vmware.vim25.ArrayUpdateOperation Maven / Gradle / Ivy
package com.vmware.vim25;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for ArrayUpdateOperation.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="ArrayUpdateOperation">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="add"/>
* <enumeration value="remove"/>
* <enumeration value="edit"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "ArrayUpdateOperation")
@XmlEnum
public enum ArrayUpdateOperation {
@XmlEnumValue("add")
ADD("add"),
@XmlEnumValue("remove")
REMOVE("remove"),
@XmlEnumValue("edit")
EDIT("edit");
private final String value;
ArrayUpdateOperation(String v) {
value = v;
}
public String value() {
return value;
}
public static ArrayUpdateOperation fromValue(String v) {
for (ArrayUpdateOperation c: ArrayUpdateOperation.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}