public class CampaignEmailMessage extends Object implements Serializable
| Constructor and Description |
|---|
CampaignEmailMessage() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getBody()
The email text body.
|
String |
getFromAddress()
The email address used to send the email from.
|
String |
getHtmlBody()
The email html body.
|
String |
getTitle()
The email title (Or subject).
|
int |
hashCode() |
void |
setBody(String body)
The email text body.
|
void |
setFromAddress(String fromAddress)
The email address used to send the email from.
|
void |
setHtmlBody(String htmlBody)
The email html body.
|
void |
setTitle(String title)
The email title (Or subject).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CampaignEmailMessage |
withBody(String body)
The email text body.
|
CampaignEmailMessage |
withFromAddress(String fromAddress)
The email address used to send the email from.
|
CampaignEmailMessage |
withHtmlBody(String htmlBody)
The email html body.
|
CampaignEmailMessage |
withTitle(String title)
The email title (Or subject).
|
public String getBody()
public void setBody(String body)
body - The email text body.public CampaignEmailMessage withBody(String body)
Returns a reference to this object so that method calls can be chained together.
body - The email text body.public String getFromAddress()
public void setFromAddress(String fromAddress)
fromAddress - The email address used to send the email from.
Defaults to use FromAddress specified in the Email Channel.public CampaignEmailMessage withFromAddress(String fromAddress)
Returns a reference to this object so that method calls can be chained together.
fromAddress - The email address used to send the email from.
Defaults to use FromAddress specified in the Email Channel.public String getHtmlBody()
public void setHtmlBody(String htmlBody)
htmlBody - The email html body.public CampaignEmailMessage withHtmlBody(String htmlBody)
Returns a reference to this object so that method calls can be chained together.
htmlBody - The email html body.public String getTitle()
public void setTitle(String title)
title - The email title (Or subject).public CampaignEmailMessage withTitle(String title)
Returns a reference to this object so that method calls can be chained together.
title - The email title (Or subject).public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.