Interface MetadataEvent.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MetadataEvent.Builder,
,MetadataEvent> SdkBuilder<MetadataEvent.Builder,
,MetadataEvent> SdkPojo
- All Known Subinterfaces:
DefaultMetadataEvent.Builder
- Enclosing class:
MetadataEvent
@Mutable
@NotThreadSafe
public static interface MetadataEvent.Builder
extends SdkPojo, CopyableBuilder<MetadataEvent.Builder,MetadataEvent>
-
Method Summary
Modifier and TypeMethodDescriptionconversationId
(String conversationId) The identifier of the conversation with which the generated metadata is associated.finalTextMessage
(String finalTextMessage) The final text output message generated by the system.sourceAttributions
(Collection<SourceAttribution> sourceAttributions) The source documents used to generate the conversation response.sourceAttributions
(Consumer<SourceAttribution.Builder>... sourceAttributions) The source documents used to generate the conversation response.sourceAttributions
(SourceAttribution... sourceAttributions) The source documents used to generate the conversation response.systemMessageId
(String systemMessageId) The identifier of an Amazon Q Business AI generated message within the conversation.userMessageId
(String userMessageId) The identifier of an Amazon Q Business end user text input message within the conversation.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 Details
-
conversationId
The identifier of the conversation with which the generated metadata is associated.
- Parameters:
conversationId
- The identifier of the conversation with which the generated metadata is associated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userMessageId
The identifier of an Amazon Q Business end user text input message within the conversation.
- Parameters:
userMessageId
- The identifier of an Amazon Q Business end user text input message within the conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemMessageId
The identifier of an Amazon Q Business AI generated message within the conversation.
- Parameters:
systemMessageId
- The identifier of an Amazon Q Business AI generated message within the conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceAttributions
The source documents used to generate the conversation response.
- Parameters:
sourceAttributions
- The source documents used to generate the conversation response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceAttributions
The source documents used to generate the conversation response.
- Parameters:
sourceAttributions
- The source documents used to generate the conversation response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceAttributions
The source documents used to generate the conversation response.
This is a convenience method that creates an instance of theSourceAttribution.Builder
avoiding the need to create one manually viaSourceAttribution.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceAttributions(List<SourceAttribution>)
.- Parameters:
sourceAttributions
- 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:
-
finalTextMessage
The final text output message generated by the system.
- Parameters:
finalTextMessage
- The final text output message generated by the system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-