public static interface Body.Builder extends SdkPojo, CopyableBuilder<Body.Builder,Body>
Modifier and Type | Method and Description |
---|---|
default Body.Builder |
html(Consumer<Content.Builder> html)
An object that represents the version of the message that is displayed in email clients that support HTML.
|
Body.Builder |
html(Content html)
An object that represents the version of the message that is displayed in email clients that support HTML.
|
default Body.Builder |
text(Consumer<Content.Builder> text)
An object that represents the version of the message that is displayed in email clients that don't support
HTML, or clients where the recipient has disabled HTML rendering.
|
Body.Builder |
text(Content text)
An object that represents the version of the message that is displayed in email clients that don't support
HTML, or clients where the recipient has disabled HTML rendering.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Body.Builder text(Content text)
An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.
text
- An object that represents the version of the message that is displayed in email clients that don't
support HTML, or clients where the recipient has disabled HTML rendering.default Body.Builder text(Consumer<Content.Builder> text)
An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.
This is a convenience method 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)
An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.
html
- An object that represents the version of the message that is displayed in email clients that support
HTML. HTML messages can include formatted text, hyperlinks, images, and more.default Body.Builder html(Consumer<Content.Builder> html)
An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.
This is a convenience method 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 © 2022. All rights reserved.