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