Interface Body.Builder

    • Method Detail

      • text

        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).

        Parameters:
        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).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • html

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • html

        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 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)