com.vmware.vim25.LatencySensitivitySensitivityLevel 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 LatencySensitivitySensitivityLevel.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="LatencySensitivitySensitivityLevel">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="low"/>
* <enumeration value="normal"/>
* <enumeration value="medium"/>
* <enumeration value="high"/>
* <enumeration value="custom"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "LatencySensitivitySensitivityLevel")
@XmlEnum
public enum LatencySensitivitySensitivityLevel {
@XmlEnumValue("low")
LOW("low"),
@XmlEnumValue("normal")
NORMAL("normal"),
@XmlEnumValue("medium")
MEDIUM("medium"),
@XmlEnumValue("high")
HIGH("high"),
@XmlEnumValue("custom")
CUSTOM("custom");
private final String value;
LatencySensitivitySensitivityLevel(String v) {
value = v;
}
public String value() {
return value;
}
public static LatencySensitivitySensitivityLevel fromValue(String v) {
for (LatencySensitivitySensitivityLevel c: LatencySensitivitySensitivityLevel.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}