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