
com.exacttarget.fuelsdk.internal.ValidationAction Maven / Gradle / Ivy
Show all versions of fuelsdk Show documentation
package com.exacttarget.fuelsdk.internal;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.cxf.xjc.runtime.JAXBToStringStyle;
/**
* Java class for ValidationAction complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ValidationAction">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="ValidationType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="ValidationOptions" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="ValidationOption" type="{http://exacttarget.com/wsdl/partnerAPI}APIProperty" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ValidationAction", propOrder = {
"validationType",
"validationOptions"
})
@XmlSeeAlso({
SpamAssassinValidation.class
})
public class ValidationAction {
@XmlElement(name = "ValidationType")
protected String validationType;
@XmlElement(name = "ValidationOptions")
protected ValidationAction.ValidationOptions validationOptions;
/**
* Gets the value of the validationType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValidationType() {
return validationType;
}
/**
* Sets the value of the validationType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValidationType(String value) {
this.validationType = value;
}
/**
* Gets the value of the validationOptions property.
*
* @return
* possible object is
* {@link ValidationAction.ValidationOptions }
*
*/
public ValidationAction.ValidationOptions getValidationOptions() {
return validationOptions;
}
/**
* Sets the value of the validationOptions property.
*
* @param value
* allowed object is
* {@link ValidationAction.ValidationOptions }
*
*/
public void setValidationOptions(ValidationAction.ValidationOptions value) {
this.validationOptions = value;
}
/**
* Generates a String representation of the contents of this type.
* This is an extension method, produced by the 'ts' xjc plugin
*
*/
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.DEFAULT_STYLE);
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="ValidationOption" type="{http://exacttarget.com/wsdl/partnerAPI}APIProperty" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"validationOption"
})
public static class ValidationOptions {
@XmlElement(name = "ValidationOption")
protected List validationOption;
/**
* Gets the value of the validationOption property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the validationOption property.
*
*
* For example, to add a new item, do as follows:
*
* getValidationOption().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link APIProperty }
*
*
*/
public List getValidationOption() {
if (validationOption == null) {
validationOption = new ArrayList();
}
return this.validationOption;
}
/**
* Generates a String representation of the contents of this type.
* This is an extension method, produced by the 'ts' xjc plugin
*
*/
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.DEFAULT_STYLE);
}
}
}