Interface SourceAttribution.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SourceAttribution.Builder,,SourceAttribution> SdkBuilder<SourceAttribution.Builder,,SourceAttribution> SdkPojo
- Enclosing class:
SourceAttribution
-
Method Summary
Modifier and TypeMethodDescriptioncitationNumber(Integer citationNumber) The number attached to a citation in an Amazon Q Business generated response.The content extract from the document on which the generated response is based.textMessageSegments(Collection<TextSegment> textMessageSegments) A text extract from a source document that is used for source attribution.textMessageSegments(Consumer<TextSegment.Builder>... textMessageSegments) A text extract from a source document that is used for source attribution.textMessageSegments(TextSegment... textMessageSegments) A text extract from a source document that is used for source attribution.The title of the document which is the source for the Amazon Q Business generated response.The Unix timestamp when the Amazon Q Business application was last updated.The URL of the document which is the source for the Amazon Q Business generated response.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, sdkFields
-
Method Details
-
title
The title of the document which is the source for the Amazon Q Business generated response.
- Parameters:
title- The title of the document which is the source for the Amazon Q Business generated response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snippet
The content extract from the document on which the generated response is based.
- Parameters:
snippet- The content extract from the document on which the generated response is based.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
url
The URL of the document which is the source for the Amazon Q Business generated response.
- Parameters:
url- The URL of the document which is the source for the Amazon Q Business generated response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citationNumber
The number attached to a citation in an Amazon Q Business generated response.
- Parameters:
citationNumber- The number attached to a citation in an Amazon Q Business generated response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The Unix timestamp when the Amazon Q Business application was last updated.
- Parameters:
updatedAt- The Unix timestamp when the Amazon Q Business application was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textMessageSegments
A text extract from a source document that is used for source attribution.
- Parameters:
textMessageSegments- A text extract from a source document that is used for source attribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textMessageSegments
A text extract from a source document that is used for source attribution.
- Parameters:
textMessageSegments- A text extract from a source document that is used for source attribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textMessageSegments
A text extract from a source document that is used for source attribution.
This is a convenience method that creates an instance of theTextSegment.Builderavoiding the need to create one manually viaTextSegment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totextMessageSegments(List<TextSegment>).- Parameters:
textMessageSegments- a consumer that will call methods onTextSegment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-