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