Interface AnalyzeDocumentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<AnalyzeDocumentResponse.Builder,,AnalyzeDocumentResponse> SdkBuilder<AnalyzeDocumentResponse.Builder,,AnalyzeDocumentResponse> SdkPojo,SdkResponse.Builder,TextractResponse.Builder
- Enclosing class:
AnalyzeDocumentResponse
-
Method Summary
Modifier and TypeMethodDescriptionanalyzeDocumentModelVersion(String analyzeDocumentModelVersion) The version of the model used to analyze the document.blocks(Collection<Block> blocks) The items that are detected and analyzed byAnalyzeDocument.blocks(Consumer<Block.Builder>... blocks) The items that are detected and analyzed byAnalyzeDocument.The items that are detected and analyzed byAnalyzeDocument.default AnalyzeDocumentResponse.BuilderdocumentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata) Metadata about the analyzed document.documentMetadata(DocumentMetadata documentMetadata) Metadata about the analyzed document.default AnalyzeDocumentResponse.BuilderhumanLoopActivationOutput(Consumer<HumanLoopActivationOutput.Builder> humanLoopActivationOutput) Shows the results of the human in the loop evaluation.humanLoopActivationOutput(HumanLoopActivationOutput humanLoopActivationOutput) Shows the results of the human in the loop evaluation.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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.textract.model.TextractResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
documentMetadata
Metadata about the analyzed document. An example is the number of pages.
- Parameters:
documentMetadata- Metadata about the analyzed document. An example is the number of pages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentMetadata
default AnalyzeDocumentResponse.Builder documentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata) Metadata about the analyzed document. An example is the number of pages.
This is a convenience method that creates an instance of theDocumentMetadata.Builderavoiding the need to create one manually viaDocumentMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocumentMetadata(DocumentMetadata).- Parameters:
documentMetadata- a consumer that will call methods onDocumentMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
blocks
The items that are detected and analyzed by
AnalyzeDocument.- Parameters:
blocks- The items that are detected and analyzed byAnalyzeDocument.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blocks
The items that are detected and analyzed by
AnalyzeDocument.- Parameters:
blocks- The items that are detected and analyzed byAnalyzeDocument.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blocks
The items that are detected and analyzed by
This is a convenience method that creates an instance of theAnalyzeDocument.Block.Builderavoiding the need to create one manually viaBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toblocks(List<Block>).- Parameters:
blocks- a consumer that will call methods onBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
humanLoopActivationOutput
AnalyzeDocumentResponse.Builder humanLoopActivationOutput(HumanLoopActivationOutput humanLoopActivationOutput) Shows the results of the human in the loop evaluation.
- Parameters:
humanLoopActivationOutput- Shows the results of the human in the loop evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
humanLoopActivationOutput
default AnalyzeDocumentResponse.Builder humanLoopActivationOutput(Consumer<HumanLoopActivationOutput.Builder> humanLoopActivationOutput) Shows the results of the human in the loop evaluation.
This is a convenience method that creates an instance of theHumanLoopActivationOutput.Builderavoiding the need to create one manually viaHumanLoopActivationOutput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohumanLoopActivationOutput(HumanLoopActivationOutput).- Parameters:
humanLoopActivationOutput- a consumer that will call methods onHumanLoopActivationOutput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
analyzeDocumentModelVersion
The version of the model used to analyze the document.
- Parameters:
analyzeDocumentModelVersion- The version of the model used to analyze the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-