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