Interface DetectDocumentTextResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DetectDocumentTextResponse.Builder,
,DetectDocumentTextResponse> SdkBuilder<DetectDocumentTextResponse.Builder,
,DetectDocumentTextResponse> SdkPojo
,SdkResponse.Builder
,TextractResponse.Builder
- Enclosing class:
DetectDocumentTextResponse
public static interface DetectDocumentTextResponse.Builder
extends TextractResponse.Builder, SdkPojo, CopyableBuilder<DetectDocumentTextResponse.Builder,DetectDocumentTextResponse>
-
Method Summary
Modifier and TypeMethodDescriptionblocks
(Collection<Block> blocks) An array ofBlock
objects that contain the text that's detected in the document.blocks
(Consumer<Block.Builder>... blocks) An array ofBlock
objects that contain the text that's detected in the document.An array ofBlock
objects that contain the text that's detected in the document.detectDocumentTextModelVersion
(String detectDocumentTextModelVersion) documentMetadata
(Consumer<DocumentMetadata.Builder> documentMetadata) Metadata about the document.documentMetadata
(DocumentMetadata documentMetadata) Metadata about the document.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, 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 Details
-
documentMetadata
Metadata about the document. It contains the number of pages that are detected in the document.
- Parameters:
documentMetadata
- Metadata about the document. It contains the number of pages that are detected in the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentMetadata
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 viaDocumentMetadata.builder()
.When the
Consumer
completes,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
An array of
Block
objects that contain the text that's detected in the document.- Parameters:
blocks
- An array ofBlock
objects that contain the text that's detected in the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blocks
An array of
Block
objects that contain the text that's detected in the document.- Parameters:
blocks
- An array ofBlock
objects that contain the text that's detected in the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blocks
An array of
This is a convenience method that creates an instance of theBlock
objects that contain the text that's detected in the document.Block.Builder
avoiding the need to create one manually viaBlock.builder()
.When the
Consumer
completes,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:
-
detectDocumentTextModelVersion
DetectDocumentTextResponse.Builder detectDocumentTextModelVersion(String detectDocumentTextModelVersion) - Parameters:
detectDocumentTextModelVersion
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-