org.voltdb.compiler.deploymentfile.ServerExportEnum Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.02.14 at 06:33:03 PM EST
//
package org.voltdb.compiler.deploymentfile;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for ServerExportEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="ServerExportEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="file"/>
* <enumeration value="jdbc"/>
* <enumeration value="kafka"/>
* <enumeration value="http"/>
* <enumeration value="rabbitmq"/>
* <enumeration value="elasticsearch"/>
* <enumeration value="custom"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "ServerExportEnum")
@XmlEnum
public enum ServerExportEnum {
@XmlEnumValue("file")
FILE("file"),
@XmlEnumValue("jdbc")
JDBC("jdbc"),
@XmlEnumValue("kafka")
KAFKA("kafka"),
@XmlEnumValue("http")
HTTP("http"),
@XmlEnumValue("rabbitmq")
RABBITMQ("rabbitmq"),
@XmlEnumValue("elasticsearch")
ELASTICSEARCH("elasticsearch"),
@XmlEnumValue("custom")
CUSTOM("custom");
private final String value;
ServerExportEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static ServerExportEnum fromValue(String v) {
for (ServerExportEnum c: ServerExportEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}