Interface Citation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Citation.Builder,Citation>,SdkBuilder<Citation.Builder,Citation>,SdkPojo
- Enclosing class:
- Citation
@Mutable @NotThreadSafe public static interface Citation.Builder extends SdkPojo, CopyableBuilder<Citation.Builder,Citation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Citation.Builderlocation(Consumer<CitationLocation.Builder> location)The precise location within the source document where the cited content can be found, including character positions, page numbers, or chunk identifiers.Citation.Builderlocation(CitationLocation location)The precise location within the source document where the cited content can be found, including character positions, page numbers, or chunk identifiers.Citation.BuildersourceContent(Collection<CitationSourceContent> sourceContent)The specific content from the source document that was referenced or cited in the generated response.Citation.BuildersourceContent(Consumer<CitationSourceContent.Builder>... sourceContent)The specific content from the source document that was referenced or cited in the generated response.Citation.BuildersourceContent(CitationSourceContent... sourceContent)The specific content from the source document that was referenced or cited in the generated response.Citation.Buildertitle(String title)The title or identifier of the source document being cited.-
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 Detail
-
title
Citation.Builder title(String title)
The title or identifier of the source document being cited.
- Parameters:
title- The title or identifier of the source document being cited.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceContent
Citation.Builder sourceContent(Collection<CitationSourceContent> sourceContent)
The specific content from the source document that was referenced or cited in the generated response.
- Parameters:
sourceContent- The specific content from the source document that was referenced or cited in the generated response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceContent
Citation.Builder sourceContent(CitationSourceContent... sourceContent)
The specific content from the source document that was referenced or cited in the generated response.
- Parameters:
sourceContent- The specific content from the source document that was referenced or cited in the generated response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceContent
Citation.Builder sourceContent(Consumer<CitationSourceContent.Builder>... sourceContent)
The specific content from the source document that was referenced or cited in the generated response.
This is a convenience method that creates an instance of theCitationSourceContent.Builderavoiding the need to create one manually viaCitationSourceContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#sourceContent(List.) - Parameters:
sourceContent- a consumer that will call methods onCitationSourceContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#sourceContent(java.util.Collection)
-
location
Citation.Builder location(CitationLocation location)
The precise location within the source document where the cited content can be found, including character positions, page numbers, or chunk identifiers.
- Parameters:
location- The precise location within the source document where the cited content can be found, including character positions, page numbers, or chunk identifiers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
default Citation.Builder location(Consumer<CitationLocation.Builder> location)
The precise location within the source document where the cited content can be found, including character positions, page numbers, or chunk identifiers.
This is a convenience method that creates an instance of theCitationLocation.Builderavoiding the need to create one manually viaCitationLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolocation(CitationLocation).- Parameters:
location- a consumer that will call methods onCitationLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
location(CitationLocation)
-
-