com.vmware.vim25.VirtualMachineGuestOsFamily 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 VirtualMachineGuestOsFamily.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="VirtualMachineGuestOsFamily">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="windowsGuest"/>
* <enumeration value="linuxGuest"/>
* <enumeration value="netwareGuest"/>
* <enumeration value="solarisGuest"/>
* <enumeration value="darwinGuestFamily"/>
* <enumeration value="otherGuestFamily"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "VirtualMachineGuestOsFamily")
@XmlEnum
public enum VirtualMachineGuestOsFamily {
@XmlEnumValue("windowsGuest")
WINDOWS_GUEST("windowsGuest"),
@XmlEnumValue("linuxGuest")
LINUX_GUEST("linuxGuest"),
@XmlEnumValue("netwareGuest")
NETWARE_GUEST("netwareGuest"),
@XmlEnumValue("solarisGuest")
SOLARIS_GUEST("solarisGuest"),
@XmlEnumValue("darwinGuestFamily")
DARWIN_GUEST_FAMILY("darwinGuestFamily"),
@XmlEnumValue("otherGuestFamily")
OTHER_GUEST_FAMILY("otherGuestFamily");
private final String value;
VirtualMachineGuestOsFamily(String v) {
value = v;
}
public String value() {
return value;
}
public static VirtualMachineGuestOsFamily fromValue(String v) {
for (VirtualMachineGuestOsFamily c: VirtualMachineGuestOsFamily.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}