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