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