public static interface Message.Builder extends SdkPojo, CopyableBuilder<Message.Builder,Message>
Modifier and Type | Method and Description |
---|---|
Message.Builder |
body(Body body)
The message body.
|
default Message.Builder |
body(Consumer<Body.Builder> body)
The message body.
|
default Message.Builder |
subject(Consumer<Content.Builder> subject)
The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
|
Message.Builder |
subject(Content subject)
The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Message.Builder subject(Content subject)
The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
subject
- The subject of the message: A short summary of the content, which will appear in the recipient's
inbox.default Message.Builder subject(Consumer<Content.Builder> subject)
The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
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 message body.
body
- The message body.default Message.Builder body(Consumer<Body.Builder> body)
The message body.
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 © 2022. All rights reserved.