Interface Message.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Message.Builder,,Message> SdkBuilder<Message.Builder,,Message> SdkPojo
- Enclosing class:
Message
-
Method Summary
Modifier and TypeMethodDescriptiondefault Message.BuilderactionExecution(Consumer<ActionExecution.Builder> actionExecution) Sets the value of the ActionExecution property for this object.actionExecution(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.actionReview(ActionReview actionReview) Sets the value of the ActionReview property for this object.attachments(Collection<AttachmentOutput> attachments) A file directly uploaded into an Amazon Q Business web experience chat.attachments(Consumer<AttachmentOutput.Builder>... attachments) A file directly uploaded into an Amazon Q Business web experience chat.attachments(AttachmentOutput... attachments) A file directly uploaded into an Amazon Q Business web experience chat.The content of the Amazon Q Business web experience message.The identifier of the Amazon Q Business web experience message.sourceAttribution(Collection<SourceAttribution> sourceAttribution) The source documents used to generate Amazon Q Business web experience message.sourceAttribution(Consumer<SourceAttribution.Builder>... sourceAttribution) The source documents used to generate Amazon Q Business web experience message.sourceAttribution(SourceAttribution... sourceAttribution) The source documents used to generate Amazon Q Business web experience message.The timestamp of the first Amazon Q Business web experience message.The type of Amazon Q Business message, whetherHUMANorAIgenerated.type(MessageType type) The type of Amazon Q Business message, whetherHUMANorAIgenerated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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:
-
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:
-
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
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
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 toattachments(List<AttachmentOutput>).- 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:
-
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
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
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 tosourceAttribution(List<SourceAttribution>).- 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:
-
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
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:
-
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
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:
-