@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.
|
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) |
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 |
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 |
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 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)
marshall
in interface StructuredPojo
Copyright © 2024. All rights reserved.