Class SingleEmailMessage

java.lang.Object
com.sforce.soap.partner.Email
com.sforce.soap.partner.SingleEmailMessage
All Implemented Interfaces:
IEmail, ISingleEmailMessage, com.sforce.ws.bind.XMLizable

public class SingleEmailMessage extends Email implements ISingleEmailMessage
This is a generated class for the SObject Enterprise API. Do not edit this file, as your changes will be lost.
  • Constructor Details

    • SingleEmailMessage

      public SingleEmailMessage()
      Constructor
  • Method Details

    • getBccAddresses

      public String[] getBccAddresses()
      Description copied from interface: ISingleEmailMessage
      element : bccAddresses of type {http://www.w3.org/2001/XMLSchema}string java type: java.lang.String[]
      Specified by:
      getBccAddresses in interface ISingleEmailMessage
    • setBccAddresses

      public void setBccAddresses(String[] bccAddresses)
      Specified by:
      setBccAddresses in interface ISingleEmailMessage
    • setBccAddresses

      protected void setBccAddresses(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getCcAddresses

      public String[] getCcAddresses()
      Description copied from interface: ISingleEmailMessage
      element : ccAddresses of type {http://www.w3.org/2001/XMLSchema}string java type: java.lang.String[]
      Specified by:
      getCcAddresses in interface ISingleEmailMessage
    • setCcAddresses

      public void setCcAddresses(String[] ccAddresses)
      Specified by:
      setCcAddresses in interface ISingleEmailMessage
    • setCcAddresses

      protected void setCcAddresses(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getCharset

      public String getCharset()
      Description copied from interface: ISingleEmailMessage
      element : charset of type {http://www.w3.org/2001/XMLSchema}string java type: java.lang.String
      Specified by:
      getCharset in interface ISingleEmailMessage
    • setCharset

      public void setCharset(String charset)
      Specified by:
      setCharset in interface ISingleEmailMessage
    • setCharset

      protected void setCharset(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getDocumentAttachments

      public String[] getDocumentAttachments()
      Description copied from interface: ISingleEmailMessage
      element : documentAttachments of type {urn:partner.soap.sforce.com}ID java type: java.lang.String[]
      Specified by:
      getDocumentAttachments in interface ISingleEmailMessage
    • setDocumentAttachments

      public void setDocumentAttachments(String[] documentAttachments)
      Specified by:
      setDocumentAttachments in interface ISingleEmailMessage
    • setDocumentAttachments

      protected void setDocumentAttachments(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getEntityAttachments

      public String[] getEntityAttachments()
      Description copied from interface: ISingleEmailMessage
      element : entityAttachments of type {urn:partner.soap.sforce.com}ID java type: java.lang.String[]
      Specified by:
      getEntityAttachments in interface ISingleEmailMessage
    • setEntityAttachments

      public void setEntityAttachments(String[] entityAttachments)
      Specified by:
      setEntityAttachments in interface ISingleEmailMessage
    • setEntityAttachments

      protected void setEntityAttachments(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getFileAttachments

      public EmailFileAttachment[] getFileAttachments()
      Description copied from interface: ISingleEmailMessage
      element : fileAttachments of type {urn:partner.soap.sforce.com}EmailFileAttachment java type: com.sforce.soap.partner.EmailFileAttachment[]
      Specified by:
      getFileAttachments in interface ISingleEmailMessage
    • setFileAttachments

      public void setFileAttachments(IEmailFileAttachment[] fileAttachments)
      Specified by:
      setFileAttachments in interface ISingleEmailMessage
    • setFileAttachments

      protected void setFileAttachments(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getHtmlBody

      public String getHtmlBody()
      Description copied from interface: ISingleEmailMessage
      element : htmlBody of type {http://www.w3.org/2001/XMLSchema}string java type: java.lang.String
      Specified by:
      getHtmlBody in interface ISingleEmailMessage
    • setHtmlBody

      public void setHtmlBody(String htmlBody)
      Specified by:
      setHtmlBody in interface ISingleEmailMessage
    • setHtmlBody

      protected void setHtmlBody(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getInReplyTo

      public String getInReplyTo()
      Description copied from interface: ISingleEmailMessage
      element : inReplyTo of type {http://www.w3.org/2001/XMLSchema}string java type: java.lang.String
      Specified by:
      getInReplyTo in interface ISingleEmailMessage
    • setInReplyTo

      public void setInReplyTo(String inReplyTo)
      Specified by:
      setInReplyTo in interface ISingleEmailMessage
    • setInReplyTo

      protected void setInReplyTo(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getOptOutPolicy

      public SendEmailOptOutPolicy getOptOutPolicy()
      Description copied from interface: ISingleEmailMessage
      element : optOutPolicy of type {urn:partner.soap.sforce.com}SendEmailOptOutPolicy java type: com.sforce.soap.partner.SendEmailOptOutPolicy
      Specified by:
      getOptOutPolicy in interface ISingleEmailMessage
    • setOptOutPolicy

      public void setOptOutPolicy(SendEmailOptOutPolicy optOutPolicy)
      Specified by:
      setOptOutPolicy in interface ISingleEmailMessage
    • setOptOutPolicy

      protected void setOptOutPolicy(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getOrgWideEmailAddressId

      public String getOrgWideEmailAddressId()
      Description copied from interface: ISingleEmailMessage
      element : orgWideEmailAddressId of type {urn:partner.soap.sforce.com}ID java type: java.lang.String
      Specified by:
      getOrgWideEmailAddressId in interface ISingleEmailMessage
    • setOrgWideEmailAddressId

      public void setOrgWideEmailAddressId(String orgWideEmailAddressId)
      Specified by:
      setOrgWideEmailAddressId in interface ISingleEmailMessage
    • setOrgWideEmailAddressId

      protected void setOrgWideEmailAddressId(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getPlainTextBody

      public String getPlainTextBody()
      Description copied from interface: ISingleEmailMessage
      element : plainTextBody of type {http://www.w3.org/2001/XMLSchema}string java type: java.lang.String
      Specified by:
      getPlainTextBody in interface ISingleEmailMessage
    • setPlainTextBody

      public void setPlainTextBody(String plainTextBody)
      Specified by:
      setPlainTextBody in interface ISingleEmailMessage
    • setPlainTextBody

      protected void setPlainTextBody(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getReferences

      public String getReferences()
      Description copied from interface: ISingleEmailMessage
      element : references of type {http://www.w3.org/2001/XMLSchema}string java type: java.lang.String
      Specified by:
      getReferences in interface ISingleEmailMessage
    • setReferences

      public void setReferences(String references)
      Specified by:
      setReferences in interface ISingleEmailMessage
    • setReferences

      protected void setReferences(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getTargetObjectId

      public String getTargetObjectId()
      Description copied from interface: ISingleEmailMessage
      element : targetObjectId of type {urn:partner.soap.sforce.com}ID java type: java.lang.String
      Specified by:
      getTargetObjectId in interface ISingleEmailMessage
    • setTargetObjectId

      public void setTargetObjectId(String targetObjectId)
      Specified by:
      setTargetObjectId in interface ISingleEmailMessage
    • setTargetObjectId

      protected void setTargetObjectId(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getTemplateId

      public String getTemplateId()
      Description copied from interface: ISingleEmailMessage
      element : templateId of type {urn:partner.soap.sforce.com}ID java type: java.lang.String
      Specified by:
      getTemplateId in interface ISingleEmailMessage
    • setTemplateId

      public void setTemplateId(String templateId)
      Specified by:
      setTemplateId in interface ISingleEmailMessage
    • setTemplateId

      protected void setTemplateId(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getTemplateName

      public String getTemplateName()
      Description copied from interface: ISingleEmailMessage
      element : templateName of type {http://www.w3.org/2001/XMLSchema}string java type: java.lang.String
      Specified by:
      getTemplateName in interface ISingleEmailMessage
    • setTemplateName

      public void setTemplateName(String templateName)
      Specified by:
      setTemplateName in interface ISingleEmailMessage
    • setTemplateName

      protected void setTemplateName(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getToAddresses

      public String[] getToAddresses()
      Description copied from interface: ISingleEmailMessage
      element : toAddresses of type {http://www.w3.org/2001/XMLSchema}string java type: java.lang.String[]
      Specified by:
      getToAddresses in interface ISingleEmailMessage
    • setToAddresses

      public void setToAddresses(String[] toAddresses)
      Specified by:
      setToAddresses in interface ISingleEmailMessage
    • setToAddresses

      protected void setToAddresses(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getTreatBodiesAsTemplate

      public Boolean getTreatBodiesAsTemplate()
      Description copied from interface: ISingleEmailMessage
      element : treatBodiesAsTemplate of type {http://www.w3.org/2001/XMLSchema}boolean java type: java.lang.Boolean
      Specified by:
      getTreatBodiesAsTemplate in interface ISingleEmailMessage
    • setTreatBodiesAsTemplate

      public void setTreatBodiesAsTemplate(Boolean treatBodiesAsTemplate)
      Specified by:
      setTreatBodiesAsTemplate in interface ISingleEmailMessage
    • setTreatBodiesAsTemplate

      protected void setTreatBodiesAsTemplate(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getTreatTargetObjectAsRecipient

      public Boolean getTreatTargetObjectAsRecipient()
      Description copied from interface: ISingleEmailMessage
      element : treatTargetObjectAsRecipient of type {http://www.w3.org/2001/XMLSchema}boolean java type: java.lang.Boolean
      Specified by:
      getTreatTargetObjectAsRecipient in interface ISingleEmailMessage
    • setTreatTargetObjectAsRecipient

      public void setTreatTargetObjectAsRecipient(Boolean treatTargetObjectAsRecipient)
      Specified by:
      setTreatTargetObjectAsRecipient in interface ISingleEmailMessage
    • setTreatTargetObjectAsRecipient

      protected void setTreatTargetObjectAsRecipient(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • getWhatId

      public String getWhatId()
      Description copied from interface: ISingleEmailMessage
      element : whatId of type {urn:partner.soap.sforce.com}ID java type: java.lang.String
      Specified by:
      getWhatId in interface ISingleEmailMessage
    • setWhatId

      public void setWhatId(String whatId)
      Specified by:
      setWhatId in interface ISingleEmailMessage
    • setWhatId

      protected void setWhatId(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • write

      public void write(QName __element, com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException
      Specified by:
      write in interface com.sforce.ws.bind.XMLizable
      Overrides:
      write in class Email
      Throws:
      IOException
    • writeFields

      protected void writeFields(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException
      Overrides:
      writeFields in class Email
      Throws:
      IOException
    • load

      public void load(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Specified by:
      load in interface com.sforce.ws.bind.XMLizable
      Overrides:
      load in class Email
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • loadFields

      protected void loadFields(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws IOException, com.sforce.ws.ConnectionException
      Overrides:
      loadFields in class Email
      Throws:
      IOException
      com.sforce.ws.ConnectionException
    • toString

      public String toString()
      Overrides:
      toString in class Email