Interface Body.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<Body.Builder,Body>
,SdkBuilder<Body.Builder,Body>
,SdkPojo
- Enclosing class:
- Body
public static interface Body.Builder extends SdkPojo, CopyableBuilder<Body.Builder,Body>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Body.Builder
html(Consumer<Content.Builder> html)
The content of the message, in HTML format.Body.Builder
html(Content html)
The content of the message, in HTML format.default Body.Builder
text(Consumer<Content.Builder> text)
The content of the message, in text format.Body.Builder
text(Content text)
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 Detail
-
text
Body.Builder text(Content 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
default Body.Builder text(Consumer<Content.Builder> 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:
text(Content)
-
html
Body.Builder html(Content 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
default Body.Builder html(Consumer<Content.Builder> 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:
html(Content)
-
-