public static interface DetectDocumentTextResponse.Builder extends TextractResponse.Builder, SdkPojo, CopyableBuilder<DetectDocumentTextResponse.Builder,DetectDocumentTextResponse>
| Modifier and Type | Method and Description |
|---|---|
DetectDocumentTextResponse.Builder |
blocks(Block... blocks)
An array of
Block objects that contain the text that's detected in the document. |
DetectDocumentTextResponse.Builder |
blocks(Collection<Block> blocks)
An array of
Block objects that contain the text that's detected in the document. |
DetectDocumentTextResponse.Builder |
blocks(Consumer<Block.Builder>... blocks)
An array of
Block objects that contain the text that's detected in the document. |
DetectDocumentTextResponse.Builder |
detectDocumentTextModelVersion(String detectDocumentTextModelVersion)
|
default DetectDocumentTextResponse.Builder |
documentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata)
Metadata about the document.
|
DetectDocumentTextResponse.Builder |
documentMetadata(DocumentMetadata documentMetadata)
Metadata about the document.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildDetectDocumentTextResponse.Builder documentMetadata(DocumentMetadata documentMetadata)
Metadata about the document. It contains the number of pages that are detected in the document.
documentMetadata - Metadata about the document. It contains the number of pages that are detected in the document.default DetectDocumentTextResponse.Builder documentMetadata(Consumer<DocumentMetadata.Builder> documentMetadata)
Metadata about the document. It contains the number of pages that are detected in the document.
This is a convenience method 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.BuilderdocumentMetadata(DocumentMetadata)DetectDocumentTextResponse.Builder blocks(Collection<Block> blocks)
An array of Block objects that contain the text that's detected in the document.
blocks - An array of Block objects that contain the text that's detected in the document.DetectDocumentTextResponse.Builder blocks(Block... blocks)
An array of Block objects that contain the text that's detected in the document.
blocks - An array of Block objects that contain the text that's detected in the document.DetectDocumentTextResponse.Builder blocks(Consumer<Block.Builder>... blocks)
An array of Block objects that contain the text that's detected in the document.
Block.Builder avoiding the need to create one manually
via Block.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #blocks(List.
blocks - a consumer that will call methods on
Block.Builder#blocks(java.util.Collection) DetectDocumentTextResponse.Builder detectDocumentTextModelVersion(String detectDocumentTextModelVersion)
detectDocumentTextModelVersion - Copyright © 2023. All rights reserved.