Interface Message.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Message.Builder,,Message> SdkBuilder<Message.Builder,,Message> SdkPojo
- Enclosing class:
Message
@Mutable
@NotThreadSafe
public static interface Message.Builder
extends SdkPojo, CopyableBuilder<Message.Builder,Message>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Message.Builderbody(Consumer<Body.Builder> body) The message body.The message body.default Message.Buildersubject(Consumer<Content.Builder> subject) The subject of the message: A short summary of the content, which appears in the recipient's inbox.The subject of the message: A short summary of the content, which appears in the recipient's inbox.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
subject
The subject of the message: A short summary of the content, which appears in the recipient's inbox.
- Parameters:
subject- The subject of the message: A short summary of the content, which appears in the recipient's inbox.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subject
The subject of the message: A short summary of the content, which appears in the recipient's inbox.
This is a convenience method that creates an instance of theContent.Builderavoiding the need to create one manually viaContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubject(Content).- Parameters:
subject- a consumer that will call methods onContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
body
The message body.
- Parameters:
body- The message body.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
body
The message body.
This is a convenience method that creates an instance of theBody.Builderavoiding the need to create one manually viaBody.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobody(Body).- Parameters:
body- a consumer that will call methods onBody.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-