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