public static interface EmailMessage.Builder extends SdkPojo, CopyableBuilder<EmailMessage.Builder,EmailMessage>
| Modifier and Type | Method and Description |
|---|---|
EmailMessage.Builder |
body(String body)
The body of the email message.
|
EmailMessage.Builder |
feedbackForwardingAddress(String feedbackForwardingAddress)
The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled.
|
EmailMessage.Builder |
fromAddress(String fromAddress)
The email address used to send the email from.
|
default EmailMessage.Builder |
rawEmail(Consumer<RawEmail.Builder> rawEmail)
An email represented as a raw MIME message.
|
EmailMessage.Builder |
rawEmail(RawEmail rawEmail)
An email represented as a raw MIME message.
|
EmailMessage.Builder |
replyToAddresses(Collection<String> replyToAddresses)
The reply-to email address(es) for the email.
|
EmailMessage.Builder |
replyToAddresses(String... replyToAddresses)
The reply-to email address(es) for the email.
|
default EmailMessage.Builder |
simpleEmail(Consumer<SimpleEmail.Builder> simpleEmail)
An email composed of a subject, a text part and a html part.
|
EmailMessage.Builder |
simpleEmail(SimpleEmail simpleEmail)
An email composed of a subject, a text part and a html part.
|
EmailMessage.Builder |
substitutions(Map<String,? extends Collection<String>> substitutions)
Default message substitutions.
|
copyapplyMutation, buildEmailMessage.Builder body(String body)
body - The body of the email message.EmailMessage.Builder feedbackForwardingAddress(String feedbackForwardingAddress)
feedbackForwardingAddress - The email address that bounces and complaints will be forwarded to when feedback forwarding is
enabled.EmailMessage.Builder fromAddress(String fromAddress)
fromAddress - The email address used to send the email from. Defaults to use FromAddress specified in the Email
Channel.EmailMessage.Builder rawEmail(RawEmail rawEmail)
rawEmail - An email represented as a raw MIME message.default EmailMessage.Builder rawEmail(Consumer<RawEmail.Builder> rawEmail)
RawEmail.Builder avoiding the need to create one manually via RawEmail.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to rawEmail(RawEmail).rawEmail - a consumer that will call methods on RawEmail.BuilderrawEmail(RawEmail)EmailMessage.Builder replyToAddresses(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.EmailMessage.Builder replyToAddresses(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.EmailMessage.Builder simpleEmail(SimpleEmail simpleEmail)
simpleEmail - An email composed of a subject, a text part and a html part.default EmailMessage.Builder simpleEmail(Consumer<SimpleEmail.Builder> simpleEmail)
SimpleEmail.Builder avoiding the need to create one manually via SimpleEmail.builder()
.
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to simpleEmail(SimpleEmail).simpleEmail - a consumer that will call methods on SimpleEmail.BuildersimpleEmail(SimpleEmail)EmailMessage.Builder substitutions(Map<String,? extends Collection<String>> substitutions)
substitutions - Default message substitutions. Can be overridden by individual address substitutions.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.