com.vmware.vim25.TaskInfoState 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 TaskInfoState.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="TaskInfoState">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="queued"/>
* <enumeration value="running"/>
* <enumeration value="success"/>
* <enumeration value="error"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "TaskInfoState")
@XmlEnum
public enum TaskInfoState {
@XmlEnumValue("queued")
QUEUED("queued"),
@XmlEnumValue("running")
RUNNING("running"),
@XmlEnumValue("success")
SUCCESS("success"),
@XmlEnumValue("error")
ERROR("error");
private final String value;
TaskInfoState(String v) {
value = v;
}
public String value() {
return value;
}
public static TaskInfoState fromValue(String v) {
for (TaskInfoState c: TaskInfoState.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy