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 default Message.BuilderactionExecution(Consumer<ActionExecution.Builder> actionExecution)Sets the value of the ActionExecution property for this object.Message.BuilderactionExecution(ActionExecution actionExecution)Sets the value of the ActionExecution property for this object.default Message.BuilderactionReview(Consumer<ActionReview.Builder> actionReview)Sets the value of the ActionReview property for this object.Message.BuilderactionReview(ActionReview actionReview)Sets the value of the ActionReview property for this object.Message.Builderattachments(Collection<AttachmentOutput> attachments)A file directly uploaded into an Amazon Q Business web experience chat.Message.Builderattachments(Consumer<AttachmentOutput.Builder>... attachments)A file directly uploaded into an Amazon Q Business web experience chat.Message.Builderattachments(AttachmentOutput... attachments)A file directly uploaded into an Amazon Q Business web experience chat.Message.Builderbody(String body)The content of the Amazon Q Business web experience message.Message.BuildermessageId(String messageId)The identifier of the Amazon Q Business web experience message.Message.BuildersourceAttribution(Collection<SourceAttribution> sourceAttribution)The source documents used to generate Amazon Q Business web experience message.Message.BuildersourceAttribution(Consumer<SourceAttribution.Builder>... sourceAttribution)The source documents used to generate Amazon Q Business web experience message.Message.BuildersourceAttribution(SourceAttribution... sourceAttribution)The source documents used to generate Amazon Q Business web experience message.Message.Buildertime(Instant time)The timestamp of the first Amazon Q Business web experience message.Message.Buildertype(String type)The type of Amazon Q Business message, whetherHUMANorAIgenerated.Message.Buildertype(MessageType type)The type of Amazon Q Business message, whetherHUMANorAIgenerated.-
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 identifier of the Amazon Q Business web experience message.
- Parameters:
messageId- The identifier of the Amazon Q Business web experience message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
body
Message.Builder body(String body)
The content of the Amazon Q Business web experience message.
- Parameters:
body- The content of the Amazon Q Business web experience message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
time
Message.Builder time(Instant time)
The timestamp of the first Amazon Q Business web experience message.
- Parameters:
time- The timestamp of the first Amazon Q Business web experience message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
Message.Builder type(String type)
The type of Amazon Q Business message, whether
HUMANorAIgenerated.- Parameters:
type- The type of Amazon Q Business message, whetherHUMANorAIgenerated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MessageType,MessageType
-
type
Message.Builder type(MessageType type)
The type of Amazon Q Business message, whether
HUMANorAIgenerated.- Parameters:
type- The type of Amazon Q Business message, whetherHUMANorAIgenerated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MessageType,MessageType
-
attachments
Message.Builder attachments(Collection<AttachmentOutput> attachments)
A file directly uploaded into an Amazon Q Business web experience chat.
- Parameters:
attachments- A file directly uploaded into an Amazon Q Business web experience chat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
Message.Builder attachments(AttachmentOutput... attachments)
A file directly uploaded into an Amazon Q Business web experience chat.
- Parameters:
attachments- A file directly uploaded into an Amazon Q Business web experience chat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
Message.Builder attachments(Consumer<AttachmentOutput.Builder>... attachments)
A file directly uploaded into an Amazon Q Business web experience chat.
This is a convenience method that creates an instance of theAttachmentOutput.Builderavoiding the need to create one manually viaAttachmentOutput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#attachments(List.) - Parameters:
attachments- a consumer that will call methods onAttachmentOutput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#attachments(java.util.Collection)
-
sourceAttribution
Message.Builder sourceAttribution(Collection<SourceAttribution> sourceAttribution)
The source documents used to generate Amazon Q Business web experience message.
- Parameters:
sourceAttribution- The source documents used to generate Amazon Q Business web experience message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceAttribution
Message.Builder sourceAttribution(SourceAttribution... sourceAttribution)
The source documents used to generate Amazon Q Business web experience message.
- Parameters:
sourceAttribution- The source documents used to generate Amazon Q Business web experience message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceAttribution
Message.Builder sourceAttribution(Consumer<SourceAttribution.Builder>... sourceAttribution)
The source documents used to generate Amazon Q Business web experience message.
This is a convenience method that creates an instance of theSourceAttribution.Builderavoiding the need to create one manually viaSourceAttribution.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#sourceAttribution(List.) - Parameters:
sourceAttribution- a consumer that will call methods onSourceAttribution.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#sourceAttribution(java.util.Collection)
-
actionReview
Message.Builder actionReview(ActionReview actionReview)
Sets the value of the ActionReview property for this object.- Parameters:
actionReview- The new value for the ActionReview property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionReview
default Message.Builder actionReview(Consumer<ActionReview.Builder> actionReview)
Sets the value of the ActionReview property for this object. This is a convenience method that creates an instance of theActionReview.Builderavoiding the need to create one manually viaActionReview.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactionReview(ActionReview).- Parameters:
actionReview- a consumer that will call methods onActionReview.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
actionReview(ActionReview)
-
actionExecution
Message.Builder actionExecution(ActionExecution actionExecution)
Sets the value of the ActionExecution property for this object.- Parameters:
actionExecution- The new value for the ActionExecution property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionExecution
default Message.Builder actionExecution(Consumer<ActionExecution.Builder> actionExecution)
Sets the value of the ActionExecution property for this object. This is a convenience method that creates an instance of theActionExecution.Builderavoiding the need to create one manually viaActionExecution.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactionExecution(ActionExecution).- Parameters:
actionExecution- a consumer that will call methods onActionExecution.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
actionExecution(ActionExecution)
-
-