Interface MessageOutput.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<MessageOutput.Builder,MessageOutput>,SdkBuilder<MessageOutput.Builder,MessageOutput>,SdkPojo
- Enclosing class:
- MessageOutput
public static interface MessageOutput.Builder extends SdkPojo, CopyableBuilder<MessageOutput.Builder,MessageOutput>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MessageOutput.BuildermessageId(String messageId)The identifier of a message.MessageOutput.Builderparticipant(String participant)The participant of a message.MessageOutput.Builderparticipant(Participant participant)The participant of a message.MessageOutput.Buildertimestamp(Instant timestamp)The timestamp of a message.default MessageOutput.Buildervalue(Consumer<MessageData.Builder> value)The value of a message data.MessageOutput.Buildervalue(MessageData value)The value of a message data.-
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
MessageOutput.Builder messageId(String messageId)
The identifier of a message.
- Parameters:
messageId- The identifier of a message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
participant
MessageOutput.Builder participant(String participant)
The participant of a message.
- Parameters:
participant- The participant of a message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Participant,Participant
-
participant
MessageOutput.Builder participant(Participant participant)
The participant of a message.
- Parameters:
participant- The participant of a message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Participant,Participant
-
timestamp
MessageOutput.Builder timestamp(Instant timestamp)
The timestamp of a message.
- Parameters:
timestamp- The timestamp of a message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
MessageOutput.Builder value(MessageData value)
The value of a message data.
- Parameters:
value- The value of a message data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
default MessageOutput.Builder value(Consumer<MessageData.Builder> value)
The value of a message data.
This is a convenience method that creates an instance of theMessageData.Builderavoiding the need to create one manually viaMessageData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalue(MessageData).- Parameters:
value- a consumer that will call methods onMessageData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
value(MessageData)
-
-