com.vmware.pbm.PbmComplianceStatus Maven / Gradle / Ivy
package com.vmware.pbm;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for PbmComplianceStatus.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="PbmComplianceStatus">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="compliant"/>
* <enumeration value="nonCompliant"/>
* <enumeration value="unknown"/>
* <enumeration value="notApplicable"/>
* <enumeration value="outOfDate"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "PbmComplianceStatus")
@XmlEnum
public enum PbmComplianceStatus {
@XmlEnumValue("compliant")
COMPLIANT("compliant"),
@XmlEnumValue("nonCompliant")
NON_COMPLIANT("nonCompliant"),
@XmlEnumValue("unknown")
UNKNOWN("unknown"),
@XmlEnumValue("notApplicable")
NOT_APPLICABLE("notApplicable"),
@XmlEnumValue("outOfDate")
OUT_OF_DATE("outOfDate");
private final String value;
PbmComplianceStatus(String v) {
value = v;
}
public String value() {
return value;
}
public static PbmComplianceStatus fromValue(String v) {
for (PbmComplianceStatus c: PbmComplianceStatus.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}