Interface EmailMessageTemplateContentBody.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<EmailMessageTemplateContentBody.Builder,EmailMessageTemplateContentBody>,SdkBuilder<EmailMessageTemplateContentBody.Builder,EmailMessageTemplateContentBody>,SdkPojo
- Enclosing class:
- EmailMessageTemplateContentBody
public static interface EmailMessageTemplateContentBody.Builder extends SdkPojo, CopyableBuilder<EmailMessageTemplateContentBody.Builder,EmailMessageTemplateContentBody>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default EmailMessageTemplateContentBody.Builderhtml(Consumer<MessageTemplateBodyContentProvider.Builder> html)The message body, in HTML format, to use in email messages that are based on the message template.EmailMessageTemplateContentBody.Builderhtml(MessageTemplateBodyContentProvider html)The message body, in HTML format, to use in email messages that are based on the message template.default EmailMessageTemplateContentBody.BuilderplainText(Consumer<MessageTemplateBodyContentProvider.Builder> plainText)The message body, in plain text format, to use in email messages that are based on the message template.EmailMessageTemplateContentBody.BuilderplainText(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 Detail
-
html
EmailMessageTemplateContentBody.Builder html(MessageTemplateBodyContentProvider 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.Builderavoiding the need to create one manually viaMessageTemplateBodyContentProvider.builder().When the
Consumercompletes,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:
html(MessageTemplateBodyContentProvider)
-
plainText
EmailMessageTemplateContentBody.Builder plainText(MessageTemplateBodyContentProvider 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.Builderavoiding the need to create one manually viaMessageTemplateBodyContentProvider.builder().When the
Consumercompletes,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:
plainText(MessageTemplateBodyContentProvider)
-
-