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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DetectDocumentTextResponse.Builder
blocks(Collection<Block> blocks)
An array ofBlock
objects that contain the text that's detected in the document.DetectDocumentTextResponse.Builder
blocks(Consumer<Block.Builder>... blocks)
An array ofBlock
objects that contain the text that's detected in the document.DetectDocumentTextResponse.Builder
blocks(Block... blocks)
An array ofBlock
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.-
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
DetectDocumentTextResponse.Builder documentMetadata(DocumentMetadata 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:
documentMetadata(DocumentMetadata)
-
blocks
DetectDocumentTextResponse.Builder blocks(Collection<Block> 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
DetectDocumentTextResponse.Builder blocks(Block... 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
DetectDocumentTextResponse.Builder blocks(Consumer<Block.Builder>... 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 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
)
-
detectDocumentTextModelVersion
DetectDocumentTextResponse.Builder detectDocumentTextModelVersion(String detectDocumentTextModelVersion)
- Parameters:
detectDocumentTextModelVersion
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-