@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CampaignEmailMessage extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the content and "From" address for an email message that's sent to recipients of a campaign.
Constructor and Description |
---|
CampaignEmailMessage() |
Modifier and Type | Method and Description |
---|---|
CampaignEmailMessage |
clone() |
boolean |
equals(Object obj) |
String |
getBody()
The body of the email for recipients whose email clients don't render HTML content.
|
String |
getFromAddress()
The verified email address to send the email from.
|
List<MessageHeader> |
getHeaders()
The list of MessageHeaders for the email.
|
String |
getHtmlBody()
The body of the email, in HTML format, for recipients whose email clients render HTML content.
|
String |
getTitle()
The subject line, or title, of the email.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBody(String body)
The body of the email for recipients whose email clients don't render HTML content.
|
void |
setFromAddress(String fromAddress)
The verified email address to send the email from.
|
void |
setHeaders(Collection<MessageHeader> headers)
The list of MessageHeaders for the email.
|
void |
setHtmlBody(String htmlBody)
The body of the email, in HTML format, for recipients whose email clients render HTML content.
|
void |
setTitle(String title)
The subject line, or title, of the email.
|
String |
toString()
Returns a string representation of this object.
|
CampaignEmailMessage |
withBody(String body)
The body of the email for recipients whose email clients don't render HTML content.
|
CampaignEmailMessage |
withFromAddress(String fromAddress)
The verified email address to send the email from.
|
CampaignEmailMessage |
withHeaders(Collection<MessageHeader> headers)
The list of MessageHeaders for the email.
|
CampaignEmailMessage |
withHeaders(MessageHeader... headers)
The list of MessageHeaders for the email.
|
CampaignEmailMessage |
withHtmlBody(String htmlBody)
The body of the email, in HTML format, for recipients whose email clients render HTML content.
|
CampaignEmailMessage |
withTitle(String title)
The subject line, or title, of the email.
|
public void setBody(String body)
The body of the email for recipients whose email clients don't render HTML content.
body
- The body of the email for recipients whose email clients don't render HTML content.public String getBody()
The body of the email for recipients whose email clients don't render HTML content.
public CampaignEmailMessage withBody(String body)
The body of the email for recipients whose email clients don't render HTML content.
body
- The body of the email for recipients whose email clients don't render HTML content.public void setFromAddress(String fromAddress)
The verified email address to send the email from. The default address is the FromAddress specified for the email channel for the application.
fromAddress
- The verified email address to send the email from. The default address is the FromAddress specified for
the email channel for the application.public String getFromAddress()
The verified email address to send the email from. The default address is the FromAddress specified for the email channel for the application.
public CampaignEmailMessage withFromAddress(String fromAddress)
The verified email address to send the email from. The default address is the FromAddress specified for the email channel for the application.
fromAddress
- The verified email address to send the email from. The default address is the FromAddress specified for
the email channel for the application.public List<MessageHeader> getHeaders()
The list of MessageHeaders for the email. You can have up to 15 MessageHeaders for each email.
public void setHeaders(Collection<MessageHeader> headers)
The list of MessageHeaders for the email. You can have up to 15 MessageHeaders for each email.
headers
- The list of MessageHeaders for the email. You can have up to 15 MessageHeaders for each email.public CampaignEmailMessage withHeaders(MessageHeader... headers)
The list of MessageHeaders for the email. You can have up to 15 MessageHeaders for each email.
NOTE: This method appends the values to the existing list (if any). Use
setHeaders(java.util.Collection)
or withHeaders(java.util.Collection)
if you want to override
the existing values.
headers
- The list of MessageHeaders for the email. You can have up to 15 MessageHeaders for each email.public CampaignEmailMessage withHeaders(Collection<MessageHeader> headers)
The list of MessageHeaders for the email. You can have up to 15 MessageHeaders for each email.
headers
- The list of MessageHeaders for the email. You can have up to 15 MessageHeaders for each email.public void setHtmlBody(String htmlBody)
The body of the email, in HTML format, for recipients whose email clients render HTML content.
htmlBody
- The body of the email, in HTML format, for recipients whose email clients render HTML content.public String getHtmlBody()
The body of the email, in HTML format, for recipients whose email clients render HTML content.
public CampaignEmailMessage withHtmlBody(String htmlBody)
The body of the email, in HTML format, for recipients whose email clients render HTML content.
htmlBody
- The body of the email, in HTML format, for recipients whose email clients render HTML content.public void setTitle(String title)
The subject line, or title, of the email.
title
- The subject line, or title, of the email.public String getTitle()
The subject line, or title, of the email.
public CampaignEmailMessage withTitle(String title)
The subject line, or title, of the email.
title
- The subject line, or title, of the email.public String toString()
toString
in class Object
Object.toString()
public CampaignEmailMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.