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