com.exacttarget.fuelsdk.internal.SaveAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fuelsdk Show documentation
Show all versions of fuelsdk Show documentation
Salesforce Marketing Cloud Java SDK
package com.exacttarget.fuelsdk.internal;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for SaveAction.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="SaveAction">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="AddOnly"/>
* <enumeration value="Default"/>
* <enumeration value="Nothing"/>
* <enumeration value="UpdateAdd"/>
* <enumeration value="UpdateOnly"/>
* <enumeration value="Delete"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "SaveAction")
@XmlEnum
public enum SaveAction {
@XmlEnumValue("AddOnly")
ADD_ONLY("AddOnly"),
@XmlEnumValue("Default")
DEFAULT("Default"),
@XmlEnumValue("Nothing")
NOTHING("Nothing"),
@XmlEnumValue("UpdateAdd")
UPDATE_ADD("UpdateAdd"),
@XmlEnumValue("UpdateOnly")
UPDATE_ONLY("UpdateOnly"),
@XmlEnumValue("Delete")
DELETE("Delete");
private final String value;
SaveAction(String v) {
value = v;
}
public String value() {
return value;
}
public static SaveAction fromValue(String v) {
for (SaveAction c: SaveAction.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}