public static interface AnalyzeDocumentResponse.Builder extends TextractResponse.Builder, SdkPojo, CopyableBuilder<AnalyzeDocumentResponse.Builder,AnalyzeDocumentResponse>
Modifier and Type | Method and Description |
---|---|
AnalyzeDocumentResponse.Builder |
analyzeDocumentModelVersion(String analyzeDocumentModelVersion)
The version of the model used to analyze the document.
|
AnalyzeDocumentResponse.Builder |
blocks(Block... blocks)
The items that are detected and analyzed by
AnalyzeDocument . |
AnalyzeDocumentResponse.Builder |
blocks(Collection<Block> blocks)
The items that are detected and analyzed by
AnalyzeDocument . |
AnalyzeDocumentResponse.Builder |
blocks(Consumer<Block.Builder>... blocks)
The items that are detected and analyzed by
AnalyzeDocument . |
default AnalyzeDocumentResponse.Builder |
documentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata)
Metadata about the analyzed document.
|
AnalyzeDocumentResponse.Builder |
documentMetadata(DocumentMetadata documentMetadata)
Metadata about the analyzed document.
|
default AnalyzeDocumentResponse.Builder |
humanLoopActivationOutput(Consumer<HumanLoopActivationOutput.Builder> humanLoopActivationOutput)
Shows the results of the human in the loop evaluation.
|
AnalyzeDocumentResponse.Builder |
humanLoopActivationOutput(HumanLoopActivationOutput humanLoopActivationOutput)
Shows the results of the human in the loop evaluation.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, build
AnalyzeDocumentResponse.Builder documentMetadata(DocumentMetadata documentMetadata)
Metadata about the analyzed document. An example is the number of pages.
documentMetadata
- Metadata about the analyzed document. An example is the number of pages.default AnalyzeDocumentResponse.Builder documentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata)
Metadata about the analyzed document. An example is the number of pages.
This is a convenience that creates an instance of theDocumentMetadata.Builder
avoiding the need to
create one manually via DocumentMetadata.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to documentMetadata(DocumentMetadata)
.documentMetadata
- a consumer that will call methods on DocumentMetadata.Builder
documentMetadata(DocumentMetadata)
AnalyzeDocumentResponse.Builder blocks(Collection<Block> blocks)
The items that are detected and analyzed by AnalyzeDocument
.
blocks
- The items that are detected and analyzed by AnalyzeDocument
.AnalyzeDocumentResponse.Builder blocks(Block... blocks)
The items that are detected and analyzed by AnalyzeDocument
.
blocks
- The items that are detected and analyzed by AnalyzeDocument
.AnalyzeDocumentResponse.Builder blocks(Consumer<Block.Builder>... blocks)
The items that are detected and analyzed by AnalyzeDocument
.
List.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #blocks(List)
.blocks
- a consumer that will call methods on List.Builder
#blocks(List)
AnalyzeDocumentResponse.Builder humanLoopActivationOutput(HumanLoopActivationOutput humanLoopActivationOutput)
Shows the results of the human in the loop evaluation.
humanLoopActivationOutput
- Shows the results of the human in the loop evaluation.default AnalyzeDocumentResponse.Builder humanLoopActivationOutput(Consumer<HumanLoopActivationOutput.Builder> humanLoopActivationOutput)
Shows the results of the human in the loop evaluation.
This is a convenience that creates an instance of theHumanLoopActivationOutput.Builder
avoiding the
need to create one manually via HumanLoopActivationOutput.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to humanLoopActivationOutput(HumanLoopActivationOutput)
.humanLoopActivationOutput
- a consumer that will call methods on HumanLoopActivationOutput.Builder
humanLoopActivationOutput(HumanLoopActivationOutput)
AnalyzeDocumentResponse.Builder analyzeDocumentModelVersion(String analyzeDocumentModelVersion)
The version of the model used to analyze the document.
analyzeDocumentModelVersion
- The version of the model used to analyze the document.Copyright © 2020. All rights reserved.