com.vmware.vim25.ReplicationVmFaultReasonForFault 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 ReplicationVmFaultReasonForFault.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="ReplicationVmFaultReasonForFault">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="notConfigured"/>
* <enumeration value="poweredOff"/>
* <enumeration value="suspended"/>
* <enumeration value="poweredOn"/>
* <enumeration value="offlineReplicating"/>
* <enumeration value="invalidState"/>
* <enumeration value="invalidInstanceId"/>
* <enumeration value="closeDiskError"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "ReplicationVmFaultReasonForFault")
@XmlEnum
public enum ReplicationVmFaultReasonForFault {
@XmlEnumValue("notConfigured")
NOT_CONFIGURED("notConfigured"),
@XmlEnumValue("poweredOff")
POWERED_OFF("poweredOff"),
@XmlEnumValue("suspended")
SUSPENDED("suspended"),
@XmlEnumValue("poweredOn")
POWERED_ON("poweredOn"),
@XmlEnumValue("offlineReplicating")
OFFLINE_REPLICATING("offlineReplicating"),
@XmlEnumValue("invalidState")
INVALID_STATE("invalidState"),
@XmlEnumValue("invalidInstanceId")
INVALID_INSTANCE_ID("invalidInstanceId"),
@XmlEnumValue("closeDiskError")
CLOSE_DISK_ERROR("closeDiskError");
private final String value;
ReplicationVmFaultReasonForFault(String v) {
value = v;
}
public String value() {
return value;
}
public static ReplicationVmFaultReasonForFault fromValue(String v) {
for (ReplicationVmFaultReasonForFault c: ReplicationVmFaultReasonForFault.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}