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 Details

    • 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.
    • text

      default Body.Builder text(Consumer<Content.Builder> 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).

      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)

      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: