Interface Body.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Body.Builder,,Body> SdkBuilder<Body.Builder,,Body> SdkPojo
- Enclosing class:
Body
-
Method Summary
Modifier and TypeMethodDescriptiondefault Body.Builderhtml(Consumer<Content.Builder> html) The content of the message, in HTML format.The content of the message, in HTML format.default Body.Buildertext(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaContent.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaContent.builder().When the
Consumercompletes,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:
-