com.vmware.vim25.SessionManagerHttpServiceRequestSpecMethod 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 SessionManagerHttpServiceRequestSpecMethod.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="SessionManagerHttpServiceRequestSpecMethod">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="httpOptions"/>
* <enumeration value="httpGet"/>
* <enumeration value="httpHead"/>
* <enumeration value="httpPost"/>
* <enumeration value="httpPut"/>
* <enumeration value="httpDelete"/>
* <enumeration value="httpTrace"/>
* <enumeration value="httpConnect"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "SessionManagerHttpServiceRequestSpecMethod")
@XmlEnum
public enum SessionManagerHttpServiceRequestSpecMethod {
@XmlEnumValue("httpOptions")
HTTP_OPTIONS("httpOptions"),
@XmlEnumValue("httpGet")
HTTP_GET("httpGet"),
@XmlEnumValue("httpHead")
HTTP_HEAD("httpHead"),
@XmlEnumValue("httpPost")
HTTP_POST("httpPost"),
@XmlEnumValue("httpPut")
HTTP_PUT("httpPut"),
@XmlEnumValue("httpDelete")
HTTP_DELETE("httpDelete"),
@XmlEnumValue("httpTrace")
HTTP_TRACE("httpTrace"),
@XmlEnumValue("httpConnect")
HTTP_CONNECT("httpConnect");
private final String value;
SessionManagerHttpServiceRequestSpecMethod(String v) {
value = v;
}
public String value() {
return value;
}
public static SessionManagerHttpServiceRequestSpecMethod fromValue(String v) {
for (SessionManagerHttpServiceRequestSpecMethod c: SessionManagerHttpServiceRequestSpecMethod.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}