com.vmware.vim25.HostPatchManagerReason 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 HostPatchManagerReason.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="HostPatchManagerReason">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="obsoleted"/>
* <enumeration value="missingPatch"/>
* <enumeration value="missingLib"/>
* <enumeration value="hasDependentPatch"/>
* <enumeration value="conflictPatch"/>
* <enumeration value="conflictLib"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "HostPatchManagerReason")
@XmlEnum
public enum HostPatchManagerReason {
@XmlEnumValue("obsoleted")
OBSOLETED("obsoleted"),
@XmlEnumValue("missingPatch")
MISSING_PATCH("missingPatch"),
@XmlEnumValue("missingLib")
MISSING_LIB("missingLib"),
@XmlEnumValue("hasDependentPatch")
HAS_DEPENDENT_PATCH("hasDependentPatch"),
@XmlEnumValue("conflictPatch")
CONFLICT_PATCH("conflictPatch"),
@XmlEnumValue("conflictLib")
CONFLICT_LIB("conflictLib");
private final String value;
HostPatchManagerReason(String v) {
value = v;
}
public String value() {
return value;
}
public static HostPatchManagerReason fromValue(String v) {
for (HostPatchManagerReason c: HostPatchManagerReason.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}