com.vmware.vim25.DrsBehavior 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 DrsBehavior.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="DrsBehavior">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="manual"/>
* <enumeration value="partiallyAutomated"/>
* <enumeration value="fullyAutomated"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "DrsBehavior")
@XmlEnum
public enum DrsBehavior {
@XmlEnumValue("manual")
MANUAL("manual"),
@XmlEnumValue("partiallyAutomated")
PARTIALLY_AUTOMATED("partiallyAutomated"),
@XmlEnumValue("fullyAutomated")
FULLY_AUTOMATED("fullyAutomated");
private final String value;
DrsBehavior(String v) {
value = v;
}
public String value() {
return value;
}
public static DrsBehavior fromValue(String v) {
for (DrsBehavior c: DrsBehavior.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}