Interface MetadataEvent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<MetadataEvent.Builder,MetadataEvent>,SdkBuilder<MetadataEvent.Builder,MetadataEvent>,SdkPojo
- All Known Subinterfaces:
DefaultMetadataEvent.Builder
- All Known Implementing Classes:
MetadataEvent.BuilderImpl
- Enclosing class:
- MetadataEvent
public static interface MetadataEvent.Builder extends SdkPojo, CopyableBuilder<MetadataEvent.Builder,MetadataEvent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetadataEvent.BuilderconversationId(String conversationId)The identifier of the conversation with which the generated metadata is associated.MetadataEvent.BuilderfinalTextMessage(String finalTextMessage)The final text output message generated by the system.MetadataEvent.BuildersourceAttributions(Collection<SourceAttribution> sourceAttributions)The source documents used to generate the conversation response.MetadataEvent.BuildersourceAttributions(Consumer<SourceAttribution.Builder>... sourceAttributions)The source documents used to generate the conversation response.MetadataEvent.BuildersourceAttributions(SourceAttribution... sourceAttributions)The source documents used to generate the conversation response.MetadataEvent.BuildersystemMessageId(String systemMessageId)The identifier of an Amazon Q Business AI generated message within the conversation.MetadataEvent.BuilderuserMessageId(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, sdkFields
-
-
-
-
Method Detail
-
conversationId
MetadataEvent.Builder conversationId(String 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
MetadataEvent.Builder userMessageId(String 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
MetadataEvent.Builder systemMessageId(String 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
MetadataEvent.Builder sourceAttributions(Collection<SourceAttribution> 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
MetadataEvent.Builder sourceAttributions(SourceAttribution... 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
MetadataEvent.Builder sourceAttributions(Consumer<SourceAttribution.Builder>... sourceAttributions)
The source documents used to generate the conversation response.
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#sourceAttributions(List.) - 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:
#sourceAttributions(java.util.Collection)
-
finalTextMessage
MetadataEvent.Builder finalTextMessage(String 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.
-
-