Interface Message.Builder

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

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

    • subject

      Message.Builder subject(Content subject)

      The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.

      Parameters:
      subject - The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subject

      default Message.Builder subject(Consumer<Content.Builder> subject)

      The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.

      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 subject(Content).

      Parameters:
      subject - 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:
    • body

      Message.Builder body(Body body)

      The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.

      Parameters:
      body - The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • body

      default Message.Builder body(Consumer<Body.Builder> body)

      The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.

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

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

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