Interface AnalyzeDocumentRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<AnalyzeDocumentRequest.Builder,AnalyzeDocumentRequest>,SdkBuilder<AnalyzeDocumentRequest.Builder,AnalyzeDocumentRequest>,SdkPojo,SdkRequest.Builder,TextractRequest.Builder
- Enclosing class:
- AnalyzeDocumentRequest
public static interface AnalyzeDocumentRequest.Builder extends TextractRequest.Builder, SdkPojo, CopyableBuilder<AnalyzeDocumentRequest.Builder,AnalyzeDocumentRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AnalyzeDocumentRequest.BuilderadaptersConfig(Consumer<AdaptersConfig.Builder> adaptersConfig)Specifies the adapter to be used when analyzing a document.AnalyzeDocumentRequest.BuilderadaptersConfig(AdaptersConfig adaptersConfig)Specifies the adapter to be used when analyzing a document.default AnalyzeDocumentRequest.Builderdocument(Consumer<Document.Builder> document)The input document as base64-encoded bytes or an Amazon S3 object.AnalyzeDocumentRequest.Builderdocument(Document document)The input document as base64-encoded bytes or an Amazon S3 object.AnalyzeDocumentRequest.BuilderfeatureTypes(Collection<FeatureType> featureTypes)A list of the types of analysis to perform.AnalyzeDocumentRequest.BuilderfeatureTypes(FeatureType... featureTypes)A list of the types of analysis to perform.AnalyzeDocumentRequest.BuilderfeatureTypesWithStrings(String... featureTypes)A list of the types of analysis to perform.AnalyzeDocumentRequest.BuilderfeatureTypesWithStrings(Collection<String> featureTypes)A list of the types of analysis to perform.default AnalyzeDocumentRequest.BuilderhumanLoopConfig(Consumer<HumanLoopConfig.Builder> humanLoopConfig)Sets the configuration for the human in the loop workflow for analyzing documents.AnalyzeDocumentRequest.BuilderhumanLoopConfig(HumanLoopConfig humanLoopConfig)Sets the configuration for the human in the loop workflow for analyzing documents.AnalyzeDocumentRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)AnalyzeDocumentRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default AnalyzeDocumentRequest.BuilderqueriesConfig(Consumer<QueriesConfig.Builder> queriesConfig)Contains Queries and the alias for those Queries, as determined by the input.AnalyzeDocumentRequest.BuilderqueriesConfig(QueriesConfig queriesConfig)Contains Queries and the alias for those Queries, as determined by the input.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
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.services.textract.model.TextractRequest.Builder
build
-
-
-
-
Method Detail
-
document
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, PNG, PDF, or TIFF 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
Bytesfield.- Parameters:
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, PNG, PDF, or TIFF 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
Bytesfield.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
document
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, PNG, PDF, or TIFF 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
This is a convenience method that creates an instance of theBytesfield.Document.Builderavoiding the need to create one manually viaDocument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocument(Document).- Parameters:
document- a consumer that will call methods onDocument.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
document(Document)
-
featureTypesWithStrings
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. Add SIGNATURES to return the locations of detected signatures. Add LAYOUT to the list to return information about the layout of the document. All lines and words detected in the document are included in the response (including text that isn't related to the value of
FeatureTypes).- Parameters:
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. Add SIGNATURES to return the locations of detected signatures. Add LAYOUT to the list to return information about the layout of the document. All lines and words detected in the document are included in the response (including text that isn't related to the value ofFeatureTypes).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
featureTypesWithStrings
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. Add SIGNATURES to return the locations of detected signatures. Add LAYOUT to the list to return information about the layout of the document. All lines and words detected in the document are included in the response (including text that isn't related to the value of
FeatureTypes).- Parameters:
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. Add SIGNATURES to return the locations of detected signatures. Add LAYOUT to the list to return information about the layout of the document. All lines and words detected in the document are included in the response (including text that isn't related to the value ofFeatureTypes).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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. Add SIGNATURES to return the locations of detected signatures. Add LAYOUT to the list to return information about the layout of the document. All lines and words detected in the document are included in the response (including text that isn't related to the value of
FeatureTypes).- Parameters:
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. Add SIGNATURES to return the locations of detected signatures. Add LAYOUT to the list to return information about the layout of the document. All lines and words detected in the document are included in the response (including text that isn't related to the value ofFeatureTypes).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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. Add SIGNATURES to return the locations of detected signatures. Add LAYOUT to the list to return information about the layout of the document. All lines and words detected in the document are included in the response (including text that isn't related to the value of
FeatureTypes).- Parameters:
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. Add SIGNATURES to return the locations of detected signatures. Add LAYOUT to the list to return information about the layout of the document. All lines and words detected in the document are included in the response (including text that isn't related to the value ofFeatureTypes).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
humanLoopConfig
AnalyzeDocumentRequest.Builder humanLoopConfig(HumanLoopConfig humanLoopConfig)
Sets the configuration for the human in the loop workflow for analyzing documents.
- Parameters:
humanLoopConfig- Sets the configuration for the human in the loop workflow for analyzing documents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
humanLoopConfig
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 method that creates an instance of theHumanLoopConfig.Builderavoiding the need to create one manually viaHumanLoopConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohumanLoopConfig(HumanLoopConfig).- Parameters:
humanLoopConfig- a consumer that will call methods onHumanLoopConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
humanLoopConfig(HumanLoopConfig)
-
queriesConfig
AnalyzeDocumentRequest.Builder queriesConfig(QueriesConfig queriesConfig)
Contains Queries and the alias for those Queries, as determined by the input.
- Parameters:
queriesConfig- Contains Queries and the alias for those Queries, as determined by the input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queriesConfig
default AnalyzeDocumentRequest.Builder queriesConfig(Consumer<QueriesConfig.Builder> queriesConfig)
Contains Queries and the alias for those Queries, as determined by the input.
This is a convenience method that creates an instance of theQueriesConfig.Builderavoiding the need to create one manually viaQueriesConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toqueriesConfig(QueriesConfig).- Parameters:
queriesConfig- a consumer that will call methods onQueriesConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
queriesConfig(QueriesConfig)
-
adaptersConfig
AnalyzeDocumentRequest.Builder adaptersConfig(AdaptersConfig adaptersConfig)
Specifies the adapter to be used when analyzing a document.
- Parameters:
adaptersConfig- Specifies the adapter to be used when analyzing a document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
adaptersConfig
default AnalyzeDocumentRequest.Builder adaptersConfig(Consumer<AdaptersConfig.Builder> adaptersConfig)
Specifies the adapter to be used when analyzing a document.
This is a convenience method that creates an instance of theAdaptersConfig.Builderavoiding the need to create one manually viaAdaptersConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toadaptersConfig(AdaptersConfig).- Parameters:
adaptersConfig- a consumer that will call methods onAdaptersConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
adaptersConfig(AdaptersConfig)
-
overrideConfiguration
AnalyzeDocumentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
AnalyzeDocumentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-