Interface CitationsDelta.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CitationsDelta.Builder,CitationsDelta>,SdkBuilder<CitationsDelta.Builder,CitationsDelta>,SdkPojo
- Enclosing class:
- CitationsDelta
@Mutable @NotThreadSafe public static interface CitationsDelta.Builder extends SdkPojo, CopyableBuilder<CitationsDelta.Builder,CitationsDelta>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CitationsDelta.Builderlocation(Consumer<CitationLocation.Builder> location)Specifies the precise location within a source document where cited content can be found.CitationsDelta.Builderlocation(CitationLocation location)Specifies the precise location within a source document where cited content can be found.CitationsDelta.BuildersourceContent(Collection<CitationSourceContentDelta> sourceContent)The specific content from the source document that was referenced or cited in the generated response.CitationsDelta.BuildersourceContent(Consumer<CitationSourceContentDelta.Builder>... sourceContent)The specific content from the source document that was referenced or cited in the generated response.CitationsDelta.BuildersourceContent(CitationSourceContentDelta... sourceContent)The specific content from the source document that was referenced or cited in the generated response.CitationsDelta.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
CitationsDelta.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
CitationsDelta.Builder sourceContent(Collection<CitationSourceContentDelta> 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
CitationsDelta.Builder sourceContent(CitationSourceContentDelta... 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
CitationsDelta.Builder sourceContent(Consumer<CitationSourceContentDelta.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 theCitationSourceContentDelta.Builderavoiding the need to create one manually viaCitationSourceContentDelta.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 onCitationSourceContentDelta.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#sourceContent(java.util.Collection)
-
location
CitationsDelta.Builder location(CitationLocation 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
default CitationsDelta.Builder location(Consumer<CitationLocation.Builder> 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:
location(CitationLocation)
-
-