public static interface Body.Builder extends CopyableBuilder<Body.Builder,Body>
Modifier and Type | Method and 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.
|
copy
applyMutation, build
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).
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).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 that creates an instance of theContent.Builder
avoiding the need to create one
manually via Content.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to text(Content)
.text
- a consumer that will call methods on Content.Builder
text(Content)
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.
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.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 that creates an instance of theContent.Builder
avoiding the need to create one
manually via Content.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to html(Content)
.html
- a consumer that will call methods on Content.Builder
html(Content)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.