@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EmailMessage extends Object implements Serializable, Cloneable, StructuredPojo
| Constructor and Description |
|---|
EmailMessage() |
| Modifier and Type | Method and Description |
|---|---|
EmailMessage |
addSubstitutionsEntry(String key,
List<String> value) |
EmailMessage |
clearSubstitutionsEntries()
Removes all the entries added into Substitutions.
|
EmailMessage |
clone() |
boolean |
equals(Object obj) |
String |
getBody()
The body of the email message.
|
String |
getFeedbackForwardingAddress()
The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled.
|
String |
getFromAddress()
The email address used to send the email from.
|
RawEmail |
getRawEmail()
An email represented as a raw MIME message.
|
List<String> |
getReplyToAddresses()
The reply-to email address(es) for the email.
|
SimpleEmail |
getSimpleEmail()
An email composed of a subject, a text part and a html part.
|
Map<String,List<String>> |
getSubstitutions()
Default message substitutions.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setBody(String body)
The body of the email message.
|
void |
setFeedbackForwardingAddress(String feedbackForwardingAddress)
The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled.
|
void |
setFromAddress(String fromAddress)
The email address used to send the email from.
|
void |
setRawEmail(RawEmail rawEmail)
An email represented as a raw MIME message.
|
void |
setReplyToAddresses(Collection<String> replyToAddresses)
The reply-to email address(es) for the email.
|
void |
setSimpleEmail(SimpleEmail simpleEmail)
An email composed of a subject, a text part and a html part.
|
void |
setSubstitutions(Map<String,List<String>> substitutions)
Default message substitutions.
|
String |
toString()
Returns a string representation of this object.
|
EmailMessage |
withBody(String body)
The body of the email message.
|
EmailMessage |
withFeedbackForwardingAddress(String feedbackForwardingAddress)
The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled.
|
EmailMessage |
withFromAddress(String fromAddress)
The email address used to send the email from.
|
EmailMessage |
withRawEmail(RawEmail rawEmail)
An email represented as a raw MIME message.
|
EmailMessage |
withReplyToAddresses(Collection<String> replyToAddresses)
The reply-to email address(es) for the email.
|
EmailMessage |
withReplyToAddresses(String... replyToAddresses)
The reply-to email address(es) for the email.
|
EmailMessage |
withSimpleEmail(SimpleEmail simpleEmail)
An email composed of a subject, a text part and a html part.
|
EmailMessage |
withSubstitutions(Map<String,List<String>> substitutions)
Default message substitutions.
|
public void setBody(String body)
body - The body of the email message.public String getBody()
public EmailMessage withBody(String body)
body - The body of the email message.public void setFeedbackForwardingAddress(String feedbackForwardingAddress)
feedbackForwardingAddress - The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled.public String getFeedbackForwardingAddress()
public EmailMessage withFeedbackForwardingAddress(String feedbackForwardingAddress)
feedbackForwardingAddress - The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled.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 String getFromAddress()
public EmailMessage withFromAddress(String fromAddress)
fromAddress - The email address used to send the email from. Defaults to use FromAddress specified in the Email Channel.public void setRawEmail(RawEmail rawEmail)
rawEmail - An email represented as a raw MIME message.public RawEmail getRawEmail()
public EmailMessage withRawEmail(RawEmail rawEmail)
rawEmail - An email represented as a raw MIME message.public List<String> getReplyToAddresses()
public void setReplyToAddresses(Collection<String> replyToAddresses)
replyToAddresses - The reply-to email address(es) for the email. If the recipient replies to the email, each reply-to address
will receive the reply.public EmailMessage withReplyToAddresses(String... replyToAddresses)
NOTE: This method appends the values to the existing list (if any). Use
setReplyToAddresses(java.util.Collection) or withReplyToAddresses(java.util.Collection) if you
want to override the existing values.
replyToAddresses - The reply-to email address(es) for the email. If the recipient replies to the email, each reply-to address
will receive the reply.public EmailMessage withReplyToAddresses(Collection<String> replyToAddresses)
replyToAddresses - The reply-to email address(es) for the email. If the recipient replies to the email, each reply-to address
will receive the reply.public void setSimpleEmail(SimpleEmail simpleEmail)
simpleEmail - An email composed of a subject, a text part and a html part.public SimpleEmail getSimpleEmail()
public EmailMessage withSimpleEmail(SimpleEmail simpleEmail)
simpleEmail - An email composed of a subject, a text part and a html part.public Map<String,List<String>> getSubstitutions()
public void setSubstitutions(Map<String,List<String>> substitutions)
substitutions - Default message substitutions. Can be overridden by individual address substitutions.public EmailMessage withSubstitutions(Map<String,List<String>> substitutions)
substitutions - Default message substitutions. Can be overridden by individual address substitutions.public EmailMessage addSubstitutionsEntry(String key, List<String> value)
public EmailMessage clearSubstitutionsEntries()
public String toString()
toString in class ObjectObject.toString()public EmailMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.