com.vmware.vim25.VsanHostNodeState 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 VsanHostNodeState.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="VsanHostNodeState">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="error"/>
* <enumeration value="disabled"/>
* <enumeration value="agent"/>
* <enumeration value="master"/>
* <enumeration value="backup"/>
* <enumeration value="starting"/>
* <enumeration value="stopping"/>
* <enumeration value="enteringMaintenanceMode"/>
* <enumeration value="exitingMaintenanceMode"/>
* <enumeration value="decommissioning"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "VsanHostNodeState")
@XmlEnum
public enum VsanHostNodeState {
@XmlEnumValue("error")
ERROR("error"),
@XmlEnumValue("disabled")
DISABLED("disabled"),
@XmlEnumValue("agent")
AGENT("agent"),
@XmlEnumValue("master")
MASTER("master"),
@XmlEnumValue("backup")
BACKUP("backup"),
@XmlEnumValue("starting")
STARTING("starting"),
@XmlEnumValue("stopping")
STOPPING("stopping"),
@XmlEnumValue("enteringMaintenanceMode")
ENTERING_MAINTENANCE_MODE("enteringMaintenanceMode"),
@XmlEnumValue("exitingMaintenanceMode")
EXITING_MAINTENANCE_MODE("exitingMaintenanceMode"),
@XmlEnumValue("decommissioning")
DECOMMISSIONING("decommissioning");
private final String value;
VsanHostNodeState(String v) {
value = v;
}
public String value() {
return value;
}
public static VsanHostNodeState fromValue(String v) {
for (VsanHostNodeState c: VsanHostNodeState.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy