@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EmailMessage extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the default settings and content for a one-time email message that's sent directly to an endpoint.
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 to forward bounces and complaints to, if feedback forwarding is enabled.
|
String |
getFromAddress()
The verified email address to send the email message from.
|
RawEmail |
getRawEmail()
The email message, represented as a raw MIME message.
|
List<String> |
getReplyToAddresses()
The reply-to email address(es) for the email message.
|
SimpleEmail |
getSimpleEmail()
The email message, composed of a subject, a text part, and an HTML part.
|
Map<String,List<String>> |
getSubstitutions()
The default message variables to use in the email message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setBody(String body)
The body of the email message.
|
void |
setFeedbackForwardingAddress(String feedbackForwardingAddress)
The email address to forward bounces and complaints to, if feedback forwarding is enabled.
|
void |
setFromAddress(String fromAddress)
The verified email address to send the email message from.
|
void |
setRawEmail(RawEmail rawEmail)
The email message, represented as a raw MIME message.
|
void |
setReplyToAddresses(Collection<String> replyToAddresses)
The reply-to email address(es) for the email message.
|
void |
setSimpleEmail(SimpleEmail simpleEmail)
The email message, composed of a subject, a text part, and an HTML part.
|
void |
setSubstitutions(Map<String,List<String>> substitutions)
The default message variables to use in the email message.
|
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 to forward bounces and complaints to, if feedback forwarding is enabled.
|
EmailMessage |
withFromAddress(String fromAddress)
The verified email address to send the email message from.
|
EmailMessage |
withRawEmail(RawEmail rawEmail)
The email message, represented as a raw MIME message.
|
EmailMessage |
withReplyToAddresses(Collection<String> replyToAddresses)
The reply-to email address(es) for the email message.
|
EmailMessage |
withReplyToAddresses(String... replyToAddresses)
The reply-to email address(es) for the email message.
|
EmailMessage |
withSimpleEmail(SimpleEmail simpleEmail)
The email message, composed of a subject, a text part, and an HTML part.
|
EmailMessage |
withSubstitutions(Map<String,List<String>> substitutions)
The default message variables to use in the email message.
|
public void setBody(String body)
The body of the email message.
body
- The body of the email message.public String getBody()
The body of the email message.
public EmailMessage withBody(String body)
The body of the email message.
body
- The body of the email message.public void setFeedbackForwardingAddress(String feedbackForwardingAddress)
The email address to forward bounces and complaints to, if feedback forwarding is enabled.
feedbackForwardingAddress
- The email address to forward bounces and complaints to, if feedback forwarding is enabled.public String getFeedbackForwardingAddress()
The email address to forward bounces and complaints to, if feedback forwarding is enabled.
public EmailMessage withFeedbackForwardingAddress(String feedbackForwardingAddress)
The email address to forward bounces and complaints to, if feedback forwarding is enabled.
feedbackForwardingAddress
- The email address to forward bounces and complaints to, if feedback forwarding is enabled.public void setFromAddress(String fromAddress)
The verified email address to send the email message from. The default value is the FromAddress specified for the email channel.
fromAddress
- The verified email address to send the email message from. The default value is the FromAddress specified
for the email channel.public String getFromAddress()
The verified email address to send the email message from. The default value is the FromAddress specified for the email channel.
public EmailMessage withFromAddress(String fromAddress)
The verified email address to send the email message from. The default value is the FromAddress specified for the email channel.
fromAddress
- The verified email address to send the email message from. The default value is the FromAddress specified
for the email channel.public void setRawEmail(RawEmail rawEmail)
The email message, represented as a raw MIME message.
rawEmail
- The email message, represented as a raw MIME message.public RawEmail getRawEmail()
The email message, represented as a raw MIME message.
public EmailMessage withRawEmail(RawEmail rawEmail)
The email message, represented as a raw MIME message.
rawEmail
- The email message, represented as a raw MIME message.public List<String> getReplyToAddresses()
The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to address receives the reply.
public void setReplyToAddresses(Collection<String> replyToAddresses)
The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to address receives the reply.
replyToAddresses
- The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to
address receives the reply.public EmailMessage withReplyToAddresses(String... replyToAddresses)
The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to address receives the reply.
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 message. If a recipient replies to the email, each reply-to
address receives the reply.public EmailMessage withReplyToAddresses(Collection<String> replyToAddresses)
The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to address receives the reply.
replyToAddresses
- The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to
address receives the reply.public void setSimpleEmail(SimpleEmail simpleEmail)
The email message, composed of a subject, a text part, and an HTML part.
simpleEmail
- The email message, composed of a subject, a text part, and an HTML part.public SimpleEmail getSimpleEmail()
The email message, composed of a subject, a text part, and an HTML part.
public EmailMessage withSimpleEmail(SimpleEmail simpleEmail)
The email message, composed of a subject, a text part, and an HTML part.
simpleEmail
- The email message, composed of a subject, a text part, and an HTML part.public Map<String,List<String>> getSubstitutions()
The default message variables to use in the email message. You can override the default variables with individual address variables.
public void setSubstitutions(Map<String,List<String>> substitutions)
The default message variables to use in the email message. You can override the default variables with individual address variables.
substitutions
- The default message variables to use in the email message. You can override the default variables with
individual address variables.public EmailMessage withSubstitutions(Map<String,List<String>> substitutions)
The default message variables to use in the email message. You can override the default variables with individual address variables.
substitutions
- The default message variables to use in the email message. You can override the default variables with
individual address variables.public EmailMessage addSubstitutionsEntry(String key, List<String> value)
public EmailMessage clearSubstitutionsEntries()
public String toString()
toString
in class Object
Object.toString()
public EmailMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2019. All rights reserved.