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.Builderhtml(Consumer<Content.Builder> html)An object that represents the version of the message that is displayed in email clients that support HTML.Body.Builderhtml(Content html)An object that represents the version of the message that is displayed in email clients that support HTML.default Body.Buildertext(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.Buildertext(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.-
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)
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
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.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:
text(Content)
-
html
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
html
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.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:
html(Content)
-
-