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