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