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