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 TypeMethodDescriptionThe ID you want to assign to the message.The payload of the message.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
messageId
The ID you want to assign to the message. Each
messageId
must be unique within each batch sent.- Parameters:
messageId
- The ID you want to assign to the message. EachmessageId
must be unique within each batch sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
The payload of the message. This can be a JSON string or a base64-encoded string representing binary data, in which case you must decode it by means of a pipeline activity.
- Parameters:
payload
- The payload of the message. This can be a JSON string or a base64-encoded string representing binary data, in which case you must decode it by means of a pipeline activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-