
com.bronto.api.model.WriteResult Maven / Gradle / Ivy
package com.bronto.api.model;
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.XmlType;
/**
* Java class for writeResult complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="writeResult">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="errors" type="{http://www.w3.org/2001/XMLSchema}int" maxOccurs="unbounded" minOccurs="0"/>
* <element name="results" type="{http://api.bronto.com/v4}resultItem" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "writeResult", propOrder = {
"errors",
"results"
})
public class WriteResult {
@XmlElement(nillable = true)
protected List errors;
@XmlElement(nillable = true)
protected List results;
/**
* Gets the value of the errors 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 errors property.
*
*
* For example, to add a new item, do as follows:
*
* getErrors().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Integer }
*
*
*/
public List getErrors() {
if (errors == null) {
errors = new ArrayList();
}
return this.errors;
}
/**
* Gets the value of the results 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 results property.
*
*
* For example, to add a new item, do as follows:
*
* getResults().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ResultItem }
*
*
*/
public List getResults() {
if (results == null) {
results = new ArrayList();
}
return this.results;
}
}