Interface CitationLocation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CitationLocation.Builder,,CitationLocation> SdkBuilder<CitationLocation.Builder,,CitationLocation> SdkPojo
- Enclosing class:
CitationLocation
-
Method Summary
Modifier and TypeMethodDescriptiondefault CitationLocation.BuilderdocumentChar(Consumer<DocumentCharLocation.Builder> documentChar) The character-level location within the document where the cited content is found.documentChar(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.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.default CitationLocation.BuilderdocumentPage(Consumer<DocumentPageLocation.Builder> documentPage) The page-level location within the document where the cited content is found.documentPage(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.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.default CitationLocation.Builderweb(Consumer<WebLocation.Builder> web) The web URL that was cited for this reference.web(WebLocation web) The web URL that was cited for this reference.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
-
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
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:
-
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
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:
-
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
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:
-
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:
-
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:
-