Interface CitationLocation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CitationLocation.Builder,CitationLocation>,SdkBuilder<CitationLocation.Builder,CitationLocation>,SdkPojo
- Enclosing class:
- CitationLocation
@Mutable @NotThreadSafe public static interface CitationLocation.Builder extends SdkPojo, CopyableBuilder<CitationLocation.Builder,CitationLocation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CitationLocation.BuilderdocumentChar(Consumer<DocumentCharLocation.Builder> documentChar)The character-level location within the document where the cited content is found.CitationLocation.BuilderdocumentChar(DocumentCharLocation documentChar)The character-level location within the document where the cited content is found.default CitationLocation.BuilderdocumentChunk(Consumer<DocumentChunkLocation.Builder> documentChunk)The chunk-level location within the document where the cited content is found, typically used for documents that have been segmented into logical chunks.CitationLocation.BuilderdocumentChunk(DocumentChunkLocation documentChunk)The chunk-level location within the document where the cited content is found, typically used for documents that have been segmented into logical chunks.default CitationLocation.BuilderdocumentPage(Consumer<DocumentPageLocation.Builder> documentPage)The page-level location within the document where the cited content is found.CitationLocation.BuilderdocumentPage(DocumentPageLocation documentPage)The page-level location within the document where the cited content is found.default CitationLocation.BuildersearchResultLocation(Consumer<SearchResultLocation.Builder> searchResultLocation)The search result location where the cited content is found, including the search result index and block positions within the content array.CitationLocation.BuildersearchResultLocation(SearchResultLocation searchResultLocation)The search result location where the cited content is found, including the search result index and block positions within the content array.default CitationLocation.Builderweb(Consumer<WebLocation.Builder> web)The web URL that was cited for this reference.CitationLocation.Builderweb(WebLocation web)The web URL that was cited for this reference.-
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
-
web
CitationLocation.Builder web(WebLocation web)
The web URL that was cited for this reference.
- Parameters:
web- The web URL that was cited for this reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
web
default CitationLocation.Builder web(Consumer<WebLocation.Builder> web)
The web URL that was cited for this reference.
This is a convenience method that creates an instance of theWebLocation.Builderavoiding the need to create one manually viaWebLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toweb(WebLocation).- Parameters:
web- a consumer that will call methods onWebLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
web(WebLocation)
-
documentChar
CitationLocation.Builder documentChar(DocumentCharLocation documentChar)
The character-level location within the document where the cited content is found.
- Parameters:
documentChar- The character-level location within the document where the cited content is found.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentChar
default CitationLocation.Builder documentChar(Consumer<DocumentCharLocation.Builder> documentChar)
The character-level location within the document where the cited content is found.
This is a convenience method that creates an instance of theDocumentCharLocation.Builderavoiding the need to create one manually viaDocumentCharLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocumentChar(DocumentCharLocation).- Parameters:
documentChar- a consumer that will call methods onDocumentCharLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
documentChar(DocumentCharLocation)
-
documentPage
CitationLocation.Builder documentPage(DocumentPageLocation documentPage)
The page-level location within the document where the cited content is found.
- Parameters:
documentPage- The page-level location within the document where the cited content is found.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentPage
default CitationLocation.Builder documentPage(Consumer<DocumentPageLocation.Builder> documentPage)
The page-level location within the document where the cited content is found.
This is a convenience method that creates an instance of theDocumentPageLocation.Builderavoiding the need to create one manually viaDocumentPageLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocumentPage(DocumentPageLocation).- Parameters:
documentPage- a consumer that will call methods onDocumentPageLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
documentPage(DocumentPageLocation)
-
documentChunk
CitationLocation.Builder documentChunk(DocumentChunkLocation documentChunk)
The chunk-level location within the document where the cited content is found, typically used for documents that have been segmented into logical chunks.
- Parameters:
documentChunk- The chunk-level location within the document where the cited content is found, typically used for documents that have been segmented into logical chunks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentChunk
default CitationLocation.Builder documentChunk(Consumer<DocumentChunkLocation.Builder> documentChunk)
The chunk-level location within the document where the cited content is found, typically used for documents that have been segmented into logical chunks.
This is a convenience method that creates an instance of theDocumentChunkLocation.Builderavoiding the need to create one manually viaDocumentChunkLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocumentChunk(DocumentChunkLocation).- Parameters:
documentChunk- a consumer that will call methods onDocumentChunkLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
documentChunk(DocumentChunkLocation)
-
searchResultLocation
CitationLocation.Builder searchResultLocation(SearchResultLocation searchResultLocation)
The search result location where the cited content is found, including the search result index and block positions within the content array.
- Parameters:
searchResultLocation- The search result location where the cited content is found, including the search result index and block positions within the content array.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchResultLocation
default CitationLocation.Builder searchResultLocation(Consumer<SearchResultLocation.Builder> searchResultLocation)
The search result location where the cited content is found, including the search result index and block positions within the content array.
This is a convenience method that creates an instance of theSearchResultLocation.Builderavoiding the need to create one manually viaSearchResultLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosearchResultLocation(SearchResultLocation).- Parameters:
searchResultLocation- a consumer that will call methods onSearchResultLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
searchResultLocation(SearchResultLocation)
-
-