Interface Message.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Message.Builder,
,Message> SdkBuilder<Message.Builder,
,Message> SdkPojo
- Enclosing class:
Message
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the input into which the message payload is transformed.The ID to assign to the message.The payload of the message.default Message.Builder
timestamp
(Consumer<TimestampValue.Builder> timestamp) The timestamp associated with the message.timestamp
(TimestampValue timestamp) The timestamp associated with 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, sdkFields
-
Method Details
-
messageId
The ID to assign to the message. Within each batch sent, each
"messageId"
must be unique.- Parameters:
messageId
- The ID to assign to the message. Within each batch sent, each"messageId"
must be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputName
The name of the input into which the message payload is transformed.
- Parameters:
inputName
- The name of the input into which the message payload is transformed.- 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 Base-64-encoded string representing binary data (in which case you must decode it).
- Parameters:
payload
- The payload of the message. This can be a JSON string or a Base-64-encoded string representing binary data (in which case you must decode it).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamp
The timestamp associated with the message.
- Parameters:
timestamp
- The timestamp associated with the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamp
The timestamp associated with the message.
This is a convenience method that creates an instance of theTimestampValue.Builder
avoiding the need to create one manually viaTimestampValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimestamp(TimestampValue)
.- Parameters:
timestamp
- a consumer that will call methods onTimestampValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-