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