Interface EmailMessageTemplateContentBody.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EmailMessageTemplateContentBody.Builder,
,EmailMessageTemplateContentBody> SdkBuilder<EmailMessageTemplateContentBody.Builder,
,EmailMessageTemplateContentBody> SdkPojo
- Enclosing class:
EmailMessageTemplateContentBody
-
Method Summary
Modifier and TypeMethodDescriptionThe message body, in HTML format, to use in email messages that are based on the message template.The message body, in HTML format, to use in email messages that are based on the message template.The message body, in plain text format, to use in email messages that are based on the message template.plainText
(MessageTemplateBodyContentProvider plainText) The message body, in plain text format, to use in email messages that are based on the message template.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
plainText
The message body, in plain text format, to use in email messages that are based on the message template. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.
- Parameters:
plainText
- The message body, in plain text format, to use in email messages that are based on the message template. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
plainText
default EmailMessageTemplateContentBody.Builder plainText(Consumer<MessageTemplateBodyContentProvider.Builder> plainText) The message body, in plain text format, to use in email messages that are based on the message template. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.
This is a convenience method that creates an instance of theMessageTemplateBodyContentProvider.Builder
avoiding the need to create one manually viaMessageTemplateBodyContentProvider.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toplainText(MessageTemplateBodyContentProvider)
.- Parameters:
plainText
- a consumer that will call methods onMessageTemplateBodyContentProvider.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
html
The message body, in HTML format, to use in email messages that are based on the message template. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
- Parameters:
html
- The message body, in HTML format, to use in email messages that are based on the message template. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
html
default EmailMessageTemplateContentBody.Builder html(Consumer<MessageTemplateBodyContentProvider.Builder> html) The message body, in HTML format, to use in email messages that are based on the message template. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
This is a convenience method that creates an instance of theMessageTemplateBodyContentProvider.Builder
avoiding the need to create one manually viaMessageTemplateBodyContentProvider.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohtml(MessageTemplateBodyContentProvider)
.- Parameters:
html
- a consumer that will call methods onMessageTemplateBodyContentProvider.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-