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

    Modifier and Type
    Method
    Description
    default Body.Builder
    An object that represents the version of the message that is displayed in email clients that support HTML.
    html(Content html)
    An object that represents the version of the message that is displayed in email clients that support HTML.
    default Body.Builder
    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(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 Details

    • 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 the Content.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).

      Parameters:
      text - a consumer that will call methods on Content.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the Content.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).

      Parameters:
      html - a consumer that will call methods on Content.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: