com.sforce.soap.partner
Class LeadConvertResult

java.lang.Object
  extended by com.sforce.soap.partner.LeadConvertResult

public class LeadConvertResult
extends java.lang.Object

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>
 


Field Summary
protected  java.lang.String accountId
           
protected  java.lang.String contactId
           
protected  java.util.List<Error> errors
           
protected  java.lang.String leadId
           
protected  java.lang.String opportunityId
           
protected  boolean success
           
 
Constructor Summary
LeadConvertResult()
           
 
Method Summary
 java.lang.String getAccountId()
          Gets the value of the accountId property.
 java.lang.String getContactId()
          Gets the value of the contactId property.
 java.util.List<Error> getErrors()
          Gets the value of the errors property.
 java.lang.String getLeadId()
          Gets the value of the leadId property.
 java.lang.String getOpportunityId()
          Gets the value of the opportunityId property.
 boolean isSuccess()
          Gets the value of the success property.
 void setAccountId(java.lang.String value)
          Sets the value of the accountId property.
 void setContactId(java.lang.String value)
          Sets the value of the contactId property.
 void setLeadId(java.lang.String value)
          Sets the value of the leadId property.
 void setOpportunityId(java.lang.String value)
          Sets the value of the opportunityId property.
 void setSuccess(boolean value)
          Sets the value of the success property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

accountId

protected java.lang.String accountId

contactId

protected java.lang.String contactId

errors

protected java.util.List<Error> errors

leadId

protected java.lang.String leadId

opportunityId

protected java.lang.String opportunityId

success

protected boolean success
Constructor Detail

LeadConvertResult

public LeadConvertResult()
Method Detail

getAccountId

public java.lang.String getAccountId()
Gets the value of the accountId property.

Returns:
possible object is String

setAccountId

public void setAccountId(java.lang.String value)
Sets the value of the accountId property.

Parameters:
value - allowed object is String

getContactId

public java.lang.String getContactId()
Gets the value of the contactId property.

Returns:
possible object is String

setContactId

public void setContactId(java.lang.String value)
Sets the value of the contactId property.

Parameters:
value - allowed object is String

getErrors

public java.util.List<Error> getErrors()
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 Error


getLeadId

public java.lang.String getLeadId()
Gets the value of the leadId property.

Returns:
possible object is String

setLeadId

public void setLeadId(java.lang.String value)
Sets the value of the leadId property.

Parameters:
value - allowed object is String

getOpportunityId

public java.lang.String getOpportunityId()
Gets the value of the opportunityId property.

Returns:
possible object is String

setOpportunityId

public void setOpportunityId(java.lang.String value)
Sets the value of the opportunityId property.

Parameters:
value - allowed object is String

isSuccess

public boolean isSuccess()
Gets the value of the success property.


setSuccess

public void setSuccess(boolean value)
Sets the value of the success property.



Copyright © 2010. All Rights Reserved.