Interface SourceAttribution.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SourceAttribution.Builder,SourceAttribution>,SdkBuilder<SourceAttribution.Builder,SourceAttribution>,SdkPojo
- Enclosing class:
- SourceAttribution
public static interface SourceAttribution.Builder extends SdkPojo, CopyableBuilder<SourceAttribution.Builder,SourceAttribution>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SourceAttribution.BuildercitationNumber(Integer citationNumber)The number attached to a citation in an Amazon Q generated response.SourceAttribution.Buildersnippet(String snippet)The content extract from the document on which the generated response is based.SourceAttribution.BuildertextMessageSegments(Collection<TextSegment> textMessageSegments)A text extract from a source document that is used for source attribution.SourceAttribution.BuildertextMessageSegments(Consumer<TextSegment.Builder>... textMessageSegments)A text extract from a source document that is used for source attribution.SourceAttribution.BuildertextMessageSegments(TextSegment... textMessageSegments)A text extract from a source document that is used for source attribution.SourceAttribution.Buildertitle(String title)The title of the document which is the source for the Amazon Q generated response.SourceAttribution.BuilderupdatedAt(Instant updatedAt)The Unix timestamp when the Amazon Q application was last updated.SourceAttribution.Builderurl(String url)The URL of the document which is the source for the Amazon Q generated response.-
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
-
citationNumber
SourceAttribution.Builder citationNumber(Integer citationNumber)
The number attached to a citation in an Amazon Q generated response.
- Parameters:
citationNumber- The number attached to a citation in an Amazon Q generated response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snippet
SourceAttribution.Builder snippet(String 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.
-
textMessageSegments
SourceAttribution.Builder textMessageSegments(Collection<TextSegment> 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
SourceAttribution.Builder textMessageSegments(TextSegment... 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
SourceAttribution.Builder textMessageSegments(Consumer<TextSegment.Builder>... 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 to#textMessageSegments(List.) - 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:
#textMessageSegments(java.util.Collection)
-
title
SourceAttribution.Builder title(String title)
The title of the document which is the source for the Amazon Q generated response.
- Parameters:
title- The title of the document which is the source for the Amazon Q generated response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
SourceAttribution.Builder updatedAt(Instant updatedAt)
The Unix timestamp when the Amazon Q application was last updated.
- Parameters:
updatedAt- The Unix timestamp when the Amazon Q application was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
url
SourceAttribution.Builder url(String url)
The URL of the document which is the source for the Amazon Q generated response.
- Parameters:
url- The URL of the document which is the source for the Amazon Q generated response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-