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