Interface Body.Builder

    • 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 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:
        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 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:
        html(Content)