Interface AnalyzeDocumentResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<AnalyzeDocumentResponse.Builder,AnalyzeDocumentResponse>,SdkBuilder<AnalyzeDocumentResponse.Builder,AnalyzeDocumentResponse>,SdkPojo,SdkResponse.Builder,TextractResponse.Builder
- Enclosing class:
- AnalyzeDocumentResponse
public static interface AnalyzeDocumentResponse.Builder extends TextractResponse.Builder, SdkPojo, CopyableBuilder<AnalyzeDocumentResponse.Builder,AnalyzeDocumentResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AnalyzeDocumentResponse.BuilderanalyzeDocumentModelVersion(String analyzeDocumentModelVersion)The version of the model used to analyze the document.AnalyzeDocumentResponse.Builderblocks(Collection<Block> blocks)The items that are detected and analyzed byAnalyzeDocument.AnalyzeDocumentResponse.Builderblocks(Consumer<Block.Builder>... blocks)The items that are detected and analyzed byAnalyzeDocument.AnalyzeDocumentResponse.Builderblocks(Block... blocks)The items that are detected and analyzed byAnalyzeDocument.default AnalyzeDocumentResponse.BuilderdocumentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata)Metadata about the analyzed document.AnalyzeDocumentResponse.BuilderdocumentMetadata(DocumentMetadata documentMetadata)Metadata about the analyzed document.default AnalyzeDocumentResponse.BuilderhumanLoopActivationOutput(Consumer<HumanLoopActivationOutput.Builder> humanLoopActivationOutput)Shows the results of the human in the loop evaluation.AnalyzeDocumentResponse.BuilderhumanLoopActivationOutput(HumanLoopActivationOutput humanLoopActivationOutput)Shows the results of the human in the loop evaluation.-
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
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Methods inherited from interface software.amazon.awssdk.services.textract.model.TextractResponse.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
documentMetadata
AnalyzeDocumentResponse.Builder documentMetadata(DocumentMetadata 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:
documentMetadata(DocumentMetadata)
-
blocks
AnalyzeDocumentResponse.Builder blocks(Collection<Block> 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
AnalyzeDocumentResponse.Builder blocks(Block... 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
AnalyzeDocumentResponse.Builder blocks(Consumer<Block.Builder>... 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 to#blocks(List.) - 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:
#blocks(java.util.Collection)
-
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:
humanLoopActivationOutput(HumanLoopActivationOutput)
-
analyzeDocumentModelVersion
AnalyzeDocumentResponse.Builder analyzeDocumentModelVersion(String 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.
-
-