com.vmware.vim25.PerformanceManagerUnit 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 PerformanceManagerUnit.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="PerformanceManagerUnit">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="percent"/>
* <enumeration value="kiloBytes"/>
* <enumeration value="megaBytes"/>
* <enumeration value="megaHertz"/>
* <enumeration value="number"/>
* <enumeration value="microsecond"/>
* <enumeration value="millisecond"/>
* <enumeration value="second"/>
* <enumeration value="kiloBytesPerSecond"/>
* <enumeration value="megaBytesPerSecond"/>
* <enumeration value="watt"/>
* <enumeration value="joule"/>
* <enumeration value="teraBytes"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "PerformanceManagerUnit")
@XmlEnum
public enum PerformanceManagerUnit {
@XmlEnumValue("percent")
PERCENT("percent"),
@XmlEnumValue("kiloBytes")
KILO_BYTES("kiloBytes"),
@XmlEnumValue("megaBytes")
MEGA_BYTES("megaBytes"),
@XmlEnumValue("megaHertz")
MEGA_HERTZ("megaHertz"),
@XmlEnumValue("number")
NUMBER("number"),
@XmlEnumValue("microsecond")
MICROSECOND("microsecond"),
@XmlEnumValue("millisecond")
MILLISECOND("millisecond"),
@XmlEnumValue("second")
SECOND("second"),
@XmlEnumValue("kiloBytesPerSecond")
KILO_BYTES_PER_SECOND("kiloBytesPerSecond"),
@XmlEnumValue("megaBytesPerSecond")
MEGA_BYTES_PER_SECOND("megaBytesPerSecond"),
@XmlEnumValue("watt")
WATT("watt"),
@XmlEnumValue("joule")
JOULE("joule"),
@XmlEnumValue("teraBytes")
TERA_BYTES("teraBytes");
private final String value;
PerformanceManagerUnit(String v) {
value = v;
}
public String value() {
return value;
}
public static PerformanceManagerUnit fromValue(String v) {
for (PerformanceManagerUnit c: PerformanceManagerUnit.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}