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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Message.BuildermessageId(String messageId)The ID you want to assign to the message.Message.Builderpayload(SdkBytes payload)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 Detail
-
messageId
Message.Builder messageId(String messageId)
The ID you want to assign to the message. Each
messageIdmust be unique within each batch sent.- Parameters:
messageId- The ID you want to assign to the message. EachmessageIdmust be unique within each batch sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
Message.Builder payload(SdkBytes 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.
-
-