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