public static interface Message.Builder extends SdkPojo, CopyableBuilder<Message.Builder,Message>
| Modifier and Type | Method and Description |
|---|---|
Message.Builder |
inputName(String inputName)
The name of the input into which the message payload is transformed.
|
Message.Builder |
messageId(String messageId)
The ID to assign to the message.
|
Message.Builder |
payload(SdkBytes payload)
The payload of the message.
|
default Message.Builder |
timestamp(Consumer<TimestampValue.Builder> timestamp)
The timestamp associated with the message.
|
Message.Builder |
timestamp(TimestampValue timestamp)
The timestamp associated with the message.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildMessage.Builder messageId(String messageId)
The ID to assign to the message. Within each batch sent, each "messageId" must be unique.
messageId - The ID to assign to the message. Within each batch sent, each "messageId" must be unique.Message.Builder inputName(String inputName)
The name of the input into which the message payload is transformed.
inputName - The name of the input into which the message payload is transformed.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).
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).Message.Builder timestamp(TimestampValue timestamp)
The timestamp associated with the message.
timestamp - The timestamp associated with the message.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.Builder avoiding the need
to create one manually via TimestampValue.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to timestamp(TimestampValue).
timestamp - a consumer that will call methods on TimestampValue.Buildertimestamp(TimestampValue)Copyright © 2023. All rights reserved.