com.sforce.soap.partner.LeadConvertResult Maven / Gradle / Ivy
package com.sforce.soap.partner;
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 LeadConvertResult complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="LeadConvertResult">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="accountId" type="{urn:partner.soap.sforce.com}ID"/>
* <element name="contactId" type="{urn:partner.soap.sforce.com}ID"/>
* <element name="errors" type="{urn:partner.soap.sforce.com}Error" maxOccurs="unbounded" minOccurs="0"/>
* <element name="leadId" type="{urn:partner.soap.sforce.com}ID"/>
* <element name="opportunityId" type="{urn:partner.soap.sforce.com}ID"/>
* <element name="success" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LeadConvertResult", propOrder = {
"accountId",
"contactId",
"errors",
"leadId",
"opportunityId",
"success"
})
public class LeadConvertResult {
@XmlElement(required = true, nillable = true)
protected String accountId;
@XmlElement(required = true, nillable = true)
protected String contactId;
protected List errors;
@XmlElement(required = true, nillable = true)
protected String leadId;
@XmlElement(required = true, nillable = true)
protected String opportunityId;
protected boolean success;
/**
* Gets the value of the accountId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAccountId() {
return accountId;
}
/**
* Sets the value of the accountId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAccountId(String value) {
this.accountId = value;
}
/**
* Gets the value of the contactId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContactId() {
return contactId;
}
/**
* Sets the value of the contactId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContactId(String value) {
this.contactId = value;
}
/**
* 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 Error }
*
*
*/
public List getErrors() {
if (errors == null) {
errors = new ArrayList();
}
return this.errors;
}
/**
* Gets the value of the leadId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLeadId() {
return leadId;
}
/**
* Sets the value of the leadId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLeadId(String value) {
this.leadId = value;
}
/**
* Gets the value of the opportunityId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOpportunityId() {
return opportunityId;
}
/**
* Sets the value of the opportunityId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOpportunityId(String value) {
this.opportunityId = value;
}
/**
* Gets the value of the success property.
*
*/
public boolean isSuccess() {
return success;
}
/**
* Sets the value of the success property.
*
*/
public void setSuccess(boolean value) {
this.success = value;
}
}