Interface SimpleEmail.Builder

All Superinterfaces:
Buildable, CopyableBuilder<SimpleEmail.Builder,SimpleEmail>, SdkBuilder<SimpleEmail.Builder,SimpleEmail>, SdkPojo
Enclosing class:
SimpleEmail

public static interface SimpleEmail.Builder extends SdkPojo, CopyableBuilder<SimpleEmail.Builder,SimpleEmail>
  • Method Details

    • htmlPart

      The body of the email message, in HTML format. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.

      Parameters:
      htmlPart - The body of the email message, in HTML format. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • htmlPart

      The body of the email message, in HTML format. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.

      This is a convenience method that creates an instance of the SimpleEmailPart.Builder avoiding the need to create one manually via SimpleEmailPart.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to htmlPart(SimpleEmailPart).

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

      The subject line, or title, of the email.

      Parameters:
      subject - The subject line, or title, of the email.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subject

      The subject line, or title, of the email.

      This is a convenience method that creates an instance of the SimpleEmailPart.Builder avoiding the need to create one manually via SimpleEmailPart.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to subject(SimpleEmailPart).

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

      The body of the email message, in plain text format. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.

      Parameters:
      textPart - The body of the email message, in plain text format. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • textPart

      The body of the email message, in plain text format. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.

      This is a convenience method that creates an instance of the SimpleEmailPart.Builder avoiding the need to create one manually via SimpleEmailPart.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to textPart(SimpleEmailPart).

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