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, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, build
DetectDocumentTextResponse.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 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)
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.
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)
DetectDocumentTextResponse.Builder detectDocumentTextModelVersion(String detectDocumentTextModelVersion)
detectDocumentTextModelVersion
- Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.