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