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