public static interface AnalyzeDocumentRequest.Builder extends TextractRequest.Builder, SdkPojo, CopyableBuilder<AnalyzeDocumentRequest.Builder,AnalyzeDocumentRequest>
Modifier and Type | Method and Description |
---|---|
default AnalyzeDocumentRequest.Builder |
document(Consumer<Document.Builder> document)
The input document as base64-encoded bytes or an Amazon S3 object.
|
AnalyzeDocumentRequest.Builder |
document(Document document)
The input document as base64-encoded bytes or an Amazon S3 object.
|
AnalyzeDocumentRequest.Builder |
featureTypes(Collection<FeatureType> featureTypes)
A list of the types of analysis to perform.
|
AnalyzeDocumentRequest.Builder |
featureTypes(FeatureType... featureTypes)
A list of the types of analysis to perform.
|
AnalyzeDocumentRequest.Builder |
featureTypesWithStrings(Collection<String> featureTypes)
A list of the types of analysis to perform.
|
AnalyzeDocumentRequest.Builder |
featureTypesWithStrings(String... featureTypes)
A list of the types of analysis to perform.
|
default AnalyzeDocumentRequest.Builder |
humanLoopConfig(Consumer<HumanLoopConfig.Builder> humanLoopConfig)
Sets the configuration for the human in the loop workflow for analyzing documents.
|
AnalyzeDocumentRequest.Builder |
humanLoopConfig(HumanLoopConfig humanLoopConfig)
Sets the configuration for the human in the loop workflow for analyzing documents.
|
AnalyzeDocumentRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
AnalyzeDocumentRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
AnalyzeDocumentRequest.Builder document(Document document)
The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI to call Amazon Textract operations, you can't pass image bytes. The document must be an image in JPEG or PNG format.
If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes that are
passed using the Bytes
field.
document
- The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI to call
Amazon Textract operations, you can't pass image bytes. The document must be an image in JPEG or PNG
format.
If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes
that are passed using the Bytes
field.
default AnalyzeDocumentRequest.Builder document(Consumer<Document.Builder> document)
The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI to call Amazon Textract operations, you can't pass image bytes. The document must be an image in JPEG or PNG format.
If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes that are
passed using the Bytes
field.
Document.Builder
avoiding the need to create
one manually via Document.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to document(Document)
.document
- a consumer that will call methods on Document.Builder
document(Document)
AnalyzeDocumentRequest.Builder featureTypesWithStrings(Collection<String> featureTypes)
A list of the types of analysis to perform. Add TABLES to the list to return information about the tables
that are detected in the input document. Add FORMS to return detected form data. To perform both types of
analysis, add TABLES and FORMS to FeatureTypes
. All lines and words detected in the document are
included in the response (including text that isn't related to the value of FeatureTypes
).
featureTypes
- A list of the types of analysis to perform. Add TABLES to the list to return information about the
tables that are detected in the input document. Add FORMS to return detected form data. To perform
both types of analysis, add TABLES and FORMS to FeatureTypes
. All lines and words
detected in the document are included in the response (including text that isn't related to the value
of FeatureTypes
).AnalyzeDocumentRequest.Builder featureTypesWithStrings(String... featureTypes)
A list of the types of analysis to perform. Add TABLES to the list to return information about the tables
that are detected in the input document. Add FORMS to return detected form data. To perform both types of
analysis, add TABLES and FORMS to FeatureTypes
. All lines and words detected in the document are
included in the response (including text that isn't related to the value of FeatureTypes
).
featureTypes
- A list of the types of analysis to perform. Add TABLES to the list to return information about the
tables that are detected in the input document. Add FORMS to return detected form data. To perform
both types of analysis, add TABLES and FORMS to FeatureTypes
. All lines and words
detected in the document are included in the response (including text that isn't related to the value
of FeatureTypes
).AnalyzeDocumentRequest.Builder featureTypes(Collection<FeatureType> featureTypes)
A list of the types of analysis to perform. Add TABLES to the list to return information about the tables
that are detected in the input document. Add FORMS to return detected form data. To perform both types of
analysis, add TABLES and FORMS to FeatureTypes
. All lines and words detected in the document are
included in the response (including text that isn't related to the value of FeatureTypes
).
featureTypes
- A list of the types of analysis to perform. Add TABLES to the list to return information about the
tables that are detected in the input document. Add FORMS to return detected form data. To perform
both types of analysis, add TABLES and FORMS to FeatureTypes
. All lines and words
detected in the document are included in the response (including text that isn't related to the value
of FeatureTypes
).AnalyzeDocumentRequest.Builder featureTypes(FeatureType... featureTypes)
A list of the types of analysis to perform. Add TABLES to the list to return information about the tables
that are detected in the input document. Add FORMS to return detected form data. To perform both types of
analysis, add TABLES and FORMS to FeatureTypes
. All lines and words detected in the document are
included in the response (including text that isn't related to the value of FeatureTypes
).
featureTypes
- A list of the types of analysis to perform. Add TABLES to the list to return information about the
tables that are detected in the input document. Add FORMS to return detected form data. To perform
both types of analysis, add TABLES and FORMS to FeatureTypes
. All lines and words
detected in the document are included in the response (including text that isn't related to the value
of FeatureTypes
).AnalyzeDocumentRequest.Builder humanLoopConfig(HumanLoopConfig humanLoopConfig)
Sets the configuration for the human in the loop workflow for analyzing documents.
humanLoopConfig
- Sets the configuration for the human in the loop workflow for analyzing documents.default AnalyzeDocumentRequest.Builder humanLoopConfig(Consumer<HumanLoopConfig.Builder> humanLoopConfig)
Sets the configuration for the human in the loop workflow for analyzing documents.
This is a convenience that creates an instance of theHumanLoopConfig.Builder
avoiding the need to
create one manually via HumanLoopConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to humanLoopConfig(HumanLoopConfig)
.humanLoopConfig
- a consumer that will call methods on HumanLoopConfig.Builder
humanLoopConfig(HumanLoopConfig)
AnalyzeDocumentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
AnalyzeDocumentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2021. All rights reserved.