public static interface Message.Builder extends SdkPojo, CopyableBuilder<Message.Builder,Message>
Modifier and Type | Method and Description |
---|---|
Message.Builder |
body(Body body)
The body of the message.
|
default Message.Builder |
body(Consumer<Body.Builder> body)
The body of the message.
|
default Message.Builder |
subject(Consumer<Content.Builder> subject)
The subject line of the email.
|
Message.Builder |
subject(Content subject)
The subject line of the email.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
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.
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.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 theContent.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)
.
subject
- a consumer that will call methods on Content.Builder
subject(Content)
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.
body
- The body of the message. You can specify an HTML version of the message, a text-only version of the
message, or both.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 theBody.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)
.
body
- a consumer that will call methods on Body.Builder
body(Body)
Copyright © 2023. All rights reserved.