Interface Body.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Body.Builder,
,Body> SdkBuilder<Body.Builder,
,Body> SdkPojo
- Enclosing class:
Body
-
Method Summary
Modifier and TypeMethodDescriptiondefault Body.Builder
html
(Consumer<Content.Builder> html) The content of the message, in HTML format.The content of the message, in HTML format.default Body.Builder
text
(Consumer<Content.Builder> text) The content of the message, in text format.The content of the message, in text format.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, sdkFields
-
Method Details
-
text
The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices).
- Parameters:
text
- The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices).
This is a convenience method that creates an instance of theContent.Builder
avoiding the need to create one manually viaContent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totext(Content)
.- Parameters:
text
- a consumer that will call methods onContent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
html
The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message.
- Parameters:
html
- The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
html
The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message.
This is a convenience method that creates an instance of theContent.Builder
avoiding the need to create one manually viaContent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohtml(Content)
.- Parameters:
html
- a consumer that will call methods onContent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-