Interface Citation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Citation.Builder,,Citation> SdkBuilder<Citation.Builder,,Citation> SdkPojo
- Enclosing class:
Citation
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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.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.sourceContent(Collection<CitationSourceContent> sourceContent) The specific content from the source document that was referenced or cited in the generated response.sourceContent(Consumer<CitationSourceContent.Builder>... sourceContent) The specific content from the source document that was referenced or cited in the generated response.sourceContent(CitationSourceContent... sourceContent) The specific content from the source document that was referenced or cited in the generated response.The title or identifier of the source document being cited.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, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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 tosourceContent(List<CitationSourceContent>).- 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:
-
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
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:
-