Interface EmailContent.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<EmailContent.Builder,,- EmailContent> - SdkBuilder<EmailContent.Builder,,- EmailContent> - SdkPojo
- Enclosing class:
- EmailContent
- 
Method SummaryModifier and TypeMethodDescriptiondefault EmailContent.Builderraw(Consumer<RawMessage.Builder> raw) The raw email message.raw(RawMessage raw) The raw email message.default EmailContent.Buildersimple(Consumer<Message.Builder> simple) The simple email message.The simple email message.default EmailContent.Buildertemplate(Consumer<Template.Builder> template) The template to use for the email message.The template to use for the email message.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
simpleThe simple email message. The message consists of a subject, message body and attachments list. - Parameters:
- simple- The simple email message. The message consists of a subject, message body and attachments list.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
simpleThe simple email message. The message consists of a subject, message body and attachments list. This is a convenience method that creates an instance of theMessage.Builderavoiding the need to create one manually viaMessage.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosimple(Message).- Parameters:
- simple- a consumer that will call methods on- Message.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
rawThe 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 the Amazon SES API v2 supports. 
- 
 The raw data of the message needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you. 
- 
 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. 
 - Parameters:
- 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 the Amazon SES API v2 supports. 
- 
        The raw data of the message needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you. 
- 
        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. 
 
- 
        
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
 
- 
rawThe 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 the Amazon SES API v2 supports. 
- 
 The raw data of the message needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you. 
- 
 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.Builderavoiding the need to create one manually viaRawMessage.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toraw(RawMessage).- Parameters:
- raw- a consumer that will call methods on- RawMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
 
- 
templateThe template to use for the email message. - Parameters:
- template- The template to use for the email message.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
templateThe template to use for the email message. This is a convenience method that creates an instance of theTemplate.Builderavoiding the need to create one manually viaTemplate.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totemplate(Template).- Parameters:
- template- a consumer that will call methods on- Template.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-