Interface CitationsDelta.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CitationsDelta.Builder,,CitationsDelta> SdkBuilder<CitationsDelta.Builder,,CitationsDelta> SdkPojo
- Enclosing class:
CitationsDelta
-
Method Summary
Modifier and TypeMethodDescriptiondefault CitationsDelta.Builderlocation(Consumer<CitationLocation.Builder> location) Specifies the precise location within a source document where cited content can be found.location(CitationLocation location) Specifies the precise location within a source document where cited content can be found.sourceContent(Collection<CitationSourceContentDelta> sourceContent) The specific content from the source document that was referenced or cited in the generated response.sourceContent(Consumer<CitationSourceContentDelta.Builder>... sourceContent) The specific content from the source document that was referenced or cited in the generated response.sourceContent(CitationSourceContentDelta... 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 theCitationSourceContentDelta.Builderavoiding the need to create one manually viaCitationSourceContentDelta.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceContent(List<CitationSourceContentDelta>).- Parameters:
sourceContent- a consumer that will call methods onCitationSourceContentDelta.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
location
Specifies the precise location within a source document where cited content can be found. This can include character-level positions, page numbers, or document chunks depending on the document type and indexing method.
- Parameters:
location- Specifies the precise location within a source document where cited content can be found. This can include character-level positions, page numbers, or document chunks depending on the document type and indexing method.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
Specifies the precise location within a source document where cited content can be found. This can include character-level positions, page numbers, or document chunks depending on the document type and indexing method.
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:
-