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