@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AnalyzeDocumentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
AnalyzeDocumentRequest() |
Modifier and Type | Method and Description |
---|---|
AnalyzeDocumentRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
AdaptersConfig |
getAdaptersConfig()
Specifies the adapter to be used when analyzing a document.
|
Document |
getDocument()
The input document as base64-encoded bytes or an Amazon S3 object.
|
List<String> |
getFeatureTypes()
A list of the types of analysis to perform.
|
HumanLoopConfig |
getHumanLoopConfig()
Sets the configuration for the human in the loop workflow for analyzing documents.
|
QueriesConfig |
getQueriesConfig()
Contains Queries and the alias for those Queries, as determined by the input.
|
int |
hashCode() |
void |
setAdaptersConfig(AdaptersConfig adaptersConfig)
Specifies the adapter to be used when analyzing a document.
|
void |
setDocument(Document document)
The input document as base64-encoded bytes or an Amazon S3 object.
|
void |
setFeatureTypes(Collection<String> featureTypes)
A list of the types of analysis to perform.
|
void |
setHumanLoopConfig(HumanLoopConfig humanLoopConfig)
Sets the configuration for the human in the loop workflow for analyzing documents.
|
void |
setQueriesConfig(QueriesConfig queriesConfig)
Contains Queries and the alias for those Queries, as determined by the input.
|
String |
toString()
Returns a string representation of this object.
|
AnalyzeDocumentRequest |
withAdaptersConfig(AdaptersConfig adaptersConfig)
Specifies the adapter to be used when analyzing a document.
|
AnalyzeDocumentRequest |
withDocument(Document document)
The input document as base64-encoded bytes or an Amazon S3 object.
|
AnalyzeDocumentRequest |
withFeatureTypes(Collection<String> featureTypes)
A list of the types of analysis to perform.
|
AnalyzeDocumentRequest |
withFeatureTypes(FeatureType... featureTypes)
A list of the types of analysis to perform.
|
AnalyzeDocumentRequest |
withFeatureTypes(String... featureTypes)
A list of the types of analysis to perform.
|
AnalyzeDocumentRequest |
withHumanLoopConfig(HumanLoopConfig humanLoopConfig)
Sets the configuration for the human in the loop workflow for analyzing documents.
|
AnalyzeDocumentRequest |
withQueriesConfig(QueriesConfig queriesConfig)
Contains Queries and the alias for those Queries, as determined by the input.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDocument(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 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, 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 Bytes
field.
public Document getDocument()
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 Bytes
field.
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.
public AnalyzeDocumentRequest withDocument(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 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, 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 Bytes
field.
public List<String> getFeatureTypes()
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
).
FeatureTypes
).FeatureType
public void setFeatureTypes(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
).
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
).FeatureType
public AnalyzeDocumentRequest withFeatureTypes(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
).
NOTE: This method appends the values to the existing list (if any). Use
setFeatureTypes(java.util.Collection)
or withFeatureTypes(java.util.Collection)
if you want to
override the existing values.
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
).FeatureType
public AnalyzeDocumentRequest withFeatureTypes(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
).
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
).FeatureType
public AnalyzeDocumentRequest withFeatureTypes(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
).
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
).FeatureType
public void setHumanLoopConfig(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.public HumanLoopConfig getHumanLoopConfig()
Sets the configuration for the human in the loop workflow for analyzing documents.
public AnalyzeDocumentRequest withHumanLoopConfig(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.public void setQueriesConfig(QueriesConfig queriesConfig)
Contains Queries and the alias for those Queries, as determined by the input.
queriesConfig
- Contains Queries and the alias for those Queries, as determined by the input.public QueriesConfig getQueriesConfig()
Contains Queries and the alias for those Queries, as determined by the input.
public AnalyzeDocumentRequest withQueriesConfig(QueriesConfig queriesConfig)
Contains Queries and the alias for those Queries, as determined by the input.
queriesConfig
- Contains Queries and the alias for those Queries, as determined by the input.public void setAdaptersConfig(AdaptersConfig adaptersConfig)
Specifies the adapter to be used when analyzing a document.
adaptersConfig
- Specifies the adapter to be used when analyzing a document.public AdaptersConfig getAdaptersConfig()
Specifies the adapter to be used when analyzing a document.
public AnalyzeDocumentRequest withAdaptersConfig(AdaptersConfig adaptersConfig)
Specifies the adapter to be used when analyzing a document.
adaptersConfig
- Specifies the adapter to be used when analyzing a document.public String toString()
toString
in class Object
Object.toString()
public AnalyzeDocumentRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()