@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) |
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.
|
int |
hashCode() |
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.
|
String |
toString()
Returns a string representation of this object.
|
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.
|
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, withSdkRequestTimeoutpublic 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 JPG or PNG format.
If you are using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes 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 JPG or PNG format.
If you are using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes
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 JPG or PNG format.
If you are using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes passed using
the Bytes field.
If you are using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes
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 JPG or PNG format.
If you are using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes 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 JPG or PNG format.
If you are using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes
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
detected in the input document. Add FORMS to return detected fields and the associated text. To perform both
types of analysis, add TABLES and FORMS to FeatureTypes.
FeatureTypes.FeatureTypepublic 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
detected in the input document. Add FORMS to return detected fields and the associated text. To perform both
types of analysis, add TABLES and FORMS to FeatureTypes.
featureTypes - A list of the types of analysis to perform. Add TABLES to the list to return information about the tables
detected in the input document. Add FORMS to return detected fields and the associated text. To perform
both types of analysis, add TABLES and FORMS to FeatureTypes.FeatureTypepublic AnalyzeDocumentRequest withFeatureTypes(String... featureTypes)
A list of the types of analysis to perform. Add TABLES to the list to return information about the tables
detected in the input document. Add FORMS to return detected fields and the associated text. To perform both
types of analysis, add TABLES and FORMS to 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
detected in the input document. Add FORMS to return detected fields and the associated text. To perform
both types of analysis, add TABLES and FORMS to FeatureTypes.FeatureTypepublic 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
detected in the input document. Add FORMS to return detected fields and the associated text. To perform both
types of analysis, add TABLES and FORMS to FeatureTypes.
featureTypes - A list of the types of analysis to perform. Add TABLES to the list to return information about the tables
detected in the input document. Add FORMS to return detected fields and the associated text. To perform
both types of analysis, add TABLES and FORMS to FeatureTypes.FeatureTypepublic AnalyzeDocumentRequest withFeatureTypes(FeatureType... featureTypes)
A list of the types of analysis to perform. Add TABLES to the list to return information about the tables
detected in the input document. Add FORMS to return detected fields and the associated text. To perform both
types of analysis, add TABLES and FORMS to FeatureTypes.
featureTypes - A list of the types of analysis to perform. Add TABLES to the list to return information about the tables
detected in the input document. Add FORMS to return detected fields and the associated text. To perform
both types of analysis, add TABLES and FORMS to FeatureTypes.FeatureTypepublic String toString()
toString in class ObjectObject.toString()public AnalyzeDocumentRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.