public static interface EmailContent.Builder extends SdkPojo, CopyableBuilder<EmailContent.Builder,EmailContent>
Modifier and Type | Method and Description |
---|---|
default EmailContent.Builder |
raw(Consumer<RawMessage.Builder> raw)
The raw email message.
|
EmailContent.Builder |
raw(RawMessage raw)
The raw email message.
|
default EmailContent.Builder |
simple(Consumer<Message.Builder> simple)
The simple email message.
|
EmailContent.Builder |
simple(Message simple)
The simple email message.
|
copy
applyMutation, build
EmailContent.Builder simple(Message simple)
The simple email message. The message consists of a subject and a message body.
simple
- The simple email message. The message consists of a subject and a message body.default EmailContent.Builder simple(Consumer<Message.Builder> simple)
The simple email message. The message consists of a subject and a message body.
This is a convenience that creates an instance of theMessage.Builder
avoiding the need to create one
manually via Message.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to simple(Message)
.simple
- a consumer that will call methods on Message.Builder
simple(Message)
EmailContent.Builder raw(RawMessage raw)
The raw email message. The message has to meet the following criteria:
The message has to contain a header and a body, separated by one blank line.
All of the required header fields must be present in the message.
Each part of a multipart MIME message must be formatted properly.
If you include attachments, they must be in a file format that Amazon Pinpoint supports.
The entire message must be Base64 encoded.
If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.
The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.
raw
- The raw email message. The message has to meet the following criteria:
The message has to contain a header and a body, separated by one blank line.
All of the required header fields must be present in the message.
Each part of a multipart MIME message must be formatted properly.
If you include attachments, they must be in a file format that Amazon Pinpoint supports.
The entire message must be Base64 encoded.
If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.
The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.
default EmailContent.Builder raw(Consumer<RawMessage.Builder> raw)
The raw email message. The message has to meet the following criteria:
The message has to contain a header and a body, separated by one blank line.
All of the required header fields must be present in the message.
Each part of a multipart MIME message must be formatted properly.
If you include attachments, they must be in a file format that Amazon Pinpoint supports.
The entire message must be Base64 encoded.
If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.
The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.
RawMessage.Builder
avoiding the need to create
one manually via RawMessage.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to raw(RawMessage)
.raw
- a consumer that will call methods on RawMessage.Builder
raw(RawMessage)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.