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 Default Methods Modifier and Type Method Description Message.BuilderinputName(String inputName)The name of the input into which the message payload is transformed.Message.BuildermessageId(String messageId)The ID to assign to the message.Message.Builderpayload(SdkBytes payload)The payload of the message.default Message.Buildertimestamp(Consumer<TimestampValue.Builder> timestamp)The timestamp associated with the message.Message.Buildertimestamp(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 Detail
-
messageId
Message.Builder messageId(String 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
Message.Builder inputName(String 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
Message.Builder payload(SdkBytes 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
Message.Builder timestamp(TimestampValue 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
default Message.Builder timestamp(Consumer<TimestampValue.Builder> timestamp)
The timestamp associated with the message.
This is a convenience method that creates an instance of theTimestampValue.Builderavoiding the need to create one manually viaTimestampValue.builder().When the
Consumercompletes,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:
timestamp(TimestampValue)
-
-