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