diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextract.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextract.java index e57b54fd6cb..2d2f190e79c 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextract.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextract.java @@ -97,40 +97,41 @@ public interface AmazonTextract { * *

- * Lines and words of text. A LINE Block object contains one or more WORD - * Block objects. + * Selection elements such as check boxes and option buttons (radio buttons) + * can be detected in form data and in tables. A SELECTION_ELEMENT + * Block object contains information about a selection element, + * including the selection status. *

- * - * *

* You can choose which type of analysis to perform by specifying the * FeatureTypes list. *

*

- * The output is returned in a list of BLOCK objects. + * The output is returned in a list of Block objects. *

*

* AnalyzeDocument is a synchronous operation. To analyze @@ -154,6 +155,7 @@ public interface AmazonTextract { * @throws ProvisionedThroughputExceededException * @throws InternalServerErrorException * @throws ThrottlingException + * @throws HumanLoopQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -169,8 +171,8 @@ AnalyzeDocumentResult analyzeDocument(AnalyzeDocumentRequest analyzeDocumentRequ *

* Detects text in the input document. Amazon Textract can detect lines of * text and the words that make up a line of text. The input document must - * be an image in JPG or PNG format. DetectDocumentText returns - * the detected text in an array of Block objects. + * be an image in JPEG or PNG format. DetectDocumentText + * returns the detected text in an array of Block objects. *

*

* Each document page has as an associated Block of type PAGE. @@ -238,37 +240,39 @@ DetectDocumentTextResult detectDocumentText(DetectDocumentTextRequest detectDocu *

*

- * Lines and words of text. A LINE Block object contains one or more WORD - * Block objects. + * Selection elements such as check boxes and option buttons (radio buttons) + * can be detected in form data and in tables. A SELECTION_ELEMENT + * Block object contains information about a selection element, + * including the selection status. *

- * - * *

* Use the MaxResults parameter to limit the number of blocks - * returned. If there are more results than specified in + * that are returned. If there are more results than specified in * MaxResults, the value of NextToken in the * operation response contains a pagination token for getting the next set * of results. To get the next page of results, call @@ -375,13 +379,13 @@ GetDocumentTextDetectionResult getDocumentTextDetection( /** *

- * Starts asynchronous analysis of an input document for relationships - * between detected items such as key and value pairs, tables, and selection + * Starts the asynchronous analysis of an input document for relationships + * between detected items such as key-value pairs, tables, and selection * elements. *

*

* StartDocumentAnalysis can analyze text in documents that are - * in JPG, PNG, and PDF format. The documents are stored in an Amazon S3 + * in JPEG, PNG, and PDF format. The documents are stored in an Amazon S3 * bucket. Use DocumentLocation to specify the bucket name and file * name of the document. *

@@ -437,7 +441,7 @@ StartDocumentAnalysisResult startDocumentAnalysis( *

*

* StartDocumentTextDetection can analyze text in documents - * that are in JPG, PNG, and PDF format. The documents are stored in an + * that are in JPEG, PNG, and PDF format. The documents are stored in an * Amazon S3 bucket. Use DocumentLocation to specify the bucket name * and file name of the document. *

diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractAsync.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractAsync.java index 64e4c67bf31..151423dd9c1 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractAsync.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractAsync.java @@ -41,40 +41,41 @@ public interface AmazonTextractAsync extends AmazonTextract { * *

- * Lines and words of text. A LINE Block object contains one or more WORD - * Block objects. + * Selection elements such as check boxes and option buttons (radio buttons) + * can be detected in form data and in tables. A SELECTION_ELEMENT + * Block object contains information about a selection element, + * including the selection status. *

- * - * *

* You can choose which type of analysis to perform by specifying the * FeatureTypes list. *

*

- * The output is returned in a list of BLOCK objects. + * The output is returned in a list of Block objects. *

*

* AnalyzeDocument is a synchronous operation. To analyze @@ -98,6 +99,7 @@ public interface AmazonTextractAsync extends AmazonTextract { * @throws ProvisionedThroughputExceededException * @throws InternalServerErrorException * @throws ThrottlingException + * @throws HumanLoopQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -119,40 +121,41 @@ Future analyzeDocumentAsync(AnalyzeDocumentRequest analyz *

*

- * Lines and words of text. A LINE Block object contains one or more WORD - * Block objects. + * Selection elements such as check boxes and option buttons (radio buttons) + * can be detected in form data and in tables. A SELECTION_ELEMENT + * Block object contains information about a selection element, + * including the selection status. *

- * - * *

* You can choose which type of analysis to perform by specifying the * FeatureTypes list. *

*

- * The output is returned in a list of BLOCK objects. + * The output is returned in a list of Block objects. *

*

* AnalyzeDocument is a synchronous operation. To analyze @@ -180,6 +183,7 @@ Future analyzeDocumentAsync(AnalyzeDocumentRequest analyz * @throws ProvisionedThroughputExceededException * @throws InternalServerErrorException * @throws ThrottlingException + * @throws HumanLoopQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -197,8 +201,8 @@ Future analyzeDocumentAsync( *

* Detects text in the input document. Amazon Textract can detect lines of * text and the words that make up a line of text. The input document must - * be an image in JPG or PNG format. DetectDocumentText returns - * the detected text in an array of Block objects. + * be an image in JPEG or PNG format. DetectDocumentText + * returns the detected text in an array of Block objects. *

*

* Each document page has as an associated Block of type PAGE. @@ -247,8 +251,8 @@ Future detectDocumentTextAsync( *

* Detects text in the input document. Amazon Textract can detect lines of * text and the words that make up a line of text. The input document must - * be an image in JPG or PNG format. DetectDocumentText returns - * the detected text in an array of Block objects. + * be an image in JPEG or PNG format. DetectDocumentText + * returns the detected text in an array of Block objects. *

*

* Each document page has as an associated Block of type PAGE. @@ -323,37 +327,39 @@ Future detectDocumentTextAsync( *

*

- * Lines and words of text. A LINE Block object contains one or more WORD - * Block objects. + * Selection elements such as check boxes and option buttons (radio buttons) + * can be detected in form data and in tables. A SELECTION_ELEMENT + * Block object contains information about a selection element, + * including the selection status. *

- * - * *

* Use the MaxResults parameter to limit the number of blocks - * returned. If there are more results than specified in + * that are returned. If there are more results than specified in * MaxResults, the value of NextToken in the * operation response contains a pagination token for getting the next set * of results. To get the next page of results, call @@ -414,37 +420,39 @@ Future getDocumentAnalysisAsync( *

*

- * Lines and words of text. A LINE Block object contains one or more WORD - * Block objects. + * Selection elements such as check boxes and option buttons (radio buttons) + * can be detected in form data and in tables. A SELECTION_ELEMENT + * Block object contains information about a selection element, + * including the selection status. *

- * - * *

* Use the MaxResults parameter to limit the number of blocks - * returned. If there are more results than specified in + * that are returned. If there are more results than specified in * MaxResults, the value of NextToken in the * operation response contains a pagination token for getting the next set * of results. To get the next page of results, call @@ -630,13 +638,13 @@ Future getDocumentTextDetectionAsync( /** *

- * Starts asynchronous analysis of an input document for relationships - * between detected items such as key and value pairs, tables, and selection + * Starts the asynchronous analysis of an input document for relationships + * between detected items such as key-value pairs, tables, and selection * elements. *

*

* StartDocumentAnalysis can analyze text in documents that are - * in JPG, PNG, and PDF format. The documents are stored in an Amazon S3 + * in JPEG, PNG, and PDF format. The documents are stored in an Amazon S3 * bucket. Use DocumentLocation to specify the bucket name and file * name of the document. *

@@ -687,13 +695,13 @@ Future startDocumentAnalysisAsync( /** *

- * Starts asynchronous analysis of an input document for relationships - * between detected items such as key and value pairs, tables, and selection + * Starts the asynchronous analysis of an input document for relationships + * between detected items such as key-value pairs, tables, and selection * elements. *

*

* StartDocumentAnalysis can analyze text in documents that are - * in JPG, PNG, and PDF format. The documents are stored in an Amazon S3 + * in JPEG, PNG, and PDF format. The documents are stored in an Amazon S3 * bucket. Use DocumentLocation to specify the bucket name and file * name of the document. *

@@ -754,7 +762,7 @@ Future startDocumentAnalysisAsync( *

*

* StartDocumentTextDetection can analyze text in documents - * that are in JPG, PNG, and PDF format. The documents are stored in an + * that are in JPEG, PNG, and PDF format. The documents are stored in an * Amazon S3 bucket. Use DocumentLocation to specify the bucket name * and file name of the document. *

@@ -810,7 +818,7 @@ Future startDocumentTextDetectionAsync( *

*

* StartDocumentTextDetection can analyze text in documents - * that are in JPG, PNG, and PDF format. The documents are stored in an + * that are in JPEG, PNG, and PDF format. The documents are stored in an * Amazon S3 bucket. Use DocumentLocation to specify the bucket name * and file name of the document. *

diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractAsyncClient.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractAsyncClient.java index 3ef6c05ab87..cfab785952b 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractAsyncClient.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractAsyncClient.java @@ -267,40 +267,41 @@ public void shutdown() { *
    *
  • *

    - * Words and lines that are related to nearby lines and words. The related - * information is returned in two Block objects each of type - * KEY_VALUE_SET: a KEY Block object and a VALUE Block object. - * For example, Name: Ana Silva Carolina contains a key and value. + * Form data (key-value pairs). The related information is returned in two + * Block objects, each of type KEY_VALUE_SET: a KEY + * Block object and a VALUE Block object. For + * example, Name: Ana Silva Carolina contains a key and value. * Name: is the key. Ana Silva Carolina is the value. *

    *
  • *
  • *

    - * Table and table cell data. A TABLE Block object contains information - * about a detected table. A CELL Block object is returned for each cell in - * a table. + * Table and table cell data. A TABLE Block object contains + * information about a detected table. A CELL Block object is + * returned for each cell in a table. *

    *
  • *
  • *

    - * Selectable elements such as checkboxes and radio buttons. A - * SELECTION_ELEMENT Block object contains information about a selectable - * element. + * Lines and words of text. A LINE Block object contains one or + * more WORD Block objects. All lines and words that are + * detected in the document are returned (including text that doesn't have a + * relationship with the value of FeatureTypes). *

    *
  • - *
  • + *
*

- * Lines and words of text. A LINE Block object contains one or more WORD - * Block objects. + * Selection elements such as check boxes and option buttons (radio buttons) + * can be detected in form data and in tables. A SELECTION_ELEMENT + * Block object contains information about a selection element, + * including the selection status. *

- * - * *

* You can choose which type of analysis to perform by specifying the * FeatureTypes list. *

*

- * The output is returned in a list of BLOCK objects. + * The output is returned in a list of Block objects. *

*

* AnalyzeDocument is a synchronous operation. To analyze @@ -324,6 +325,7 @@ public void shutdown() { * @throws ProvisionedThroughputExceededException * @throws InternalServerErrorException * @throws ThrottlingException + * @throws HumanLoopQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -352,40 +354,41 @@ public AnalyzeDocumentResult call() throws Exception { *

    *
  • *

    - * Words and lines that are related to nearby lines and words. The related - * information is returned in two Block objects each of type - * KEY_VALUE_SET: a KEY Block object and a VALUE Block object. - * For example, Name: Ana Silva Carolina contains a key and value. + * Form data (key-value pairs). The related information is returned in two + * Block objects, each of type KEY_VALUE_SET: a KEY + * Block object and a VALUE Block object. For + * example, Name: Ana Silva Carolina contains a key and value. * Name: is the key. Ana Silva Carolina is the value. *

    *
  • *
  • *

    - * Table and table cell data. A TABLE Block object contains information - * about a detected table. A CELL Block object is returned for each cell in - * a table. + * Table and table cell data. A TABLE Block object contains + * information about a detected table. A CELL Block object is + * returned for each cell in a table. *

    *
  • *
  • *

    - * Selectable elements such as checkboxes and radio buttons. A - * SELECTION_ELEMENT Block object contains information about a selectable - * element. + * Lines and words of text. A LINE Block object contains one or + * more WORD Block objects. All lines and words that are + * detected in the document are returned (including text that doesn't have a + * relationship with the value of FeatureTypes). *

    *
  • - *
  • + *
*

- * Lines and words of text. A LINE Block object contains one or more WORD - * Block objects. + * Selection elements such as check boxes and option buttons (radio buttons) + * can be detected in form data and in tables. A SELECTION_ELEMENT + * Block object contains information about a selection element, + * including the selection status. *

- * - * *

* You can choose which type of analysis to perform by specifying the * FeatureTypes list. *

*

- * The output is returned in a list of BLOCK objects. + * The output is returned in a list of Block objects. *

*

* AnalyzeDocument is a synchronous operation. To analyze @@ -409,6 +412,7 @@ public AnalyzeDocumentResult call() throws Exception { * @throws ProvisionedThroughputExceededException * @throws InternalServerErrorException * @throws ThrottlingException + * @throws HumanLoopQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -440,8 +444,8 @@ public AnalyzeDocumentResult call() throws Exception { *

* Detects text in the input document. Amazon Textract can detect lines of * text and the words that make up a line of text. The input document must - * be an image in JPG or PNG format. DetectDocumentText returns - * the detected text in an array of Block objects. + * be an image in JPEG or PNG format. DetectDocumentText + * returns the detected text in an array of Block objects. *

*

* Each document page has as an associated Block of type PAGE. @@ -496,8 +500,8 @@ public DetectDocumentTextResult call() throws Exception { *

* Detects text in the input document. Amazon Textract can detect lines of * text and the words that make up a line of text. The input document must - * be an image in JPG or PNG format. DetectDocumentText returns - * the detected text in an array of Block objects. + * be an image in JPEG or PNG format. DetectDocumentText + * returns the detected text in an array of Block objects. *

*

* Each document page has as an associated Block of type PAGE. @@ -582,37 +586,39 @@ public DetectDocumentTextResult call() throws Exception { *

    *
  • *

    - * Words and lines that are related to nearby lines and words. The related - * information is returned in two Block objects each of type - * KEY_VALUE_SET: a KEY Block object and a VALUE Block object. - * For example, Name: Ana Silva Carolina contains a key and value. + * Form data (key-value pairs). The related information is returned in two + * Block objects, each of type KEY_VALUE_SET: a KEY + * Block object and a VALUE Block object. For + * example, Name: Ana Silva Carolina contains a key and value. * Name: is the key. Ana Silva Carolina is the value. *

    *
  • *
  • *

    - * Table and table cell data. A TABLE Block object contains information - * about a detected table. A CELL Block object is returned for each cell in - * a table. + * Table and table cell data. A TABLE Block object contains + * information about a detected table. A CELL Block object is + * returned for each cell in a table. *

    *
  • *
  • *

    - * Selectable elements such as checkboxes and radio buttons. A - * SELECTION_ELEMENT Block object contains information about a selectable - * element. + * Lines and words of text. A LINE Block object contains one or + * more WORD Block objects. All lines and words that are + * detected in the document are returned (including text that doesn't have a + * relationship with the value of the StartDocumentAnalysis + * FeatureTypes input parameter). *

    *
  • - *
  • + *
*

- * Lines and words of text. A LINE Block object contains one or more WORD - * Block objects. + * Selection elements such as check boxes and option buttons (radio buttons) + * can be detected in form data and in tables. A SELECTION_ELEMENT + * Block object contains information about a selection element, + * including the selection status. *

- * - * *

* Use the MaxResults parameter to limit the number of blocks - * returned. If there are more results than specified in + * that are returned. If there are more results than specified in * MaxResults, the value of NextToken in the * operation response contains a pagination token for getting the next set * of results. To get the next page of results, call @@ -679,37 +685,39 @@ public GetDocumentAnalysisResult call() throws Exception { *

    *
  • *

    - * Words and lines that are related to nearby lines and words. The related - * information is returned in two Block objects each of type - * KEY_VALUE_SET: a KEY Block object and a VALUE Block object. - * For example, Name: Ana Silva Carolina contains a key and value. + * Form data (key-value pairs). The related information is returned in two + * Block objects, each of type KEY_VALUE_SET: a KEY + * Block object and a VALUE Block object. For + * example, Name: Ana Silva Carolina contains a key and value. * Name: is the key. Ana Silva Carolina is the value. *

    *
  • *
  • *

    - * Table and table cell data. A TABLE Block object contains information - * about a detected table. A CELL Block object is returned for each cell in - * a table. + * Table and table cell data. A TABLE Block object contains + * information about a detected table. A CELL Block object is + * returned for each cell in a table. *

    *
  • *
  • *

    - * Selectable elements such as checkboxes and radio buttons. A - * SELECTION_ELEMENT Block object contains information about a selectable - * element. + * Lines and words of text. A LINE Block object contains one or + * more WORD Block objects. All lines and words that are + * detected in the document are returned (including text that doesn't have a + * relationship with the value of the StartDocumentAnalysis + * FeatureTypes input parameter). *

    *
  • - *
  • + *
*

- * Lines and words of text. A LINE Block object contains one or more WORD - * Block objects. + * Selection elements such as check boxes and option buttons (radio buttons) + * can be detected in form data and in tables. A SELECTION_ELEMENT + * Block object contains information about a selection element, + * including the selection status. *

- * - * *

* Use the MaxResults parameter to limit the number of blocks - * returned. If there are more results than specified in + * that are returned. If there are more results than specified in * MaxResults, the value of NextToken in the * operation response contains a pagination token for getting the next set * of results. To get the next page of results, call @@ -921,13 +929,13 @@ public GetDocumentTextDetectionResult call() throws Exception { /** *

- * Starts asynchronous analysis of an input document for relationships - * between detected items such as key and value pairs, tables, and selection + * Starts the asynchronous analysis of an input document for relationships + * between detected items such as key-value pairs, tables, and selection * elements. *

*

* StartDocumentAnalysis can analyze text in documents that are - * in JPG, PNG, and PDF format. The documents are stored in an Amazon S3 + * in JPEG, PNG, and PDF format. The documents are stored in an Amazon S3 * bucket. Use DocumentLocation to specify the bucket name and file * name of the document. *

@@ -984,13 +992,13 @@ public StartDocumentAnalysisResult call() throws Exception { /** *

- * Starts asynchronous analysis of an input document for relationships - * between detected items such as key and value pairs, tables, and selection + * Starts the asynchronous analysis of an input document for relationships + * between detected items such as key-value pairs, tables, and selection * elements. *

*

* StartDocumentAnalysis can analyze text in documents that are - * in JPG, PNG, and PDF format. The documents are stored in an Amazon S3 + * in JPEG, PNG, and PDF format. The documents are stored in an Amazon S3 * bucket. Use DocumentLocation to specify the bucket name and file * name of the document. *

@@ -1061,7 +1069,7 @@ public StartDocumentAnalysisResult call() throws Exception { *

*

* StartDocumentTextDetection can analyze text in documents - * that are in JPG, PNG, and PDF format. The documents are stored in an + * that are in JPEG, PNG, and PDF format. The documents are stored in an * Amazon S3 bucket. Use DocumentLocation to specify the bucket name * and file name of the document. *

@@ -1123,7 +1131,7 @@ public StartDocumentTextDetectionResult call() throws Exception { *

*

* StartDocumentTextDetection can analyze text in documents - * that are in JPG, PNG, and PDF format. The documents are stored in an + * that are in JPEG, PNG, and PDF format. The documents are stored in an * Amazon S3 bucket. Use DocumentLocation to specify the bucket name * and file name of the document. *

diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractClient.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractClient.java index 81612269109..172a5c83c31 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractClient.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractClient.java @@ -328,6 +328,7 @@ private void init() { jsonErrorUnmarshallers.add(new AccessDeniedExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new BadDocumentExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new DocumentTooLargeExceptionUnmarshaller()); + jsonErrorUnmarshallers.add(new HumanLoopQuotaExceededExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new IdempotentParameterMismatchExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new InternalServerErrorExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new InvalidJobIdExceptionUnmarshaller()); @@ -366,40 +367,41 @@ private static ClientConfiguration adjustClientConfiguration(ClientConfiguration *
    *
  • *

    - * Words and lines that are related to nearby lines and words. The related - * information is returned in two Block objects each of type - * KEY_VALUE_SET: a KEY Block object and a VALUE Block object. - * For example, Name: Ana Silva Carolina contains a key and value. + * Form data (key-value pairs). The related information is returned in two + * Block objects, each of type KEY_VALUE_SET: a KEY + * Block object and a VALUE Block object. For + * example, Name: Ana Silva Carolina contains a key and value. * Name: is the key. Ana Silva Carolina is the value. *

    *
  • *
  • *

    - * Table and table cell data. A TABLE Block object contains information - * about a detected table. A CELL Block object is returned for each cell in - * a table. + * Table and table cell data. A TABLE Block object contains + * information about a detected table. A CELL Block object is + * returned for each cell in a table. *

    *
  • *
  • *

    - * Selectable elements such as checkboxes and radio buttons. A - * SELECTION_ELEMENT Block object contains information about a selectable - * element. + * Lines and words of text. A LINE Block object contains one or + * more WORD Block objects. All lines and words that are + * detected in the document are returned (including text that doesn't have a + * relationship with the value of FeatureTypes). *

    *
  • - *
  • + *
*

- * Lines and words of text. A LINE Block object contains one or more WORD - * Block objects. + * Selection elements such as check boxes and option buttons (radio buttons) + * can be detected in form data and in tables. A SELECTION_ELEMENT + * Block object contains information about a selection element, + * including the selection status. *

- * - * *

* You can choose which type of analysis to perform by specifying the * FeatureTypes list. *

*

- * The output is returned in a list of BLOCK objects. + * The output is returned in a list of Block objects. *

*

* AnalyzeDocument is a synchronous operation. To analyze @@ -423,6 +425,7 @@ private static ClientConfiguration adjustClientConfiguration(ClientConfiguration * @throws ProvisionedThroughputExceededException * @throws InternalServerErrorException * @throws ThrottlingException + * @throws HumanLoopQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -464,8 +467,8 @@ public AnalyzeDocumentResult analyzeDocument(AnalyzeDocumentRequest analyzeDocum *

* Detects text in the input document. Amazon Textract can detect lines of * text and the words that make up a line of text. The input document must - * be an image in JPG or PNG format. DetectDocumentText returns - * the detected text in an array of Block objects. + * be an image in JPEG or PNG format. DetectDocumentText + * returns the detected text in an array of Block objects. *

*

* Each document page has as an associated Block of type PAGE. @@ -561,37 +564,39 @@ public DetectDocumentTextResult detectDocumentText( *

    *
  • *

    - * Words and lines that are related to nearby lines and words. The related - * information is returned in two Block objects each of type - * KEY_VALUE_SET: a KEY Block object and a VALUE Block object. - * For example, Name: Ana Silva Carolina contains a key and value. + * Form data (key-value pairs). The related information is returned in two + * Block objects, each of type KEY_VALUE_SET: a KEY + * Block object and a VALUE Block object. For + * example, Name: Ana Silva Carolina contains a key and value. * Name: is the key. Ana Silva Carolina is the value. *

    *
  • *
  • *

    - * Table and table cell data. A TABLE Block object contains information - * about a detected table. A CELL Block object is returned for each cell in - * a table. + * Table and table cell data. A TABLE Block object contains + * information about a detected table. A CELL Block object is + * returned for each cell in a table. *

    *
  • *
  • *

    - * Selectable elements such as checkboxes and radio buttons. A - * SELECTION_ELEMENT Block object contains information about a selectable - * element. + * Lines and words of text. A LINE Block object contains one or + * more WORD Block objects. All lines and words that are + * detected in the document are returned (including text that doesn't have a + * relationship with the value of the StartDocumentAnalysis + * FeatureTypes input parameter). *

    *
  • - *
  • + *
*

- * Lines and words of text. A LINE Block object contains one or more WORD - * Block objects. + * Selection elements such as check boxes and option buttons (radio buttons) + * can be detected in form data and in tables. A SELECTION_ELEMENT + * Block object contains information about a selection element, + * including the selection status. *

- * - * *

* Use the MaxResults parameter to limit the number of blocks - * returned. If there are more results than specified in + * that are returned. If there are more results than specified in * MaxResults, the value of NextToken in the * operation response contains a pagination token for getting the next set * of results. To get the next page of results, call @@ -752,13 +757,13 @@ public GetDocumentTextDetectionResult getDocumentTextDetection( /** *

- * Starts asynchronous analysis of an input document for relationships - * between detected items such as key and value pairs, tables, and selection + * Starts the asynchronous analysis of an input document for relationships + * between detected items such as key-value pairs, tables, and selection * elements. *

*

* StartDocumentAnalysis can analyze text in documents that are - * in JPG, PNG, and PDF format. The documents are stored in an Amazon S3 + * in JPEG, PNG, and PDF format. The documents are stored in an Amazon S3 * bucket. Use DocumentLocation to specify the bucket name and file * name of the document. *

@@ -841,7 +846,7 @@ public StartDocumentAnalysisResult startDocumentAnalysis( *

*

* StartDocumentTextDetection can analyze text in documents - * that are in JPG, PNG, and PDF format. The documents are stored in an + * that are in JPEG, PNG, and PDF format. The documents are stored in an * Amazon S3 bucket. Use DocumentLocation to specify the bucket name * and file name of the document. *

diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/AnalyzeDocumentRequest.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/AnalyzeDocumentRequest.java index c492d88fb87..913f4e9b661 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/AnalyzeDocumentRequest.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/AnalyzeDocumentRequest.java @@ -29,38 +29,41 @@ *
    *
  • *

    - * Words and lines that are related to nearby lines and words. The related - * information is returned in two Block objects each of type - * KEY_VALUE_SET: a KEY Block object and a VALUE Block object. For - * example, Name: Ana Silva Carolina contains a key and value. - * Name: is the key. Ana Silva Carolina is the value. + * Form data (key-value pairs). The related information is returned in two + * Block objects, each of type KEY_VALUE_SET: a KEY + * Block object and a VALUE Block object. For example, + * Name: Ana Silva Carolina contains a key and value. Name: is the + * key. Ana Silva Carolina is the value. *

    *
  • *
  • *

    - * Table and table cell data. A TABLE Block object contains information about a - * detected table. A CELL Block object is returned for each cell in a table. + * Table and table cell data. A TABLE Block object contains + * information about a detected table. A CELL Block object is + * returned for each cell in a table. *

    *
  • *
  • *

    - * Selectable elements such as checkboxes and radio buttons. A SELECTION_ELEMENT - * Block object contains information about a selectable element. + * Lines and words of text. A LINE Block object contains one or + * more WORD Block objects. All lines and words that are detected + * in the document are returned (including text that doesn't have a relationship + * with the value of FeatureTypes). *

    *
  • - *
  • + *
*

- * Lines and words of text. A LINE Block object contains one or more WORD Block - * objects. + * Selection elements such as check boxes and option buttons (radio buttons) can + * be detected in form data and in tables. A SELECTION_ELEMENT + * Block object contains information about a selection element, + * including the selection status. *

- * - * *

* You can choose which type of analysis to perform by specifying the * FeatureTypes list. *

*

- * The output is returned in a list of BLOCK objects. + * The output is returned in a list of Block objects. *

*

* AnalyzeDocument is a synchronous operation. To analyze documents @@ -77,11 +80,12 @@ public class AnalyzeDocumentRequest extends AmazonWebServiceRequest implements S *

* 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. + * bytes. The document must be an image in JPEG 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'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. *

*/ private Document document; @@ -89,33 +93,45 @@ public class AnalyzeDocumentRequest extends AmazonWebServiceRequest implements S /** *

* 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. + * 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). *

*/ private java.util.List featureTypes; + /** + *

+ * Sets the configuration for the human in the loop workflow for analyzing + * documents. + *

+ */ + private HumanLoopConfig humanLoopConfig; + /** *

* 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. + * bytes. The document must be an image in JPEG 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'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. *

* * @return

* 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. + * image in JPEG 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 + * 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. *

*/ @@ -127,23 +143,24 @@ 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. + * bytes. The document must be an image in JPEG 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'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. *

* * @param 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. + * an image in JPEG 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'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 void setDocument(Document document) { @@ -154,11 +171,12 @@ 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 JPG or PNG format. + * bytes. The document must be an image in JPEG 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'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. *

*

* Returns a reference to this object so that method calls can be chained @@ -168,12 +186,12 @@ 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 JPG or PNG format. + * an image in JPEG 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'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. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -186,17 +204,22 @@ public AnalyzeDocumentRequest withDocument(Document document) { /** *

* 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. + * 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). *

* * @return

* 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. + * 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). *

*/ public java.util.List getFeatureTypes() { @@ -206,17 +229,22 @@ public java.util.List 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. + * 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). *

* * @param 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. + * 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). *

*/ public void setFeatureTypes(java.util.Collection featureTypes) { @@ -231,9 +259,12 @@ public void setFeatureTypes(java.util.Collection 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. + * 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). *

*

* Returns a reference to this object so that method calls can be chained @@ -241,10 +272,12 @@ public void setFeatureTypes(java.util.Collection featureTypes) { * * @param 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. + * 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). *

* @return A reference to this updated object so that method calls can be * chained together. @@ -262,9 +295,12 @@ 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 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. + * 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). *

*

* Returns a reference to this object so that method calls can be chained @@ -272,10 +308,12 @@ public AnalyzeDocumentRequest withFeatureTypes(String... featureTypes) { * * @param 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. + * 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). *

* @return A reference to this updated object so that method calls can be * chained together. @@ -285,6 +323,57 @@ public AnalyzeDocumentRequest withFeatureTypes(java.util.Collection feat return this; } + /** + *

+ * Sets the configuration for the human in the loop workflow for analyzing + * documents. + *

+ * + * @return

+ * Sets the configuration for the human in the loop workflow for + * analyzing documents. + *

+ */ + public HumanLoopConfig getHumanLoopConfig() { + return humanLoopConfig; + } + + /** + *

+ * Sets the configuration for the human in the loop workflow for analyzing + * documents. + *

+ * + * @param humanLoopConfig

+ * Sets the configuration for the human in the loop workflow for + * analyzing documents. + *

+ */ + public void setHumanLoopConfig(HumanLoopConfig humanLoopConfig) { + this.humanLoopConfig = humanLoopConfig; + } + + /** + *

+ * Sets the configuration for the human in the loop workflow for analyzing + * documents. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param humanLoopConfig

+ * Sets the configuration for the human in the loop workflow for + * analyzing documents. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AnalyzeDocumentRequest withHumanLoopConfig(HumanLoopConfig humanLoopConfig) { + this.humanLoopConfig = humanLoopConfig; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -299,7 +388,9 @@ public String toString() { if (getDocument() != null) sb.append("Document: " + getDocument() + ","); if (getFeatureTypes() != null) - sb.append("FeatureTypes: " + getFeatureTypes()); + sb.append("FeatureTypes: " + getFeatureTypes() + ","); + if (getHumanLoopConfig() != null) + sb.append("HumanLoopConfig: " + getHumanLoopConfig()); sb.append("}"); return sb.toString(); } @@ -312,6 +403,8 @@ public int hashCode() { hashCode = prime * hashCode + ((getDocument() == null) ? 0 : getDocument().hashCode()); hashCode = prime * hashCode + ((getFeatureTypes() == null) ? 0 : getFeatureTypes().hashCode()); + hashCode = prime * hashCode + + ((getHumanLoopConfig() == null) ? 0 : getHumanLoopConfig().hashCode()); return hashCode; } @@ -335,6 +428,11 @@ public boolean equals(Object obj) { if (other.getFeatureTypes() != null && other.getFeatureTypes().equals(this.getFeatureTypes()) == false) return false; + if (other.getHumanLoopConfig() == null ^ this.getHumanLoopConfig() == null) + return false; + if (other.getHumanLoopConfig() != null + && other.getHumanLoopConfig().equals(this.getHumanLoopConfig()) == false) + return false; return true; } } diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/AnalyzeDocumentResult.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/AnalyzeDocumentResult.java index af7a1cc8918..776a20160f0 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/AnalyzeDocumentResult.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/AnalyzeDocumentResult.java @@ -27,11 +27,25 @@ public class AnalyzeDocumentResult implements Serializable { /** *

- * The text that's detected and analyzed by AnalyzeDocument. + * The items that are detected and analyzed by AnalyzeDocument. *

*/ private java.util.List blocks; + /** + *

+ * Shows the results of the human in the loop evaluation. + *

+ */ + private HumanLoopActivationOutput humanLoopActivationOutput; + + /** + *

+ * The version of the model used to analyze the document. + *

+ */ + private String analyzeDocumentModelVersion; + /** *

* Metadata about the analyzed document. An example is the number of pages. @@ -82,11 +96,11 @@ public AnalyzeDocumentResult withDocumentMetadata(DocumentMetadata documentMetad /** *

- * The text that's detected and analyzed by AnalyzeDocument. + * The items that are detected and analyzed by AnalyzeDocument. *

* * @return

- * The text that's detected and analyzed by + * The items that are detected and analyzed by * AnalyzeDocument. *

*/ @@ -96,11 +110,11 @@ public java.util.List getBlocks() { /** *

- * The text that's detected and analyzed by AnalyzeDocument. + * The items that are detected and analyzed by AnalyzeDocument. *

* * @param blocks

- * The text that's detected and analyzed by + * The items that are detected and analyzed by * AnalyzeDocument. *

*/ @@ -115,14 +129,14 @@ public void setBlocks(java.util.Collection blocks) { /** *

- * The text that's detected and analyzed by AnalyzeDocument. + * The items that are detected and analyzed by AnalyzeDocument. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param blocks

- * The text that's detected and analyzed by + * The items that are detected and analyzed by * AnalyzeDocument. *

* @return A reference to this updated object so that method calls can be @@ -140,14 +154,14 @@ public AnalyzeDocumentResult withBlocks(Block... blocks) { /** *

- * The text that's detected and analyzed by AnalyzeDocument. + * The items that are detected and analyzed by AnalyzeDocument. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param blocks

- * The text that's detected and analyzed by + * The items that are detected and analyzed by * AnalyzeDocument. *

* @return A reference to this updated object so that method calls can be @@ -158,6 +172,97 @@ public AnalyzeDocumentResult withBlocks(java.util.Collection blocks) { return this; } + /** + *

+ * Shows the results of the human in the loop evaluation. + *

+ * + * @return

+ * Shows the results of the human in the loop evaluation. + *

+ */ + public HumanLoopActivationOutput getHumanLoopActivationOutput() { + return humanLoopActivationOutput; + } + + /** + *

+ * Shows the results of the human in the loop evaluation. + *

+ * + * @param humanLoopActivationOutput

+ * Shows the results of the human in the loop evaluation. + *

+ */ + public void setHumanLoopActivationOutput(HumanLoopActivationOutput humanLoopActivationOutput) { + this.humanLoopActivationOutput = humanLoopActivationOutput; + } + + /** + *

+ * Shows the results of the human in the loop evaluation. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param humanLoopActivationOutput

+ * Shows the results of the human in the loop evaluation. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AnalyzeDocumentResult withHumanLoopActivationOutput( + HumanLoopActivationOutput humanLoopActivationOutput) { + this.humanLoopActivationOutput = humanLoopActivationOutput; + return this; + } + + /** + *

+ * The version of the model used to analyze the document. + *

+ * + * @return

+ * The version of the model used to analyze the document. + *

+ */ + public String getAnalyzeDocumentModelVersion() { + return analyzeDocumentModelVersion; + } + + /** + *

+ * The version of the model used to analyze the document. + *

+ * + * @param analyzeDocumentModelVersion

+ * The version of the model used to analyze the document. + *

+ */ + public void setAnalyzeDocumentModelVersion(String analyzeDocumentModelVersion) { + this.analyzeDocumentModelVersion = analyzeDocumentModelVersion; + } + + /** + *

+ * The version of the model used to analyze the document. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param analyzeDocumentModelVersion

+ * The version of the model used to analyze the document. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AnalyzeDocumentResult withAnalyzeDocumentModelVersion(String analyzeDocumentModelVersion) { + this.analyzeDocumentModelVersion = analyzeDocumentModelVersion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -172,7 +277,11 @@ public String toString() { if (getDocumentMetadata() != null) sb.append("DocumentMetadata: " + getDocumentMetadata() + ","); if (getBlocks() != null) - sb.append("Blocks: " + getBlocks()); + sb.append("Blocks: " + getBlocks() + ","); + if (getHumanLoopActivationOutput() != null) + sb.append("HumanLoopActivationOutput: " + getHumanLoopActivationOutput() + ","); + if (getAnalyzeDocumentModelVersion() != null) + sb.append("AnalyzeDocumentModelVersion: " + getAnalyzeDocumentModelVersion()); sb.append("}"); return sb.toString(); } @@ -185,6 +294,14 @@ public int hashCode() { hashCode = prime * hashCode + ((getDocumentMetadata() == null) ? 0 : getDocumentMetadata().hashCode()); hashCode = prime * hashCode + ((getBlocks() == null) ? 0 : getBlocks().hashCode()); + hashCode = prime + * hashCode + + ((getHumanLoopActivationOutput() == null) ? 0 : getHumanLoopActivationOutput() + .hashCode()); + hashCode = prime + * hashCode + + ((getAnalyzeDocumentModelVersion() == null) ? 0 + : getAnalyzeDocumentModelVersion().hashCode()); return hashCode; } @@ -208,6 +325,19 @@ public boolean equals(Object obj) { return false; if (other.getBlocks() != null && other.getBlocks().equals(this.getBlocks()) == false) return false; + if (other.getHumanLoopActivationOutput() == null + ^ this.getHumanLoopActivationOutput() == null) + return false; + if (other.getHumanLoopActivationOutput() != null + && other.getHumanLoopActivationOutput().equals(this.getHumanLoopActivationOutput()) == false) + return false; + if (other.getAnalyzeDocumentModelVersion() == null + ^ this.getAnalyzeDocumentModelVersion() == null) + return false; + if (other.getAnalyzeDocumentModelVersion() != null + && other.getAnalyzeDocumentModelVersion().equals( + this.getAnalyzeDocumentModelVersion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Block.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Block.java index 9b817177184..6bdef6adf26 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Block.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Block.java @@ -21,11 +21,11 @@ *

* A Block represents items that are recognized in a document * within a group of pixels close to each other. The information returned in a - * Block depends on the type of operation. In document-text - * detection (for example DetectDocumentText), you get information about - * the detected words and lines of text. In text analysis (for example + * Block object depends on the type of operation. In text detection + * for documents (for example DetectDocumentText), you get information + * about the detected words and lines of text. In text analysis (for example * AnalyzeDocument), you can also get information about the fields, - * tables and selection elements that are detected in the document. + * tables, and selection elements that are detected in the document. *

*

* An array of Block objects is returned by both synchronous and @@ -43,14 +43,14 @@ public class Block implements Serializable { /** *

- * The type of text that's recognized in a block. In text-detection - * operations, the following types are returned: + * The type of text item that's recognized. In operations for text + * detection, the following types are returned: *

*
    *
  • *

    - * PAGE - Contains a list of the LINE Block objects that are detected - * on a document page. + * PAGE - Contains a list of the LINE Block objects that + * are detected on a document page. *

    *
  • *
  • @@ -61,8 +61,8 @@ public class Block implements Serializable { *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words that's detected - * on a document page. + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page. *

    *
  • *
@@ -72,36 +72,35 @@ public class Block implements Serializable { *
    *
  • *

    - * PAGE - Contains a list of child Block objects that are detected on - * a document page. + * PAGE - Contains a list of child Block objects that + * are detected on a document page. *

    *
  • *
  • *

    - * KEY_VALUE_SET - Stores the KEY and VALUE Block objects for a field - * that's detected on a document page. Use the EntityType field - * to determine if a KEY_VALUE_SET object is a KEY Block object or a VALUE - * Block object. + * KEY_VALUE_SET - Stores the KEY and VALUE Block + * objects for linked text that's detected on a document page. Use the + * EntityType field to determine if a KEY_VALUE_SET object is a + * KEY Block object or a VALUE Block object. *

    *
  • *
  • *

    - * WORD - A word detected on a document page. A word is one or more - * ISO basic Latin script characters that aren't separated by spaces that's - * detected on a document page. + * WORD - A word that's detected on a document page. A word is one or + * more ISO basic Latin script characters that aren't separated by spaces. *

    *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words that's detected - * on a document page. + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page. *

    *
  • *
  • *

    - * TABLE - A table that's detected on a document page. A table is any - * grid-based information with 2 or more rows or columns with a cell span of - * 1 row and 1 column each. + * TABLE - A table that's detected on a document page. A table is + * grid-based information with two or more rows or columns, with a cell span + * of one row and one column each. *

    *
  • *
  • @@ -112,10 +111,10 @@ public class Block implements Serializable { *
  • *
  • *

    - * SELECTION_ELEMENT - A selectable element such as a radio button or - * checkbox that's detected on a document page. Use the value of - * SelectionStatus to determine the status of the selection - * element. + * SELECTION_ELEMENT - A selection element such as an option button + * (radio button) or a check box that's detected on a document page. Use the + * value of SelectionStatus to determine the status of the + * selection element. *

    *
  • *
@@ -128,8 +127,9 @@ public class Block implements Serializable { /** *

- * The confidence that Amazon Textract has in the accuracy of the recognized - * text and the accuracy of the geometry points around the recognized text. + * The confidence score that Amazon Textract has in the accuracy of the + * recognized text and the accuracy of the geometry points around the + * recognized text. *

*

* Constraints:
@@ -171,9 +171,10 @@ public class Block implements Serializable { /** *

- * The number of rows that a table spans. RowSpan isn't - * returned by DetectDocumentText and - * GetDocumentTextDetection. + * The number of rows that a table cell spans. Currently this value is + * always 1, even if the number of rows spanned is greater than 1. + * RowSpan isn't returned by DetectDocumentText + * and GetDocumentTextDetection. *

*

* Constraints:
@@ -183,9 +184,10 @@ public class Block implements Serializable { /** *

- * The number of columns that a table cell spans. ColumnSpan - * isn't returned by DetectDocumentText and - * GetDocumentTextDetection. + * The number of columns that a table cell spans. Currently this value is + * always 1, even if the number of columns spanned is greater than 1. + * ColumnSpan isn't returned by DetectDocumentText + * and GetDocumentTextDetection. *

*

* Constraints:
@@ -215,7 +217,7 @@ public class Block implements Serializable { /** *

- * A list of child blocks of the current block. For example a LINE object + * A list of child blocks of the current block. For example, a LINE object * has child blocks for each WORD block that's part of the line of text. * There aren't Relationship objects in the list for relationships that * don't exist, such as when the current block has no child blocks. The list @@ -262,8 +264,8 @@ public class Block implements Serializable { /** *

- * The selection status of a selectable element such as a radio button or - * checkbox. + * The selection status of a selection element, such as an option button or + * check box. *

*

* Constraints:
@@ -273,12 +275,12 @@ public class Block implements Serializable { /** *

- * The page in which a block was detected. Page is returned by + * The page on which a block was detected. Page is returned by * asynchronous operations. Page values greater than 1 are only returned for - * multi-page documents that are in PDF format. A scanned image (JPG/PNG), - * even if it contains multiple document pages, is always considered to be a - * single-page document and the value of Page is always 1. - * Synchronous operations don't return Page as every input + * multipage documents that are in PDF format. A scanned image (JPEG/PNG), + * even if it contains multiple document pages, is considered to be a + * single-page document. The value of Page is always 1. + * Synchronous operations don't return Page because every input * document is considered to be a single-page document. *

*

@@ -289,14 +291,14 @@ public class Block implements Serializable { /** *

- * The type of text that's recognized in a block. In text-detection - * operations, the following types are returned: + * The type of text item that's recognized. In operations for text + * detection, the following types are returned: *

*
    *
  • *

    - * PAGE - Contains a list of the LINE Block objects that are detected - * on a document page. + * PAGE - Contains a list of the LINE Block objects that + * are detected on a document page. *

    *
  • *
  • @@ -307,8 +309,8 @@ public class Block implements Serializable { *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words that's detected - * on a document page. + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page. *

    *
  • *
@@ -318,36 +320,35 @@ public class Block implements Serializable { *
    *
  • *

    - * PAGE - Contains a list of child Block objects that are detected on - * a document page. + * PAGE - Contains a list of child Block objects that + * are detected on a document page. *

    *
  • *
  • *

    - * KEY_VALUE_SET - Stores the KEY and VALUE Block objects for a field - * that's detected on a document page. Use the EntityType field - * to determine if a KEY_VALUE_SET object is a KEY Block object or a VALUE - * Block object. + * KEY_VALUE_SET - Stores the KEY and VALUE Block + * objects for linked text that's detected on a document page. Use the + * EntityType field to determine if a KEY_VALUE_SET object is a + * KEY Block object or a VALUE Block object. *

    *
  • *
  • *

    - * WORD - A word detected on a document page. A word is one or more - * ISO basic Latin script characters that aren't separated by spaces that's - * detected on a document page. + * WORD - A word that's detected on a document page. A word is one or + * more ISO basic Latin script characters that aren't separated by spaces. *

    *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words that's detected - * on a document page. + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page. *

    *
  • *
  • *

    - * TABLE - A table that's detected on a document page. A table is any - * grid-based information with 2 or more rows or columns with a cell span of - * 1 row and 1 column each. + * TABLE - A table that's detected on a document page. A table is + * grid-based information with two or more rows or columns, with a cell span + * of one row and one column each. *

    *
  • *
  • @@ -358,10 +359,10 @@ public class Block implements Serializable { *
  • *
  • *

    - * SELECTION_ELEMENT - A selectable element such as a radio button or - * checkbox that's detected on a document page. Use the value of - * SelectionStatus to determine the status of the selection - * element. + * SELECTION_ELEMENT - A selection element such as an option button + * (radio button) or a check box that's detected on a document page. Use the + * value of SelectionStatus to determine the status of the + * selection element. *

    *
  • *
@@ -371,14 +372,14 @@ public class Block implements Serializable { * SELECTION_ELEMENT * * @return

- * The type of text that's recognized in a block. In text-detection - * operations, the following types are returned: + * The type of text item that's recognized. In operations for text + * detection, the following types are returned: *

*
    *
  • *

    - * PAGE - Contains a list of the LINE Block objects that are - * detected on a document page. + * PAGE - Contains a list of the LINE Block + * objects that are detected on a document page. *

    *
  • *
  • @@ -390,8 +391,8 @@ public class Block implements Serializable { *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words that's - * detected on a document page. + * LINE - A string of tab-delimited, contiguous words that + * are detected on a document page. *

    *
  • *
@@ -401,36 +402,37 @@ public class Block implements Serializable { *
    *
  • *

    - * PAGE - Contains a list of child Block objects that are - * detected on a document page. + * PAGE - Contains a list of child Block objects + * that are detected on a document page. *

    *
  • *
  • *

    - * KEY_VALUE_SET - Stores the KEY and VALUE Block objects for - * a field that's detected on a document page. Use the - * EntityType field to determine if a KEY_VALUE_SET - * object is a KEY Block object or a VALUE Block object. + * KEY_VALUE_SET - Stores the KEY and VALUE + * Block objects for linked text that's detected on a + * document page. Use the EntityType field to determine + * if a KEY_VALUE_SET object is a KEY Block object or a + * VALUE Block object. *

    *
  • *
  • *

    - * WORD - A word detected on a document page. A word is one - * or more ISO basic Latin script characters that aren't separated - * by spaces that's detected on a document page. + * WORD - A word that's detected on a document page. A word + * is one or more ISO basic Latin script characters that aren't + * separated by spaces. *

    *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words that's - * detected on a document page. + * LINE - A string of tab-delimited, contiguous words that + * are detected on a document page. *

    *
  • *
  • *

    * TABLE - A table that's detected on a document page. A - * table is any grid-based information with 2 or more rows or - * columns with a cell span of 1 row and 1 column each. + * table is grid-based information with two or more rows or columns, + * with a cell span of one row and one column each. *

    *
  • *
  • @@ -441,10 +443,10 @@ public class Block implements Serializable { *
  • *
  • *

    - * SELECTION_ELEMENT - A selectable element such as a radio - * button or checkbox that's detected on a document page. Use the - * value of SelectionStatus to determine the status of - * the selection element. + * SELECTION_ELEMENT - A selection element such as an option + * button (radio button) or a check box that's detected on a + * document page. Use the value of SelectionStatus to + * determine the status of the selection element. *

    *
  • *
@@ -456,14 +458,14 @@ public String getBlockType() { /** *

- * The type of text that's recognized in a block. In text-detection - * operations, the following types are returned: + * The type of text item that's recognized. In operations for text + * detection, the following types are returned: *

*
    *
  • *

    - * PAGE - Contains a list of the LINE Block objects that are detected - * on a document page. + * PAGE - Contains a list of the LINE Block objects that + * are detected on a document page. *

    *
  • *
  • @@ -474,8 +476,8 @@ public String getBlockType() { *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words that's detected - * on a document page. + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page. *

    *
  • *
@@ -485,36 +487,35 @@ public String getBlockType() { *
    *
  • *

    - * PAGE - Contains a list of child Block objects that are detected on - * a document page. + * PAGE - Contains a list of child Block objects that + * are detected on a document page. *

    *
  • *
  • *

    - * KEY_VALUE_SET - Stores the KEY and VALUE Block objects for a field - * that's detected on a document page. Use the EntityType field - * to determine if a KEY_VALUE_SET object is a KEY Block object or a VALUE - * Block object. + * KEY_VALUE_SET - Stores the KEY and VALUE Block + * objects for linked text that's detected on a document page. Use the + * EntityType field to determine if a KEY_VALUE_SET object is a + * KEY Block object or a VALUE Block object. *

    *
  • *
  • *

    - * WORD - A word detected on a document page. A word is one or more - * ISO basic Latin script characters that aren't separated by spaces that's - * detected on a document page. + * WORD - A word that's detected on a document page. A word is one or + * more ISO basic Latin script characters that aren't separated by spaces. *

    *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words that's detected - * on a document page. + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page. *

    *
  • *
  • *

    - * TABLE - A table that's detected on a document page. A table is any - * grid-based information with 2 or more rows or columns with a cell span of - * 1 row and 1 column each. + * TABLE - A table that's detected on a document page. A table is + * grid-based information with two or more rows or columns, with a cell span + * of one row and one column each. *

    *
  • *
  • @@ -525,10 +526,10 @@ public String getBlockType() { *
  • *
  • *

    - * SELECTION_ELEMENT - A selectable element such as a radio button or - * checkbox that's detected on a document page. Use the value of - * SelectionStatus to determine the status of the selection - * element. + * SELECTION_ELEMENT - A selection element such as an option button + * (radio button) or a check box that's detected on a document page. Use the + * value of SelectionStatus to determine the status of the + * selection element. *

    *
  • *
@@ -538,14 +539,14 @@ public String getBlockType() { * SELECTION_ELEMENT * * @param blockType

- * The type of text that's recognized in a block. In - * text-detection operations, the following types are returned: + * The type of text item that's recognized. In operations for + * text detection, the following types are returned: *

*
    *
  • *

    - * PAGE - Contains a list of the LINE Block objects that - * are detected on a document page. + * PAGE - Contains a list of the LINE Block + * objects that are detected on a document page. *

    *
  • *
  • @@ -557,8 +558,8 @@ public String getBlockType() { *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words - * that's detected on a document page. + * LINE - A string of tab-delimited, contiguous words that + * are detected on a document page. *

    *
  • *
@@ -568,36 +569,38 @@ public String getBlockType() { *
    *
  • *

    - * PAGE - Contains a list of child Block objects that are - * detected on a document page. + * PAGE - Contains a list of child Block + * objects that are detected on a document page. *

    *
  • *
  • *

    - * KEY_VALUE_SET - Stores the KEY and VALUE Block objects - * for a field that's detected on a document page. Use the - * EntityType field to determine if a KEY_VALUE_SET - * object is a KEY Block object or a VALUE Block object. + * KEY_VALUE_SET - Stores the KEY and VALUE + * Block objects for linked text that's detected on + * a document page. Use the EntityType field to + * determine if a KEY_VALUE_SET object is a KEY + * Block object or a VALUE Block + * object. *

    *
  • *
  • *

    - * WORD - A word detected on a document page. A word is - * one or more ISO basic Latin script characters that aren't - * separated by spaces that's detected on a document page. + * WORD - A word that's detected on a document page. A + * word is one or more ISO basic Latin script characters that + * aren't separated by spaces. *

    *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words - * that's detected on a document page. + * LINE - A string of tab-delimited, contiguous words that + * are detected on a document page. *

    *
  • *
  • *

    * TABLE - A table that's detected on a document page. A - * table is any grid-based information with 2 or more rows or - * columns with a cell span of 1 row and 1 column each. + * table is grid-based information with two or more rows or + * columns, with a cell span of one row and one column each. *

    *
  • *
  • @@ -608,10 +611,10 @@ public String getBlockType() { *
  • *
  • *

    - * SELECTION_ELEMENT - A selectable element such as a - * radio button or checkbox that's detected on a document page. - * Use the value of SelectionStatus to determine the - * status of the selection element. + * SELECTION_ELEMENT - A selection element such as an + * option button (radio button) or a check box that's detected on + * a document page. Use the value of SelectionStatus + * to determine the status of the selection element. *

    *
  • *
@@ -623,14 +626,14 @@ public void setBlockType(String blockType) { /** *

- * The type of text that's recognized in a block. In text-detection - * operations, the following types are returned: + * The type of text item that's recognized. In operations for text + * detection, the following types are returned: *

*
    *
  • *

    - * PAGE - Contains a list of the LINE Block objects that are detected - * on a document page. + * PAGE - Contains a list of the LINE Block objects that + * are detected on a document page. *

    *
  • *
  • @@ -641,8 +644,8 @@ public void setBlockType(String blockType) { *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words that's detected - * on a document page. + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page. *

    *
  • *
@@ -652,36 +655,35 @@ public void setBlockType(String blockType) { *
    *
  • *

    - * PAGE - Contains a list of child Block objects that are detected on - * a document page. + * PAGE - Contains a list of child Block objects that + * are detected on a document page. *

    *
  • *
  • *

    - * KEY_VALUE_SET - Stores the KEY and VALUE Block objects for a field - * that's detected on a document page. Use the EntityType field - * to determine if a KEY_VALUE_SET object is a KEY Block object or a VALUE - * Block object. + * KEY_VALUE_SET - Stores the KEY and VALUE Block + * objects for linked text that's detected on a document page. Use the + * EntityType field to determine if a KEY_VALUE_SET object is a + * KEY Block object or a VALUE Block object. *

    *
  • *
  • *

    - * WORD - A word detected on a document page. A word is one or more - * ISO basic Latin script characters that aren't separated by spaces that's - * detected on a document page. + * WORD - A word that's detected on a document page. A word is one or + * more ISO basic Latin script characters that aren't separated by spaces. *

    *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words that's detected - * on a document page. + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page. *

    *
  • *
  • *

    - * TABLE - A table that's detected on a document page. A table is any - * grid-based information with 2 or more rows or columns with a cell span of - * 1 row and 1 column each. + * TABLE - A table that's detected on a document page. A table is + * grid-based information with two or more rows or columns, with a cell span + * of one row and one column each. *

    *
  • *
  • @@ -692,10 +694,10 @@ public void setBlockType(String blockType) { *
  • *
  • *

    - * SELECTION_ELEMENT - A selectable element such as a radio button or - * checkbox that's detected on a document page. Use the value of - * SelectionStatus to determine the status of the selection - * element. + * SELECTION_ELEMENT - A selection element such as an option button + * (radio button) or a check box that's detected on a document page. Use the + * value of SelectionStatus to determine the status of the + * selection element. *

    *
  • *
@@ -708,14 +710,14 @@ public void setBlockType(String blockType) { * SELECTION_ELEMENT * * @param blockType

- * The type of text that's recognized in a block. In - * text-detection operations, the following types are returned: + * The type of text item that's recognized. In operations for + * text detection, the following types are returned: *

*
    *
  • *

    - * PAGE - Contains a list of the LINE Block objects that - * are detected on a document page. + * PAGE - Contains a list of the LINE Block + * objects that are detected on a document page. *

    *
  • *
  • @@ -727,8 +729,8 @@ public void setBlockType(String blockType) { *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words - * that's detected on a document page. + * LINE - A string of tab-delimited, contiguous words that + * are detected on a document page. *

    *
  • *
@@ -738,36 +740,38 @@ public void setBlockType(String blockType) { *
    *
  • *

    - * PAGE - Contains a list of child Block objects that are - * detected on a document page. + * PAGE - Contains a list of child Block + * objects that are detected on a document page. *

    *
  • *
  • *

    - * KEY_VALUE_SET - Stores the KEY and VALUE Block objects - * for a field that's detected on a document page. Use the - * EntityType field to determine if a KEY_VALUE_SET - * object is a KEY Block object or a VALUE Block object. + * KEY_VALUE_SET - Stores the KEY and VALUE + * Block objects for linked text that's detected on + * a document page. Use the EntityType field to + * determine if a KEY_VALUE_SET object is a KEY + * Block object or a VALUE Block + * object. *

    *
  • *
  • *

    - * WORD - A word detected on a document page. A word is - * one or more ISO basic Latin script characters that aren't - * separated by spaces that's detected on a document page. + * WORD - A word that's detected on a document page. A + * word is one or more ISO basic Latin script characters that + * aren't separated by spaces. *

    *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words - * that's detected on a document page. + * LINE - A string of tab-delimited, contiguous words that + * are detected on a document page. *

    *
  • *
  • *

    * TABLE - A table that's detected on a document page. A - * table is any grid-based information with 2 or more rows or - * columns with a cell span of 1 row and 1 column each. + * table is grid-based information with two or more rows or + * columns, with a cell span of one row and one column each. *

    *
  • *
  • @@ -778,10 +782,10 @@ public void setBlockType(String blockType) { *
  • *
  • *

    - * SELECTION_ELEMENT - A selectable element such as a - * radio button or checkbox that's detected on a document page. - * Use the value of SelectionStatus to determine the - * status of the selection element. + * SELECTION_ELEMENT - A selection element such as an + * option button (radio button) or a check box that's detected on + * a document page. Use the value of SelectionStatus + * to determine the status of the selection element. *

    *
  • *
@@ -796,14 +800,14 @@ public Block withBlockType(String blockType) { /** *

- * The type of text that's recognized in a block. In text-detection - * operations, the following types are returned: + * The type of text item that's recognized. In operations for text + * detection, the following types are returned: *

*
    *
  • *

    - * PAGE - Contains a list of the LINE Block objects that are detected - * on a document page. + * PAGE - Contains a list of the LINE Block objects that + * are detected on a document page. *

    *
  • *
  • @@ -814,8 +818,8 @@ public Block withBlockType(String blockType) { *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words that's detected - * on a document page. + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page. *

    *
  • *
@@ -825,36 +829,35 @@ public Block withBlockType(String blockType) { *
    *
  • *

    - * PAGE - Contains a list of child Block objects that are detected on - * a document page. + * PAGE - Contains a list of child Block objects that + * are detected on a document page. *

    *
  • *
  • *

    - * KEY_VALUE_SET - Stores the KEY and VALUE Block objects for a field - * that's detected on a document page. Use the EntityType field - * to determine if a KEY_VALUE_SET object is a KEY Block object or a VALUE - * Block object. + * KEY_VALUE_SET - Stores the KEY and VALUE Block + * objects for linked text that's detected on a document page. Use the + * EntityType field to determine if a KEY_VALUE_SET object is a + * KEY Block object or a VALUE Block object. *

    *
  • *
  • *

    - * WORD - A word detected on a document page. A word is one or more - * ISO basic Latin script characters that aren't separated by spaces that's - * detected on a document page. + * WORD - A word that's detected on a document page. A word is one or + * more ISO basic Latin script characters that aren't separated by spaces. *

    *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words that's detected - * on a document page. + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page. *

    *
  • *
  • *

    - * TABLE - A table that's detected on a document page. A table is any - * grid-based information with 2 or more rows or columns with a cell span of - * 1 row and 1 column each. + * TABLE - A table that's detected on a document page. A table is + * grid-based information with two or more rows or columns, with a cell span + * of one row and one column each. *

    *
  • *
  • @@ -865,10 +868,10 @@ public Block withBlockType(String blockType) { *
  • *
  • *

    - * SELECTION_ELEMENT - A selectable element such as a radio button or - * checkbox that's detected on a document page. Use the value of - * SelectionStatus to determine the status of the selection - * element. + * SELECTION_ELEMENT - A selection element such as an option button + * (radio button) or a check box that's detected on a document page. Use the + * value of SelectionStatus to determine the status of the + * selection element. *

    *
  • *
@@ -878,14 +881,14 @@ public Block withBlockType(String blockType) { * SELECTION_ELEMENT * * @param blockType

- * The type of text that's recognized in a block. In - * text-detection operations, the following types are returned: + * The type of text item that's recognized. In operations for + * text detection, the following types are returned: *

*
    *
  • *

    - * PAGE - Contains a list of the LINE Block objects that - * are detected on a document page. + * PAGE - Contains a list of the LINE Block + * objects that are detected on a document page. *

    *
  • *
  • @@ -897,8 +900,8 @@ public Block withBlockType(String blockType) { *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words - * that's detected on a document page. + * LINE - A string of tab-delimited, contiguous words that + * are detected on a document page. *

    *
  • *
@@ -908,36 +911,38 @@ public Block withBlockType(String blockType) { *
    *
  • *

    - * PAGE - Contains a list of child Block objects that are - * detected on a document page. + * PAGE - Contains a list of child Block + * objects that are detected on a document page. *

    *
  • *
  • *

    - * KEY_VALUE_SET - Stores the KEY and VALUE Block objects - * for a field that's detected on a document page. Use the - * EntityType field to determine if a KEY_VALUE_SET - * object is a KEY Block object or a VALUE Block object. + * KEY_VALUE_SET - Stores the KEY and VALUE + * Block objects for linked text that's detected on + * a document page. Use the EntityType field to + * determine if a KEY_VALUE_SET object is a KEY + * Block object or a VALUE Block + * object. *

    *
  • *
  • *

    - * WORD - A word detected on a document page. A word is - * one or more ISO basic Latin script characters that aren't - * separated by spaces that's detected on a document page. + * WORD - A word that's detected on a document page. A + * word is one or more ISO basic Latin script characters that + * aren't separated by spaces. *

    *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words - * that's detected on a document page. + * LINE - A string of tab-delimited, contiguous words that + * are detected on a document page. *

    *
  • *
  • *

    * TABLE - A table that's detected on a document page. A - * table is any grid-based information with 2 or more rows or - * columns with a cell span of 1 row and 1 column each. + * table is grid-based information with two or more rows or + * columns, with a cell span of one row and one column each. *

    *
  • *
  • @@ -948,10 +953,10 @@ public Block withBlockType(String blockType) { *
  • *
  • *

    - * SELECTION_ELEMENT - A selectable element such as a - * radio button or checkbox that's detected on a document page. - * Use the value of SelectionStatus to determine the - * status of the selection element. + * SELECTION_ELEMENT - A selection element such as an + * option button (radio button) or a check box that's detected on + * a document page. Use the value of SelectionStatus + * to determine the status of the selection element. *

    *
  • *
@@ -963,14 +968,14 @@ public void setBlockType(BlockType blockType) { /** *

- * The type of text that's recognized in a block. In text-detection - * operations, the following types are returned: + * The type of text item that's recognized. In operations for text + * detection, the following types are returned: *

*
    *
  • *

    - * PAGE - Contains a list of the LINE Block objects that are detected - * on a document page. + * PAGE - Contains a list of the LINE Block objects that + * are detected on a document page. *

    *
  • *
  • @@ -981,8 +986,8 @@ public void setBlockType(BlockType blockType) { *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words that's detected - * on a document page. + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page. *

    *
  • *
@@ -992,36 +997,35 @@ public void setBlockType(BlockType blockType) { *
    *
  • *

    - * PAGE - Contains a list of child Block objects that are detected on - * a document page. + * PAGE - Contains a list of child Block objects that + * are detected on a document page. *

    *
  • *
  • *

    - * KEY_VALUE_SET - Stores the KEY and VALUE Block objects for a field - * that's detected on a document page. Use the EntityType field - * to determine if a KEY_VALUE_SET object is a KEY Block object or a VALUE - * Block object. + * KEY_VALUE_SET - Stores the KEY and VALUE Block + * objects for linked text that's detected on a document page. Use the + * EntityType field to determine if a KEY_VALUE_SET object is a + * KEY Block object or a VALUE Block object. *

    *
  • *
  • *

    - * WORD - A word detected on a document page. A word is one or more - * ISO basic Latin script characters that aren't separated by spaces that's - * detected on a document page. + * WORD - A word that's detected on a document page. A word is one or + * more ISO basic Latin script characters that aren't separated by spaces. *

    *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words that's detected - * on a document page. + * LINE - A string of tab-delimited, contiguous words that are + * detected on a document page. *

    *
  • *
  • *

    - * TABLE - A table that's detected on a document page. A table is any - * grid-based information with 2 or more rows or columns with a cell span of - * 1 row and 1 column each. + * TABLE - A table that's detected on a document page. A table is + * grid-based information with two or more rows or columns, with a cell span + * of one row and one column each. *

    *
  • *
  • @@ -1032,10 +1036,10 @@ public void setBlockType(BlockType blockType) { *
  • *
  • *

    - * SELECTION_ELEMENT - A selectable element such as a radio button or - * checkbox that's detected on a document page. Use the value of - * SelectionStatus to determine the status of the selection - * element. + * SELECTION_ELEMENT - A selection element such as an option button + * (radio button) or a check box that's detected on a document page. Use the + * value of SelectionStatus to determine the status of the + * selection element. *

    *
  • *
@@ -1048,14 +1052,14 @@ public void setBlockType(BlockType blockType) { * SELECTION_ELEMENT * * @param blockType

- * The type of text that's recognized in a block. In - * text-detection operations, the following types are returned: + * The type of text item that's recognized. In operations for + * text detection, the following types are returned: *

*
    *
  • *

    - * PAGE - Contains a list of the LINE Block objects that - * are detected on a document page. + * PAGE - Contains a list of the LINE Block + * objects that are detected on a document page. *

    *
  • *
  • @@ -1067,8 +1071,8 @@ public void setBlockType(BlockType blockType) { *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words - * that's detected on a document page. + * LINE - A string of tab-delimited, contiguous words that + * are detected on a document page. *

    *
  • *
@@ -1078,36 +1082,38 @@ public void setBlockType(BlockType blockType) { *
    *
  • *

    - * PAGE - Contains a list of child Block objects that are - * detected on a document page. + * PAGE - Contains a list of child Block + * objects that are detected on a document page. *

    *
  • *
  • *

    - * KEY_VALUE_SET - Stores the KEY and VALUE Block objects - * for a field that's detected on a document page. Use the - * EntityType field to determine if a KEY_VALUE_SET - * object is a KEY Block object or a VALUE Block object. + * KEY_VALUE_SET - Stores the KEY and VALUE + * Block objects for linked text that's detected on + * a document page. Use the EntityType field to + * determine if a KEY_VALUE_SET object is a KEY + * Block object or a VALUE Block + * object. *

    *
  • *
  • *

    - * WORD - A word detected on a document page. A word is - * one or more ISO basic Latin script characters that aren't - * separated by spaces that's detected on a document page. + * WORD - A word that's detected on a document page. A + * word is one or more ISO basic Latin script characters that + * aren't separated by spaces. *

    *
  • *
  • *

    - * LINE - A string of tab-delimited, contiguous words - * that's detected on a document page. + * LINE - A string of tab-delimited, contiguous words that + * are detected on a document page. *

    *
  • *
  • *

    * TABLE - A table that's detected on a document page. A - * table is any grid-based information with 2 or more rows or - * columns with a cell span of 1 row and 1 column each. + * table is grid-based information with two or more rows or + * columns, with a cell span of one row and one column each. *

    *
  • *
  • @@ -1118,10 +1124,10 @@ public void setBlockType(BlockType blockType) { *
  • *
  • *

    - * SELECTION_ELEMENT - A selectable element such as a - * radio button or checkbox that's detected on a document page. - * Use the value of SelectionStatus to determine the - * status of the selection element. + * SELECTION_ELEMENT - A selection element such as an + * option button (radio button) or a check box that's detected on + * a document page. Use the value of SelectionStatus + * to determine the status of the selection element. *

    *
  • *
@@ -1136,17 +1142,18 @@ public Block withBlockType(BlockType blockType) { /** *

- * The confidence that Amazon Textract has in the accuracy of the recognized - * text and the accuracy of the geometry points around the recognized text. + * The confidence score that Amazon Textract has in the accuracy of the + * recognized text and the accuracy of the geometry points around the + * recognized text. *

*

* Constraints:
* Length: 0 - 100
* * @return

- * The confidence that Amazon Textract has in the accuracy of the - * recognized text and the accuracy of the geometry points around - * the recognized text. + * The confidence score that Amazon Textract has in the accuracy of + * the recognized text and the accuracy of the geometry points + * around the recognized text. *

*/ public Float getConfidence() { @@ -1155,17 +1162,18 @@ public Float getConfidence() { /** *

- * The confidence that Amazon Textract has in the accuracy of the recognized - * text and the accuracy of the geometry points around the recognized text. + * The confidence score that Amazon Textract has in the accuracy of the + * recognized text and the accuracy of the geometry points around the + * recognized text. *

*

* Constraints:
* Length: 0 - 100
* * @param confidence

- * The confidence that Amazon Textract has in the accuracy of the - * recognized text and the accuracy of the geometry points around - * the recognized text. + * The confidence score that Amazon Textract has in the accuracy + * of the recognized text and the accuracy of the geometry points + * around the recognized text. *

*/ public void setConfidence(Float confidence) { @@ -1174,8 +1182,9 @@ public void setConfidence(Float confidence) { /** *

- * The confidence that Amazon Textract has in the accuracy of the recognized - * text and the accuracy of the geometry points around the recognized text. + * The confidence score that Amazon Textract has in the accuracy of the + * recognized text and the accuracy of the geometry points around the + * recognized text. *

*

* Returns a reference to this object so that method calls can be chained @@ -1185,9 +1194,9 @@ public void setConfidence(Float confidence) { * Length: 0 - 100
* * @param confidence

- * The confidence that Amazon Textract has in the accuracy of the - * recognized text and the accuracy of the geometry points around - * the recognized text. + * The confidence score that Amazon Textract has in the accuracy + * of the recognized text and the accuracy of the geometry points + * around the recognized text. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -1385,17 +1394,20 @@ public Block withColumnIndex(Integer columnIndex) { /** *

- * The number of rows that a table spans. RowSpan isn't - * returned by DetectDocumentText and - * GetDocumentTextDetection. + * The number of rows that a table cell spans. Currently this value is + * always 1, even if the number of rows spanned is greater than 1. + * RowSpan isn't returned by DetectDocumentText + * and GetDocumentTextDetection. *

*

* Constraints:
* Range: 0 -
* * @return

- * The number of rows that a table spans. RowSpan isn't - * returned by DetectDocumentText and + * The number of rows that a table cell spans. Currently this value + * is always 1, even if the number of rows spanned is greater than + * 1. RowSpan isn't returned by + * DetectDocumentText and * GetDocumentTextDetection. *

*/ @@ -1405,17 +1417,20 @@ public Integer getRowSpan() { /** *

- * The number of rows that a table spans. RowSpan isn't - * returned by DetectDocumentText and - * GetDocumentTextDetection. + * The number of rows that a table cell spans. Currently this value is + * always 1, even if the number of rows spanned is greater than 1. + * RowSpan isn't returned by DetectDocumentText + * and GetDocumentTextDetection. *

*

* Constraints:
* Range: 0 -
* * @param rowSpan

- * The number of rows that a table spans. RowSpan - * isn't returned by DetectDocumentText and + * The number of rows that a table cell spans. Currently this + * value is always 1, even if the number of rows spanned is + * greater than 1. RowSpan isn't returned by + * DetectDocumentText and * GetDocumentTextDetection. *

*/ @@ -1425,9 +1440,10 @@ public void setRowSpan(Integer rowSpan) { /** *

- * The number of rows that a table spans. RowSpan isn't - * returned by DetectDocumentText and - * GetDocumentTextDetection. + * The number of rows that a table cell spans. Currently this value is + * always 1, even if the number of rows spanned is greater than 1. + * RowSpan isn't returned by DetectDocumentText + * and GetDocumentTextDetection. *

*

* Returns a reference to this object so that method calls can be chained @@ -1437,8 +1453,10 @@ public void setRowSpan(Integer rowSpan) { * Range: 0 -
* * @param rowSpan

- * The number of rows that a table spans. RowSpan - * isn't returned by DetectDocumentText and + * The number of rows that a table cell spans. Currently this + * value is always 1, even if the number of rows spanned is + * greater than 1. RowSpan isn't returned by + * DetectDocumentText and * GetDocumentTextDetection. *

* @return A reference to this updated object so that method calls can be @@ -1451,17 +1469,19 @@ public Block withRowSpan(Integer rowSpan) { /** *

- * The number of columns that a table cell spans. ColumnSpan - * isn't returned by DetectDocumentText and - * GetDocumentTextDetection. + * The number of columns that a table cell spans. Currently this value is + * always 1, even if the number of columns spanned is greater than 1. + * ColumnSpan isn't returned by DetectDocumentText + * and GetDocumentTextDetection. *

*

* Constraints:
* Range: 0 -
* * @return

- * The number of columns that a table cell spans. - * ColumnSpan isn't returned by + * The number of columns that a table cell spans. Currently this + * value is always 1, even if the number of columns spanned is + * greater than 1. ColumnSpan isn't returned by * DetectDocumentText and * GetDocumentTextDetection. *

@@ -1472,17 +1492,19 @@ public Integer getColumnSpan() { /** *

- * The number of columns that a table cell spans. ColumnSpan - * isn't returned by DetectDocumentText and - * GetDocumentTextDetection. + * The number of columns that a table cell spans. Currently this value is + * always 1, even if the number of columns spanned is greater than 1. + * ColumnSpan isn't returned by DetectDocumentText + * and GetDocumentTextDetection. *

*

* Constraints:
* Range: 0 -
* * @param columnSpan

- * The number of columns that a table cell spans. - * ColumnSpan isn't returned by + * The number of columns that a table cell spans. Currently this + * value is always 1, even if the number of columns spanned is + * greater than 1. ColumnSpan isn't returned by * DetectDocumentText and * GetDocumentTextDetection. *

@@ -1493,9 +1515,10 @@ public void setColumnSpan(Integer columnSpan) { /** *

- * The number of columns that a table cell spans. ColumnSpan - * isn't returned by DetectDocumentText and - * GetDocumentTextDetection. + * The number of columns that a table cell spans. Currently this value is + * always 1, even if the number of columns spanned is greater than 1. + * ColumnSpan isn't returned by DetectDocumentText + * and GetDocumentTextDetection. *

*

* Returns a reference to this object so that method calls can be chained @@ -1505,8 +1528,9 @@ public void setColumnSpan(Integer columnSpan) { * Range: 0 -
* * @param columnSpan

- * The number of columns that a table cell spans. - * ColumnSpan isn't returned by + * The number of columns that a table cell spans. Currently this + * value is always 1, even if the number of columns spanned is + * greater than 1. ColumnSpan isn't returned by * DetectDocumentText and * GetDocumentTextDetection. *

@@ -1639,7 +1663,7 @@ public Block withId(String id) { /** *

- * A list of child blocks of the current block. For example a LINE object + * A list of child blocks of the current block. For example, a LINE object * has child blocks for each WORD block that's part of the line of text. * There aren't Relationship objects in the list for relationships that * don't exist, such as when the current block has no child blocks. The list @@ -1659,7 +1683,7 @@ public Block withId(String id) { * * * @return

- * A list of child blocks of the current block. For example a LINE + * A list of child blocks of the current block. For example, a LINE * object has child blocks for each WORD block that's part of the * line of text. There aren't Relationship objects in the list for * relationships that don't exist, such as when the current block @@ -1684,7 +1708,7 @@ public java.util.List getRelationships() { /** *

- * A list of child blocks of the current block. For example a LINE object + * A list of child blocks of the current block. For example, a LINE object * has child blocks for each WORD block that's part of the line of text. * There aren't Relationship objects in the list for relationships that * don't exist, such as when the current block has no child blocks. The list @@ -1704,7 +1728,7 @@ public java.util.List getRelationships() { * * * @param relationships

- * A list of child blocks of the current block. For example a + * A list of child blocks of the current block. For example, a * LINE object has child blocks for each WORD block that's part * of the line of text. There aren't Relationship objects in the * list for relationships that don't exist, such as when the @@ -1735,7 +1759,7 @@ public void setRelationships(java.util.Collection relationships) { /** *

- * A list of child blocks of the current block. For example a LINE object + * A list of child blocks of the current block. For example, a LINE object * has child blocks for each WORD block that's part of the line of text. * There aren't Relationship objects in the list for relationships that * don't exist, such as when the current block has no child blocks. The list @@ -1758,7 +1782,7 @@ public void setRelationships(java.util.Collection relationships) { * together. * * @param relationships

- * A list of child blocks of the current block. For example a + * A list of child blocks of the current block. For example, a * LINE object has child blocks for each WORD block that's part * of the line of text. There aren't Relationship objects in the * list for relationships that don't exist, such as when the @@ -1792,7 +1816,7 @@ public Block withRelationships(Relationship... relationships) { /** *

- * A list of child blocks of the current block. For example a LINE object + * A list of child blocks of the current block. For example, a LINE object * has child blocks for each WORD block that's part of the line of text. * There aren't Relationship objects in the list for relationships that * don't exist, such as when the current block has no child blocks. The list @@ -1815,7 +1839,7 @@ public Block withRelationships(Relationship... relationships) { * together. * * @param relationships

- * A list of child blocks of the current block. For example a + * A list of child blocks of the current block. For example, a * LINE object has child blocks for each WORD block that's part * of the line of text. There aren't Relationship objects in the * list for relationships that don't exist, such as when the @@ -2054,16 +2078,16 @@ public Block withEntityTypes(java.util.Collection entityTypes) { /** *

- * The selection status of a selectable element such as a radio button or - * checkbox. + * The selection status of a selection element, such as an option button or + * check box. *

*

* Constraints:
* Allowed Values: SELECTED, NOT_SELECTED * * @return

- * The selection status of a selectable element such as a radio - * button or checkbox. + * The selection status of a selection element, such as an option + * button or check box. *

* @see SelectionStatus */ @@ -2073,16 +2097,16 @@ public String getSelectionStatus() { /** *

- * The selection status of a selectable element such as a radio button or - * checkbox. + * The selection status of a selection element, such as an option button or + * check box. *

*

* Constraints:
* Allowed Values: SELECTED, NOT_SELECTED * * @param selectionStatus

- * The selection status of a selectable element such as a radio - * button or checkbox. + * The selection status of a selection element, such as an option + * button or check box. *

* @see SelectionStatus */ @@ -2092,8 +2116,8 @@ public void setSelectionStatus(String selectionStatus) { /** *

- * The selection status of a selectable element such as a radio button or - * checkbox. + * The selection status of a selection element, such as an option button or + * check box. *

*

* Returns a reference to this object so that method calls can be chained @@ -2103,8 +2127,8 @@ public void setSelectionStatus(String selectionStatus) { * Allowed Values: SELECTED, NOT_SELECTED * * @param selectionStatus

- * The selection status of a selectable element such as a radio - * button or checkbox. + * The selection status of a selection element, such as an option + * button or check box. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -2117,16 +2141,16 @@ public Block withSelectionStatus(String selectionStatus) { /** *

- * The selection status of a selectable element such as a radio button or - * checkbox. + * The selection status of a selection element, such as an option button or + * check box. *

*

* Constraints:
* Allowed Values: SELECTED, NOT_SELECTED * * @param selectionStatus

- * The selection status of a selectable element such as a radio - * button or checkbox. + * The selection status of a selection element, such as an option + * button or check box. *

* @see SelectionStatus */ @@ -2136,8 +2160,8 @@ public void setSelectionStatus(SelectionStatus selectionStatus) { /** *

- * The selection status of a selectable element such as a radio button or - * checkbox. + * The selection status of a selection element, such as an option button or + * check box. *

*

* Returns a reference to this object so that method calls can be chained @@ -2147,8 +2171,8 @@ public void setSelectionStatus(SelectionStatus selectionStatus) { * Allowed Values: SELECTED, NOT_SELECTED * * @param selectionStatus

- * The selection status of a selectable element such as a radio - * button or checkbox. + * The selection status of a selection element, such as an option + * button or check box. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -2161,12 +2185,12 @@ public Block withSelectionStatus(SelectionStatus selectionStatus) { /** *

- * The page in which a block was detected. Page is returned by + * The page on which a block was detected. Page is returned by * asynchronous operations. Page values greater than 1 are only returned for - * multi-page documents that are in PDF format. A scanned image (JPG/PNG), - * even if it contains multiple document pages, is always considered to be a - * single-page document and the value of Page is always 1. - * Synchronous operations don't return Page as every input + * multipage documents that are in PDF format. A scanned image (JPEG/PNG), + * even if it contains multiple document pages, is considered to be a + * single-page document. The value of Page is always 1. + * Synchronous operations don't return Page because every input * document is considered to be a single-page document. *

*

@@ -2174,14 +2198,14 @@ public Block withSelectionStatus(SelectionStatus selectionStatus) { * Range: 0 -
* * @return

- * The page in which a block was detected. Page is + * The page on which a block was detected. Page is * returned by asynchronous operations. Page values greater than 1 - * are only returned for multi-page documents that are in PDF - * format. A scanned image (JPG/PNG), even if it contains multiple - * document pages, is always considered to be a single-page document - * and the value of Page is always 1. Synchronous - * operations don't return Page as every input document - * is considered to be a single-page document. + * are only returned for multipage documents that are in PDF format. + * A scanned image (JPEG/PNG), even if it contains multiple document + * pages, is considered to be a single-page document. The value of + * Page is always 1. Synchronous operations don't + * return Page because every input document is + * considered to be a single-page document. *

*/ public Integer getPage() { @@ -2190,12 +2214,12 @@ public Integer getPage() { /** *

- * The page in which a block was detected. Page is returned by + * The page on which a block was detected. Page is returned by * asynchronous operations. Page values greater than 1 are only returned for - * multi-page documents that are in PDF format. A scanned image (JPG/PNG), - * even if it contains multiple document pages, is always considered to be a - * single-page document and the value of Page is always 1. - * Synchronous operations don't return Page as every input + * multipage documents that are in PDF format. A scanned image (JPEG/PNG), + * even if it contains multiple document pages, is considered to be a + * single-page document. The value of Page is always 1. + * Synchronous operations don't return Page because every input * document is considered to be a single-page document. *

*

@@ -2203,15 +2227,15 @@ public Integer getPage() { * Range: 0 -
* * @param page

- * The page in which a block was detected. Page is + * The page on which a block was detected. Page is * returned by asynchronous operations. Page values greater than - * 1 are only returned for multi-page documents that are in PDF - * format. A scanned image (JPG/PNG), even if it contains - * multiple document pages, is always considered to be a - * single-page document and the value of Page is - * always 1. Synchronous operations don't return - * Page as every input document is considered to be - * a single-page document. + * 1 are only returned for multipage documents that are in PDF + * format. A scanned image (JPEG/PNG), even if it contains + * multiple document pages, is considered to be a single-page + * document. The value of Page is always 1. + * Synchronous operations don't return Page because + * every input document is considered to be a single-page + * document. *

*/ public void setPage(Integer page) { @@ -2220,12 +2244,12 @@ public void setPage(Integer page) { /** *

- * The page in which a block was detected. Page is returned by + * The page on which a block was detected. Page is returned by * asynchronous operations. Page values greater than 1 are only returned for - * multi-page documents that are in PDF format. A scanned image (JPG/PNG), - * even if it contains multiple document pages, is always considered to be a - * single-page document and the value of Page is always 1. - * Synchronous operations don't return Page as every input + * multipage documents that are in PDF format. A scanned image (JPEG/PNG), + * even if it contains multiple document pages, is considered to be a + * single-page document. The value of Page is always 1. + * Synchronous operations don't return Page because every input * document is considered to be a single-page document. *

*

@@ -2236,15 +2260,15 @@ public void setPage(Integer page) { * Range: 0 -
* * @param page

- * The page in which a block was detected. Page is + * The page on which a block was detected. Page is * returned by asynchronous operations. Page values greater than - * 1 are only returned for multi-page documents that are in PDF - * format. A scanned image (JPG/PNG), even if it contains - * multiple document pages, is always considered to be a - * single-page document and the value of Page is - * always 1. Synchronous operations don't return - * Page as every input document is considered to be - * a single-page document. + * 1 are only returned for multipage documents that are in PDF + * format. A scanned image (JPEG/PNG), even if it contains + * multiple document pages, is considered to be a single-page + * document. The value of Page is always 1. + * Synchronous operations don't return Page because + * every input document is considered to be a single-page + * document. *

* @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/BoundingBox.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/BoundingBox.java index 1881690349f..b8b1daefdba 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/BoundingBox.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/BoundingBox.java @@ -19,11 +19,11 @@ /** *

- * The bounding box around the recognized text, key, value, table or table cell - * on a document page. The left (x-coordinate) and top - * (y-coordinate) are coordinates that represent the top and left sides of the - * bounding box. Note that the upper-left corner of the image is the origin - * (0,0). + * The bounding box around the detected page, text, key-value pair, table, table + * cell, or selection element on a document page. The left + * (x-coordinate) and top (y-coordinate) are coordinates that + * represent the top and left sides of the bounding box. Note that the + * upper-left corner of the image is the origin (0,0). *

*

* The top and left values returned are ratios of the diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/ContentClassifier.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/ContentClassifier.java new file mode 100644 index 00000000000..512cc0f3a20 --- /dev/null +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/ContentClassifier.java @@ -0,0 +1,63 @@ +/* + * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.textract.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Content Classifier + */ +public enum ContentClassifier { + + FreeOfPersonallyIdentifiableInformation("FreeOfPersonallyIdentifiableInformation"), + FreeOfAdultContent("FreeOfAdultContent"); + + private String value; + + private ContentClassifier(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("FreeOfPersonallyIdentifiableInformation", + FreeOfPersonallyIdentifiableInformation); + enumMap.put("FreeOfAdultContent", FreeOfAdultContent); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return ContentClassifier corresponding to the value + */ + public static ContentClassifier fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DetectDocumentTextRequest.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DetectDocumentTextRequest.java index 1980cdaf466..05201507e2a 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DetectDocumentTextRequest.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DetectDocumentTextRequest.java @@ -23,7 +23,7 @@ *

* Detects text in the input document. Amazon Textract can detect lines of text * and the words that make up a line of text. The input document must be an - * image in JPG or PNG format. DetectDocumentText returns the + * image in JPEG or PNG format. DetectDocumentText returns the * detected text in an array of Block objects. *

*

@@ -48,11 +48,12 @@ public class DetectDocumentTextRequest extends AmazonWebServiceRequest implement *

* 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. + * bytes. The document must be an image in JPEG 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'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. *

*/ private Document document; @@ -61,22 +62,23 @@ public class DetectDocumentTextRequest extends AmazonWebServiceRequest implement *

* 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. + * bytes. The document must be an image in JPEG 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'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. *

* * @return

* 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. + * image in JPEG 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 + * 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. *

*/ @@ -88,23 +90,24 @@ 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. + * bytes. The document must be an image in JPEG 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'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. *

* * @param 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. + * an image in JPEG 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'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 void setDocument(Document document) { @@ -115,11 +118,12 @@ 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 JPG or PNG format. + * bytes. The document must be an image in JPEG 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'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. *

*

* Returns a reference to this object so that method calls can be chained @@ -129,12 +133,12 @@ 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 JPG or PNG format. + * an image in JPEG 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'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. *

* @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DetectDocumentTextResult.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DetectDocumentTextResult.java index d04aadcaf70..99f703c9eba 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DetectDocumentTextResult.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DetectDocumentTextResult.java @@ -20,7 +20,7 @@ public class DetectDocumentTextResult implements Serializable { /** *

- * Metadata about the document. Contains the number of pages that are + * Metadata about the document. It contains the number of pages that are * detected in the document. *

*/ @@ -28,19 +28,25 @@ public class DetectDocumentTextResult implements Serializable { /** *

- * An array of Block objects containing the text detected in the document. + * An array of Block objects that contain the text that's + * detected in the document. *

*/ private java.util.List blocks; + /** + *

+ */ + private String detectDocumentTextModelVersion; + /** *

- * Metadata about the document. Contains the number of pages that are + * Metadata about the document. It contains the number of pages that are * detected in the document. *

* * @return

- * Metadata about the document. Contains the number of pages that + * Metadata about the document. It contains the number of pages that * are detected in the document. *

*/ @@ -50,13 +56,13 @@ public DocumentMetadata getDocumentMetadata() { /** *

- * Metadata about the document. Contains the number of pages that are + * Metadata about the document. It contains the number of pages that are * detected in the document. *

* * @param documentMetadata

- * Metadata about the document. Contains the number of pages that - * are detected in the document. + * Metadata about the document. It contains the number of pages + * that are detected in the document. *

*/ public void setDocumentMetadata(DocumentMetadata documentMetadata) { @@ -65,7 +71,7 @@ public void setDocumentMetadata(DocumentMetadata documentMetadata) { /** *

- * Metadata about the document. Contains the number of pages that are + * Metadata about the document. It contains the number of pages that are * detected in the document. *

*

@@ -73,8 +79,8 @@ public void setDocumentMetadata(DocumentMetadata documentMetadata) { * together. * * @param documentMetadata

- * Metadata about the document. Contains the number of pages that - * are detected in the document. + * Metadata about the document. It contains the number of pages + * that are detected in the document. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -86,12 +92,13 @@ public DetectDocumentTextResult withDocumentMetadata(DocumentMetadata documentMe /** *

- * An array of Block objects containing the text detected in the document. + * An array of Block objects that contain the text that's + * detected in the document. *

* * @return

- * An array of Block objects containing the text detected in the - * document. + * An array of Block objects that contain the text + * that's detected in the document. *

*/ public java.util.List getBlocks() { @@ -100,12 +107,13 @@ public java.util.List getBlocks() { /** *

- * An array of Block objects containing the text detected in the document. + * An array of Block objects that contain the text that's + * detected in the document. *

* * @param blocks

- * An array of Block objects containing the text detected in the - * document. + * An array of Block objects that contain the text + * that's detected in the document. *

*/ public void setBlocks(java.util.Collection blocks) { @@ -119,15 +127,16 @@ public void setBlocks(java.util.Collection blocks) { /** *

- * An array of Block objects containing the text detected in the document. + * An array of Block objects that contain the text that's + * detected in the document. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param blocks

- * An array of Block objects containing the text detected in the - * document. + * An array of Block objects that contain the text + * that's detected in the document. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -144,15 +153,16 @@ public DetectDocumentTextResult withBlocks(Block... blocks) { /** *

- * An array of Block objects containing the text detected in the document. + * An array of Block objects that contain the text that's + * detected in the document. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param blocks

- * An array of Block objects containing the text detected in the - * document. + * An array of Block objects that contain the text + * that's detected in the document. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -162,6 +172,40 @@ public DetectDocumentTextResult withBlocks(java.util.Collection blocks) { return this; } + /** + *

+ * + * @return

+ */ + public String getDetectDocumentTextModelVersion() { + return detectDocumentTextModelVersion; + } + + /** + *

+ * + * @param detectDocumentTextModelVersion

+ */ + public void setDetectDocumentTextModelVersion(String detectDocumentTextModelVersion) { + this.detectDocumentTextModelVersion = detectDocumentTextModelVersion; + } + + /** + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param detectDocumentTextModelVersion

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DetectDocumentTextResult withDetectDocumentTextModelVersion( + String detectDocumentTextModelVersion) { + this.detectDocumentTextModelVersion = detectDocumentTextModelVersion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -176,7 +220,9 @@ public String toString() { if (getDocumentMetadata() != null) sb.append("DocumentMetadata: " + getDocumentMetadata() + ","); if (getBlocks() != null) - sb.append("Blocks: " + getBlocks()); + sb.append("Blocks: " + getBlocks() + ","); + if (getDetectDocumentTextModelVersion() != null) + sb.append("DetectDocumentTextModelVersion: " + getDetectDocumentTextModelVersion()); sb.append("}"); return sb.toString(); } @@ -189,6 +235,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getDocumentMetadata() == null) ? 0 : getDocumentMetadata().hashCode()); hashCode = prime * hashCode + ((getBlocks() == null) ? 0 : getBlocks().hashCode()); + hashCode = prime + * hashCode + + ((getDetectDocumentTextModelVersion() == null) ? 0 + : getDetectDocumentTextModelVersion().hashCode()); return hashCode; } @@ -212,6 +262,13 @@ public boolean equals(Object obj) { return false; if (other.getBlocks() != null && other.getBlocks().equals(this.getBlocks()) == false) return false; + if (other.getDetectDocumentTextModelVersion() == null + ^ this.getDetectDocumentTextModelVersion() == null) + return false; + if (other.getDetectDocumentTextModelVersion() != null + && other.getDetectDocumentTextModelVersion().equals( + this.getDetectDocumentTextModelVersion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Document.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Document.java index 33acd845960..380ffb80cad 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Document.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Document.java @@ -52,50 +52,50 @@ public class Document implements Serializable { /** *

- * A blob of base-64 encoded documents bytes. The maximum size of a document + * A blob of base64-encoded document bytes. The maximum size of a document * that's provided in a blob of bytes is 5 MB. The document bytes must be in - * PNG or JPG format. + * PNG or JPEG 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're using an AWS SDK to call Amazon Textract, you might not need to + * base64-encode image bytes passed using the Bytes field. *

*

* Constraints:
- * Length: 1 - 5242880
+ * Length: 1 - 10485760
*/ private java.nio.ByteBuffer bytes; /** *

* Identifies an S3 object as the document source. The maximum size of a - * document stored in an S3 bucket is 5 MB. + * document that's stored in an S3 bucket is 5 MB. *

*/ private S3Object s3Object; /** *

- * A blob of base-64 encoded documents bytes. The maximum size of a document + * A blob of base64-encoded document bytes. The maximum size of a document * that's provided in a blob of bytes is 5 MB. The document bytes must be in - * PNG or JPG format. + * PNG or JPEG 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're using an AWS SDK to call Amazon Textract, you might not need to + * base64-encode image bytes passed using the Bytes field. *

*

* Constraints:
- * Length: 1 - 5242880
+ * Length: 1 - 10485760
* * @return

- * A blob of base-64 encoded documents bytes. The maximum size of a + * A blob of base64-encoded document bytes. The maximum size of a * document that's provided in a blob of bytes is 5 MB. The document - * bytes must be in PNG or JPG format. + * bytes must be in PNG or JPEG format. *

*

- * If you are using an AWS SDK to call Amazon Textract, you might - * not need to base64-encode image bytes passed using the + * If you're using an AWS SDK to call Amazon Textract, you might not + * need to base64-encode image bytes passed using the * Bytes field. *

*/ @@ -105,25 +105,25 @@ public java.nio.ByteBuffer getBytes() { /** *

- * A blob of base-64 encoded documents bytes. The maximum size of a document + * A blob of base64-encoded document bytes. The maximum size of a document * that's provided in a blob of bytes is 5 MB. The document bytes must be in - * PNG or JPG format. + * PNG or JPEG 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're using an AWS SDK to call Amazon Textract, you might not need to + * base64-encode image bytes passed using the Bytes field. *

*

* Constraints:
- * Length: 1 - 5242880
+ * Length: 1 - 10485760
* * @param bytes

- * A blob of base-64 encoded documents bytes. The maximum size of - * a document that's provided in a blob of bytes is 5 MB. The - * document bytes must be in PNG or JPG format. + * A blob of base64-encoded document bytes. The maximum size of a + * document that's provided in a blob of bytes is 5 MB. The + * document bytes must be in PNG or JPEG format. *

*

- * If you are using an AWS SDK to call Amazon Textract, you might + * If you're using an AWS SDK to call Amazon Textract, you might * not need to base64-encode image bytes passed using the * Bytes field. *

@@ -134,28 +134,28 @@ public void setBytes(java.nio.ByteBuffer bytes) { /** *

- * A blob of base-64 encoded documents bytes. The maximum size of a document + * A blob of base64-encoded document bytes. The maximum size of a document * that's provided in a blob of bytes is 5 MB. The document bytes must be in - * PNG or JPG format. + * PNG or JPEG 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're using an AWS SDK to call Amazon Textract, you might not need to + * base64-encode image bytes passed using the Bytes field. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
- * Length: 1 - 5242880
+ * Length: 1 - 10485760
* * @param bytes

- * A blob of base-64 encoded documents bytes. The maximum size of - * a document that's provided in a blob of bytes is 5 MB. The - * document bytes must be in PNG or JPG format. + * A blob of base64-encoded document bytes. The maximum size of a + * document that's provided in a blob of bytes is 5 MB. The + * document bytes must be in PNG or JPEG format. *

*

- * If you are using an AWS SDK to call Amazon Textract, you might + * If you're using an AWS SDK to call Amazon Textract, you might * not need to base64-encode image bytes passed using the * Bytes field. *

@@ -170,12 +170,12 @@ public Document withBytes(java.nio.ByteBuffer bytes) { /** *

* Identifies an S3 object as the document source. The maximum size of a - * document stored in an S3 bucket is 5 MB. + * document that's stored in an S3 bucket is 5 MB. *

* * @return

* Identifies an S3 object as the document source. The maximum size - * of a document stored in an S3 bucket is 5 MB. + * of a document that's stored in an S3 bucket is 5 MB. *

*/ public S3Object getS3Object() { @@ -185,12 +185,12 @@ public S3Object getS3Object() { /** *

* Identifies an S3 object as the document source. The maximum size of a - * document stored in an S3 bucket is 5 MB. + * document that's stored in an S3 bucket is 5 MB. *

* * @param s3Object

* Identifies an S3 object as the document source. The maximum - * size of a document stored in an S3 bucket is 5 MB. + * size of a document that's stored in an S3 bucket is 5 MB. *

*/ public void setS3Object(S3Object s3Object) { @@ -200,7 +200,7 @@ public void setS3Object(S3Object s3Object) { /** *

* Identifies an S3 object as the document source. The maximum size of a - * document stored in an S3 bucket is 5 MB. + * document that's stored in an S3 bucket is 5 MB. *

*

* Returns a reference to this object so that method calls can be chained @@ -208,7 +208,7 @@ public void setS3Object(S3Object s3Object) { * * @param s3Object

* Identifies an S3 object as the document source. The maximum - * size of a document stored in an S3 bucket is 5 MB. + * size of a document that's stored in an S3 bucket is 5 MB. *

* @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DocumentLocation.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DocumentLocation.java index da1a419edc2..fcd1a983260 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DocumentLocation.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DocumentLocation.java @@ -23,7 +23,7 @@ * asynchronous operations such as StartDocumentTextDetection. *

*

- * The input document can be an image file in JPG or PNG format. It can also be + * The input document can be an image file in JPEG or PNG format. It can also be * a file in PDF format. *

*/ diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DocumentMetadata.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DocumentMetadata.java index 46a16161523..347e774e828 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DocumentMetadata.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DocumentMetadata.java @@ -25,7 +25,7 @@ public class DocumentMetadata implements Serializable { /** *

- * The number of pages detected in the document. + * The number of pages that are detected in the document. *

*

* Constraints:
@@ -35,14 +35,14 @@ public class DocumentMetadata implements Serializable { /** *

- * The number of pages detected in the document. + * The number of pages that are detected in the document. *

*

* Constraints:
* Range: 0 -
* * @return

- * The number of pages detected in the document. + * The number of pages that are detected in the document. *

*/ public Integer getPages() { @@ -51,14 +51,14 @@ public Integer getPages() { /** *

- * The number of pages detected in the document. + * The number of pages that are detected in the document. *

*

* Constraints:
* Range: 0 -
* * @param pages

- * The number of pages detected in the document. + * The number of pages that are detected in the document. *

*/ public void setPages(Integer pages) { @@ -67,7 +67,7 @@ public void setPages(Integer pages) { /** *

- * The number of pages detected in the document. + * The number of pages that are detected in the document. *

*

* Returns a reference to this object so that method calls can be chained @@ -77,7 +77,7 @@ public void setPages(Integer pages) { * Range: 0 -
* * @param pages

- * The number of pages detected in the document. + * The number of pages that are detected in the document. *

* @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DocumentTooLargeException.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DocumentTooLargeException.java index ba59871db5c..afa96cb887a 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DocumentTooLargeException.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/DocumentTooLargeException.java @@ -21,7 +21,7 @@ *

* The document can't be processed because it's too large. The maximum document * size for synchronous operations 5 MB. The maximum document size for - * asynchronous operations is 500 MB for PDF format files. + * asynchronous operations is 500 MB for PDF files. *

*/ public class DocumentTooLargeException extends AmazonServiceException { diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Geometry.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Geometry.java index 7b58d5104ec..5c7d1829771 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Geometry.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Geometry.java @@ -19,15 +19,16 @@ /** *

- * Information about where a recognized text, key, value, table, or table cell - * is located on a document page. + * Information about where the following items are located on a document page: + * detected page, text, key-value pairs, tables, table cells, and selection + * elements. *

*/ public class Geometry implements Serializable { /** *

* An axis-aligned coarse representation of the location of the recognized - * text on the document page. + * item on the document page. *

*/ private BoundingBox boundingBox; @@ -35,7 +36,7 @@ public class Geometry implements Serializable { /** *

* Within the bounding box, a fine-grained polygon around the recognized - * text. + * item. *

*/ private java.util.List polygon; @@ -43,12 +44,12 @@ public class Geometry implements Serializable { /** *

* An axis-aligned coarse representation of the location of the recognized - * text on the document page. + * item on the document page. *

* * @return

* An axis-aligned coarse representation of the location of the - * recognized text on the document page. + * recognized item on the document page. *

*/ public BoundingBox getBoundingBox() { @@ -58,12 +59,12 @@ public BoundingBox getBoundingBox() { /** *

* An axis-aligned coarse representation of the location of the recognized - * text on the document page. + * item on the document page. *

* * @param boundingBox

* An axis-aligned coarse representation of the location of the - * recognized text on the document page. + * recognized item on the document page. *

*/ public void setBoundingBox(BoundingBox boundingBox) { @@ -73,7 +74,7 @@ public void setBoundingBox(BoundingBox boundingBox) { /** *

* An axis-aligned coarse representation of the location of the recognized - * text on the document page. + * item on the document page. *

*

* Returns a reference to this object so that method calls can be chained @@ -81,7 +82,7 @@ public void setBoundingBox(BoundingBox boundingBox) { * * @param boundingBox

* An axis-aligned coarse representation of the location of the - * recognized text on the document page. + * recognized item on the document page. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -94,12 +95,12 @@ public Geometry withBoundingBox(BoundingBox boundingBox) { /** *

* Within the bounding box, a fine-grained polygon around the recognized - * text. + * item. *

* * @return

* Within the bounding box, a fine-grained polygon around the - * recognized text. + * recognized item. *

*/ public java.util.List getPolygon() { @@ -109,12 +110,12 @@ public java.util.List getPolygon() { /** *

* Within the bounding box, a fine-grained polygon around the recognized - * text. + * item. *

* * @param polygon

* Within the bounding box, a fine-grained polygon around the - * recognized text. + * recognized item. *

*/ public void setPolygon(java.util.Collection polygon) { @@ -129,7 +130,7 @@ public void setPolygon(java.util.Collection polygon) { /** *

* Within the bounding box, a fine-grained polygon around the recognized - * text. + * item. *

*

* Returns a reference to this object so that method calls can be chained @@ -137,7 +138,7 @@ public void setPolygon(java.util.Collection polygon) { * * @param polygon

* Within the bounding box, a fine-grained polygon around the - * recognized text. + * recognized item. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -155,7 +156,7 @@ public Geometry withPolygon(Point... polygon) { /** *

* Within the bounding box, a fine-grained polygon around the recognized - * text. + * item. *

*

* Returns a reference to this object so that method calls can be chained @@ -163,7 +164,7 @@ public Geometry withPolygon(Point... polygon) { * * @param polygon

* Within the bounding box, a fine-grained polygon around the - * recognized text. + * recognized item. *

* @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentAnalysisRequest.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentAnalysisRequest.java index 70d318df689..bedc8d376fb 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentAnalysisRequest.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentAnalysisRequest.java @@ -43,40 +43,44 @@ *
    *
  • *

    - * Words and lines that are related to nearby lines and words. The related - * information is returned in two Block objects each of type - * KEY_VALUE_SET: a KEY Block object and a VALUE Block object. For - * example, Name: Ana Silva Carolina contains a key and value. - * Name: is the key. Ana Silva Carolina is the value. + * Form data (key-value pairs). The related information is returned in two + * Block objects, each of type KEY_VALUE_SET: a KEY + * Block object and a VALUE Block object. For example, + * Name: Ana Silva Carolina contains a key and value. Name: is the + * key. Ana Silva Carolina is the value. *

    *
  • *
  • *

    - * Table and table cell data. A TABLE Block object contains information about a - * detected table. A CELL Block object is returned for each cell in a table. + * Table and table cell data. A TABLE Block object contains + * information about a detected table. A CELL Block object is + * returned for each cell in a table. *

    *
  • *
  • *

    - * Selectable elements such as checkboxes and radio buttons. A SELECTION_ELEMENT - * Block object contains information about a selectable element. + * Lines and words of text. A LINE Block object contains one or + * more WORD Block objects. All lines and words that are detected + * in the document are returned (including text that doesn't have a relationship + * with the value of the StartDocumentAnalysis + * FeatureTypes input parameter). *

    *
  • - *
  • + *
*

- * Lines and words of text. A LINE Block object contains one or more WORD Block - * objects. + * Selection elements such as check boxes and option buttons (radio buttons) can + * be detected in form data and in tables. A SELECTION_ELEMENT + * Block object contains information about a selection element, + * including the selection status. *

- * - * *

- * Use the MaxResults parameter to limit the number of blocks - * returned. If there are more results than specified in MaxResults - * , the value of NextToken in the operation response contains a - * pagination token for getting the next set of results. To get the next page of - * results, call GetDocumentAnalysis, and populate the - * NextToken request parameter with the token value that's returned - * from the previous call to GetDocumentAnalysis. + * Use the MaxResults parameter to limit the number of blocks that + * are returned. If there are more results than specified in + * MaxResults, the value of NextToken in the operation + * response contains a pagination token for getting the next set of results. To + * get the next page of results, call GetDocumentAnalysis, and + * populate the NextToken request parameter with the token value + * that's returned from the previous call to GetDocumentAnalysis. *

*

* For more information, see * A unique identifier for the text-detection job. The JobId is - * returned from StartDocumentAnalysis. + * returned from StartDocumentAnalysis. A JobId + * value is only valid for 7 days. *

*

* Constraints:
@@ -126,7 +131,8 @@ public class GetDocumentAnalysisRequest extends AmazonWebServiceRequest implemen /** *

* A unique identifier for the text-detection job. The JobId is - * returned from StartDocumentAnalysis. + * returned from StartDocumentAnalysis. A JobId + * value is only valid for 7 days. *

*

* Constraints:
@@ -136,7 +142,8 @@ public class GetDocumentAnalysisRequest extends AmazonWebServiceRequest implemen * @return

* A unique identifier for the text-detection job. The * JobId is returned from - * StartDocumentAnalysis. + * StartDocumentAnalysis. A JobId value is + * only valid for 7 days. *

*/ public String getJobId() { @@ -146,7 +153,8 @@ public String getJobId() { /** *

* A unique identifier for the text-detection job. The JobId is - * returned from StartDocumentAnalysis. + * returned from StartDocumentAnalysis. A JobId + * value is only valid for 7 days. *

*

* Constraints:
@@ -156,7 +164,8 @@ public String getJobId() { * @param jobId

* A unique identifier for the text-detection job. The * JobId is returned from - * StartDocumentAnalysis. + * StartDocumentAnalysis. A JobId value + * is only valid for 7 days. *

*/ public void setJobId(String jobId) { @@ -166,7 +175,8 @@ public void setJobId(String jobId) { /** *

* A unique identifier for the text-detection job. The JobId is - * returned from StartDocumentAnalysis. + * returned from StartDocumentAnalysis. A JobId + * value is only valid for 7 days. *

*

* Returns a reference to this object so that method calls can be chained @@ -179,7 +189,8 @@ public void setJobId(String jobId) { * @param jobId

* A unique identifier for the text-detection job. The * JobId is returned from - * StartDocumentAnalysis. + * StartDocumentAnalysis. A JobId value + * is only valid for 7 days. *

* @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentAnalysisResult.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentAnalysisResult.java index 27653a2fb22..4a3efdf5cdf 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentAnalysisResult.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentAnalysisResult.java @@ -52,25 +52,30 @@ public class GetDocumentAnalysisResult implements Serializable { /** *

- * The results of the text analysis operation. + * The results of the text-analysis operation. *

*/ private java.util.List blocks; /** *

- * A list of warnings that occurred during the document analysis operation. + * A list of warnings that occurred during the document-analysis operation. *

*/ private java.util.List warnings; /** *

- * The current status of an asynchronous document analysis operation. + * The current status of an asynchronous document-analysis operation. *

*/ private String statusMessage; + /** + *

+ */ + private String analyzeDocumentModelVersion; + /** *

* Information about a document that Amazon Textract processed. @@ -296,11 +301,11 @@ public GetDocumentAnalysisResult withNextToken(String nextToken) { /** *

- * The results of the text analysis operation. + * The results of the text-analysis operation. *

* * @return

- * The results of the text analysis operation. + * The results of the text-analysis operation. *

*/ public java.util.List getBlocks() { @@ -309,11 +314,11 @@ public java.util.List getBlocks() { /** *

- * The results of the text analysis operation. + * The results of the text-analysis operation. *

* * @param blocks

- * The results of the text analysis operation. + * The results of the text-analysis operation. *

*/ public void setBlocks(java.util.Collection blocks) { @@ -327,14 +332,14 @@ public void setBlocks(java.util.Collection blocks) { /** *

- * The results of the text analysis operation. + * The results of the text-analysis operation. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param blocks

- * The results of the text analysis operation. + * The results of the text-analysis operation. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -351,14 +356,14 @@ public GetDocumentAnalysisResult withBlocks(Block... blocks) { /** *

- * The results of the text analysis operation. + * The results of the text-analysis operation. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param blocks

- * The results of the text analysis operation. + * The results of the text-analysis operation. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -370,11 +375,11 @@ public GetDocumentAnalysisResult withBlocks(java.util.Collection blocks) /** *

- * A list of warnings that occurred during the document analysis operation. + * A list of warnings that occurred during the document-analysis operation. *

* * @return

- * A list of warnings that occurred during the document analysis + * A list of warnings that occurred during the document-analysis * operation. *

*/ @@ -384,11 +389,11 @@ public java.util.List getWarnings() { /** *

- * A list of warnings that occurred during the document analysis operation. + * A list of warnings that occurred during the document-analysis operation. *

* * @param warnings

- * A list of warnings that occurred during the document analysis + * A list of warnings that occurred during the document-analysis * operation. *

*/ @@ -403,14 +408,14 @@ public void setWarnings(java.util.Collection warnings) { /** *

- * A list of warnings that occurred during the document analysis operation. + * A list of warnings that occurred during the document-analysis operation. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param warnings

- * A list of warnings that occurred during the document analysis + * A list of warnings that occurred during the document-analysis * operation. *

* @return A reference to this updated object so that method calls can be @@ -428,14 +433,14 @@ public GetDocumentAnalysisResult withWarnings(Warning... warnings) { /** *

- * A list of warnings that occurred during the document analysis operation. + * A list of warnings that occurred during the document-analysis operation. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param warnings

- * A list of warnings that occurred during the document analysis + * A list of warnings that occurred during the document-analysis * operation. *

* @return A reference to this updated object so that method calls can be @@ -448,11 +453,11 @@ public GetDocumentAnalysisResult withWarnings(java.util.Collection warn /** *

- * The current status of an asynchronous document analysis operation. + * The current status of an asynchronous document-analysis operation. *

* * @return

- * The current status of an asynchronous document analysis + * The current status of an asynchronous document-analysis * operation. *

*/ @@ -462,11 +467,11 @@ public String getStatusMessage() { /** *

- * The current status of an asynchronous document analysis operation. + * The current status of an asynchronous document-analysis operation. *

* * @param statusMessage

- * The current status of an asynchronous document analysis + * The current status of an asynchronous document-analysis * operation. *

*/ @@ -476,14 +481,14 @@ public void setStatusMessage(String statusMessage) { /** *

- * The current status of an asynchronous document analysis operation. + * The current status of an asynchronous document-analysis operation. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param statusMessage

- * The current status of an asynchronous document analysis + * The current status of an asynchronous document-analysis * operation. *

* @return A reference to this updated object so that method calls can be @@ -494,6 +499,40 @@ public GetDocumentAnalysisResult withStatusMessage(String statusMessage) { return this; } + /** + *

+ * + * @return

+ */ + public String getAnalyzeDocumentModelVersion() { + return analyzeDocumentModelVersion; + } + + /** + *

+ * + * @param analyzeDocumentModelVersion

+ */ + public void setAnalyzeDocumentModelVersion(String analyzeDocumentModelVersion) { + this.analyzeDocumentModelVersion = analyzeDocumentModelVersion; + } + + /** + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param analyzeDocumentModelVersion

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetDocumentAnalysisResult withAnalyzeDocumentModelVersion( + String analyzeDocumentModelVersion) { + this.analyzeDocumentModelVersion = analyzeDocumentModelVersion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -516,7 +555,9 @@ public String toString() { if (getWarnings() != null) sb.append("Warnings: " + getWarnings() + ","); if (getStatusMessage() != null) - sb.append("StatusMessage: " + getStatusMessage()); + sb.append("StatusMessage: " + getStatusMessage() + ","); + if (getAnalyzeDocumentModelVersion() != null) + sb.append("AnalyzeDocumentModelVersion: " + getAnalyzeDocumentModelVersion()); sb.append("}"); return sb.toString(); } @@ -534,6 +575,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getWarnings() == null) ? 0 : getWarnings().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); + hashCode = prime + * hashCode + + ((getAnalyzeDocumentModelVersion() == null) ? 0 + : getAnalyzeDocumentModelVersion().hashCode()); return hashCode; } @@ -576,6 +621,13 @@ public boolean equals(Object obj) { if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; + if (other.getAnalyzeDocumentModelVersion() == null + ^ this.getAnalyzeDocumentModelVersion() == null) + return false; + if (other.getAnalyzeDocumentModelVersion() != null + && other.getAnalyzeDocumentModelVersion().equals( + this.getAnalyzeDocumentModelVersion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentTextDetectionRequest.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentTextDetectionRequest.java index c92617c6c7d..b47cfab1498 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentTextDetectionRequest.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentTextDetectionRequest.java @@ -69,7 +69,8 @@ public class GetDocumentTextDetectionRequest extends AmazonWebServiceRequest imp /** *

* A unique identifier for the text detection job. The JobId is - * returned from StartDocumentTextDetection. + * returned from StartDocumentTextDetection. A + * JobId value is only valid for 7 days. *

*

* Constraints:
@@ -107,7 +108,8 @@ public class GetDocumentTextDetectionRequest extends AmazonWebServiceRequest imp /** *

* A unique identifier for the text detection job. The JobId is - * returned from StartDocumentTextDetection. + * returned from StartDocumentTextDetection. A + * JobId value is only valid for 7 days. *

*

* Constraints:
@@ -117,7 +119,8 @@ public class GetDocumentTextDetectionRequest extends AmazonWebServiceRequest imp * @return

* A unique identifier for the text detection job. The * JobId is returned from - * StartDocumentTextDetection. + * StartDocumentTextDetection. A JobId + * value is only valid for 7 days. *

*/ public String getJobId() { @@ -127,7 +130,8 @@ public String getJobId() { /** *

* A unique identifier for the text detection job. The JobId is - * returned from StartDocumentTextDetection. + * returned from StartDocumentTextDetection. A + * JobId value is only valid for 7 days. *

*

* Constraints:
@@ -137,7 +141,8 @@ public String getJobId() { * @param jobId

* A unique identifier for the text detection job. The * JobId is returned from - * StartDocumentTextDetection. + * StartDocumentTextDetection. A JobId + * value is only valid for 7 days. *

*/ public void setJobId(String jobId) { @@ -147,7 +152,8 @@ public void setJobId(String jobId) { /** *

* A unique identifier for the text detection job. The JobId is - * returned from StartDocumentTextDetection. + * returned from StartDocumentTextDetection. A + * JobId value is only valid for 7 days. *

*

* Returns a reference to this object so that method calls can be chained @@ -160,7 +166,8 @@ public void setJobId(String jobId) { * @param jobId

* A unique identifier for the text detection job. The * JobId is returned from - * StartDocumentTextDetection. + * StartDocumentTextDetection. A JobId + * value is only valid for 7 days. *

* @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentTextDetectionResult.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentTextDetectionResult.java index c45b5ad3aa4..c71f83f6bdf 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentTextDetectionResult.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentTextDetectionResult.java @@ -59,19 +59,25 @@ public class GetDocumentTextDetectionResult implements Serializable { /** *

- * A list of warnings that occurred during the document text-detection - * operation. + * A list of warnings that occurred during the text-detection operation for + * the document. *

*/ private java.util.List warnings; /** *

- * The current status of an asynchronous document text-detection operation. + * The current status of an asynchronous text-detection operation for the + * document. *

*/ private String statusMessage; + /** + *

+ */ + private String detectDocumentTextModelVersion; + /** *

* Information about a document that Amazon Textract processed. @@ -371,13 +377,13 @@ public GetDocumentTextDetectionResult withBlocks(java.util.Collection blo /** *

- * A list of warnings that occurred during the document text-detection - * operation. + * A list of warnings that occurred during the text-detection operation for + * the document. *

* * @return

- * A list of warnings that occurred during the document - * text-detection operation. + * A list of warnings that occurred during the text-detection + * operation for the document. *

*/ public java.util.List getWarnings() { @@ -386,13 +392,13 @@ public java.util.List getWarnings() { /** *

- * A list of warnings that occurred during the document text-detection - * operation. + * A list of warnings that occurred during the text-detection operation for + * the document. *

* * @param warnings

- * A list of warnings that occurred during the document - * text-detection operation. + * A list of warnings that occurred during the text-detection + * operation for the document. *

*/ public void setWarnings(java.util.Collection warnings) { @@ -406,16 +412,16 @@ public void setWarnings(java.util.Collection warnings) { /** *

- * A list of warnings that occurred during the document text-detection - * operation. + * A list of warnings that occurred during the text-detection operation for + * the document. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param warnings

- * A list of warnings that occurred during the document - * text-detection operation. + * A list of warnings that occurred during the text-detection + * operation for the document. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -432,16 +438,16 @@ public GetDocumentTextDetectionResult withWarnings(Warning... warnings) { /** *

- * A list of warnings that occurred during the document text-detection - * operation. + * A list of warnings that occurred during the text-detection operation for + * the document. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param warnings

- * A list of warnings that occurred during the document - * text-detection operation. + * A list of warnings that occurred during the text-detection + * operation for the document. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -453,12 +459,13 @@ public GetDocumentTextDetectionResult withWarnings(java.util.Collection /** *

- * The current status of an asynchronous document text-detection operation. + * The current status of an asynchronous text-detection operation for the + * document. *

* * @return

- * The current status of an asynchronous document text-detection - * operation. + * The current status of an asynchronous text-detection operation + * for the document. *

*/ public String getStatusMessage() { @@ -467,12 +474,13 @@ public String getStatusMessage() { /** *

- * The current status of an asynchronous document text-detection operation. + * The current status of an asynchronous text-detection operation for the + * document. *

* * @param statusMessage

- * The current status of an asynchronous document text-detection - * operation. + * The current status of an asynchronous text-detection operation + * for the document. *

*/ public void setStatusMessage(String statusMessage) { @@ -481,15 +489,16 @@ public void setStatusMessage(String statusMessage) { /** *

- * The current status of an asynchronous document text-detection operation. + * The current status of an asynchronous text-detection operation for the + * document. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param statusMessage

- * The current status of an asynchronous document text-detection - * operation. + * The current status of an asynchronous text-detection operation + * for the document. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -499,6 +508,40 @@ public GetDocumentTextDetectionResult withStatusMessage(String statusMessage) { return this; } + /** + *

+ * + * @return

+ */ + public String getDetectDocumentTextModelVersion() { + return detectDocumentTextModelVersion; + } + + /** + *

+ * + * @param detectDocumentTextModelVersion

+ */ + public void setDetectDocumentTextModelVersion(String detectDocumentTextModelVersion) { + this.detectDocumentTextModelVersion = detectDocumentTextModelVersion; + } + + /** + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param detectDocumentTextModelVersion

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetDocumentTextDetectionResult withDetectDocumentTextModelVersion( + String detectDocumentTextModelVersion) { + this.detectDocumentTextModelVersion = detectDocumentTextModelVersion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -521,7 +564,9 @@ public String toString() { if (getWarnings() != null) sb.append("Warnings: " + getWarnings() + ","); if (getStatusMessage() != null) - sb.append("StatusMessage: " + getStatusMessage()); + sb.append("StatusMessage: " + getStatusMessage() + ","); + if (getDetectDocumentTextModelVersion() != null) + sb.append("DetectDocumentTextModelVersion: " + getDetectDocumentTextModelVersion()); sb.append("}"); return sb.toString(); } @@ -539,6 +584,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getWarnings() == null) ? 0 : getWarnings().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); + hashCode = prime + * hashCode + + ((getDetectDocumentTextModelVersion() == null) ? 0 + : getDetectDocumentTextModelVersion().hashCode()); return hashCode; } @@ -581,6 +630,13 @@ public boolean equals(Object obj) { if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; + if (other.getDetectDocumentTextModelVersion() == null + ^ this.getDetectDocumentTextModelVersion() == null) + return false; + if (other.getDetectDocumentTextModelVersion() != null + && other.getDetectDocumentTextModelVersion().equals( + this.getDetectDocumentTextModelVersion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/HumanLoopActivationOutput.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/HumanLoopActivationOutput.java new file mode 100644 index 00000000000..9b2a36c6ab7 --- /dev/null +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/HumanLoopActivationOutput.java @@ -0,0 +1,322 @@ +/* + * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.textract.model; + +import java.io.Serializable; + +/** + *

+ * Shows the results of the human in the loop evaluation. If there is no + * HumanLoopArn, the input did not trigger human review. + *

+ */ +public class HumanLoopActivationOutput implements Serializable { + /** + *

+ * The Amazon Resource Name (ARN) of the HumanLoop created. + *

+ *

+ * Constraints:
+ * Length: - 256
+ */ + private String humanLoopArn; + + /** + *

+ * Shows if and why human review was needed. + *

+ */ + private java.util.List humanLoopActivationReasons; + + /** + *

+ * Shows the result of condition evaluations, including those conditions + * which activated a human review. + *

+ *

+ * Constraints:
+ * Length: - 10240
+ */ + private String humanLoopActivationConditionsEvaluationResults; + + /** + *

+ * The Amazon Resource Name (ARN) of the HumanLoop created. + *

+ *

+ * Constraints:
+ * Length: - 256
+ * + * @return

+ * The Amazon Resource Name (ARN) of the HumanLoop created. + *

+ */ + public String getHumanLoopArn() { + return humanLoopArn; + } + + /** + *

+ * The Amazon Resource Name (ARN) of the HumanLoop created. + *

+ *

+ * Constraints:
+ * Length: - 256
+ * + * @param humanLoopArn

+ * The Amazon Resource Name (ARN) of the HumanLoop created. + *

+ */ + public void setHumanLoopArn(String humanLoopArn) { + this.humanLoopArn = humanLoopArn; + } + + /** + *

+ * The Amazon Resource Name (ARN) of the HumanLoop created. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: - 256
+ * + * @param humanLoopArn

+ * The Amazon Resource Name (ARN) of the HumanLoop created. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HumanLoopActivationOutput withHumanLoopArn(String humanLoopArn) { + this.humanLoopArn = humanLoopArn; + return this; + } + + /** + *

+ * Shows if and why human review was needed. + *

+ * + * @return

+ * Shows if and why human review was needed. + *

+ */ + public java.util.List getHumanLoopActivationReasons() { + return humanLoopActivationReasons; + } + + /** + *

+ * Shows if and why human review was needed. + *

+ * + * @param humanLoopActivationReasons

+ * Shows if and why human review was needed. + *

+ */ + public void setHumanLoopActivationReasons( + java.util.Collection humanLoopActivationReasons) { + if (humanLoopActivationReasons == null) { + this.humanLoopActivationReasons = null; + return; + } + + this.humanLoopActivationReasons = new java.util.ArrayList( + humanLoopActivationReasons); + } + + /** + *

+ * Shows if and why human review was needed. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param humanLoopActivationReasons

+ * Shows if and why human review was needed. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HumanLoopActivationOutput withHumanLoopActivationReasons( + String... humanLoopActivationReasons) { + if (getHumanLoopActivationReasons() == null) { + this.humanLoopActivationReasons = new java.util.ArrayList( + humanLoopActivationReasons.length); + } + for (String value : humanLoopActivationReasons) { + this.humanLoopActivationReasons.add(value); + } + return this; + } + + /** + *

+ * Shows if and why human review was needed. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param humanLoopActivationReasons

+ * Shows if and why human review was needed. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HumanLoopActivationOutput withHumanLoopActivationReasons( + java.util.Collection humanLoopActivationReasons) { + setHumanLoopActivationReasons(humanLoopActivationReasons); + return this; + } + + /** + *

+ * Shows the result of condition evaluations, including those conditions + * which activated a human review. + *

+ *

+ * Constraints:
+ * Length: - 10240
+ * + * @return

+ * Shows the result of condition evaluations, including those + * conditions which activated a human review. + *

+ */ + public String getHumanLoopActivationConditionsEvaluationResults() { + return humanLoopActivationConditionsEvaluationResults; + } + + /** + *

+ * Shows the result of condition evaluations, including those conditions + * which activated a human review. + *

+ *

+ * Constraints:
+ * Length: - 10240
+ * + * @param humanLoopActivationConditionsEvaluationResults

+ * Shows the result of condition evaluations, including those + * conditions which activated a human review. + *

+ */ + public void setHumanLoopActivationConditionsEvaluationResults( + String humanLoopActivationConditionsEvaluationResults) { + this.humanLoopActivationConditionsEvaluationResults = humanLoopActivationConditionsEvaluationResults; + } + + /** + *

+ * Shows the result of condition evaluations, including those conditions + * which activated a human review. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: - 10240
+ * + * @param humanLoopActivationConditionsEvaluationResults

+ * Shows the result of condition evaluations, including those + * conditions which activated a human review. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HumanLoopActivationOutput withHumanLoopActivationConditionsEvaluationResults( + String humanLoopActivationConditionsEvaluationResults) { + this.humanLoopActivationConditionsEvaluationResults = humanLoopActivationConditionsEvaluationResults; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getHumanLoopArn() != null) + sb.append("HumanLoopArn: " + getHumanLoopArn() + ","); + if (getHumanLoopActivationReasons() != null) + sb.append("HumanLoopActivationReasons: " + getHumanLoopActivationReasons() + ","); + if (getHumanLoopActivationConditionsEvaluationResults() != null) + sb.append("HumanLoopActivationConditionsEvaluationResults: " + + getHumanLoopActivationConditionsEvaluationResults()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getHumanLoopArn() == null) ? 0 : getHumanLoopArn().hashCode()); + hashCode = prime + * hashCode + + ((getHumanLoopActivationReasons() == null) ? 0 : getHumanLoopActivationReasons() + .hashCode()); + hashCode = prime + * hashCode + + ((getHumanLoopActivationConditionsEvaluationResults() == null) ? 0 + : getHumanLoopActivationConditionsEvaluationResults().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof HumanLoopActivationOutput == false) + return false; + HumanLoopActivationOutput other = (HumanLoopActivationOutput) obj; + + if (other.getHumanLoopArn() == null ^ this.getHumanLoopArn() == null) + return false; + if (other.getHumanLoopArn() != null + && other.getHumanLoopArn().equals(this.getHumanLoopArn()) == false) + return false; + if (other.getHumanLoopActivationReasons() == null + ^ this.getHumanLoopActivationReasons() == null) + return false; + if (other.getHumanLoopActivationReasons() != null + && other.getHumanLoopActivationReasons().equals( + this.getHumanLoopActivationReasons()) == false) + return false; + if (other.getHumanLoopActivationConditionsEvaluationResults() == null + ^ this.getHumanLoopActivationConditionsEvaluationResults() == null) + return false; + if (other.getHumanLoopActivationConditionsEvaluationResults() != null + && other.getHumanLoopActivationConditionsEvaluationResults().equals( + this.getHumanLoopActivationConditionsEvaluationResults()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/HumanLoopConfig.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/HumanLoopConfig.java new file mode 100644 index 00000000000..982a7e65eee --- /dev/null +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/HumanLoopConfig.java @@ -0,0 +1,282 @@ +/* + * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.textract.model; + +import java.io.Serializable; + +/** + *

+ * Sets up the human review workflow the document will be sent to if one of the + * conditions is met. You can also set certain attributes of the image before + * review. + *

+ */ +public class HumanLoopConfig implements Serializable { + /** + *

+ * The name of the human workflow used for this image. This should be kept + * unique within a region. + *

+ *

+ * Constraints:
+ * Length: 1 - 63
+ * Pattern: ^[a-z0-9](-*[a-z0-9])*
+ */ + private String humanLoopName; + + /** + *

+ * The Amazon Resource Name (ARN) of the flow definition. + *

+ *

+ * Constraints:
+ * Length: - 256
+ */ + private String flowDefinitionArn; + + /** + *

+ * Sets attributes of the input data. + *

+ */ + private HumanLoopDataAttributes dataAttributes; + + /** + *

+ * The name of the human workflow used for this image. This should be kept + * unique within a region. + *

+ *

+ * Constraints:
+ * Length: 1 - 63
+ * Pattern: ^[a-z0-9](-*[a-z0-9])*
+ * + * @return

+ * The name of the human workflow used for this image. This should + * be kept unique within a region. + *

+ */ + public String getHumanLoopName() { + return humanLoopName; + } + + /** + *

+ * The name of the human workflow used for this image. This should be kept + * unique within a region. + *

+ *

+ * Constraints:
+ * Length: 1 - 63
+ * Pattern: ^[a-z0-9](-*[a-z0-9])*
+ * + * @param humanLoopName

+ * The name of the human workflow used for this image. This + * should be kept unique within a region. + *

+ */ + public void setHumanLoopName(String humanLoopName) { + this.humanLoopName = humanLoopName; + } + + /** + *

+ * The name of the human workflow used for this image. This should be kept + * unique within a region. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: 1 - 63
+ * Pattern: ^[a-z0-9](-*[a-z0-9])*
+ * + * @param humanLoopName

+ * The name of the human workflow used for this image. This + * should be kept unique within a region. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HumanLoopConfig withHumanLoopName(String humanLoopName) { + this.humanLoopName = humanLoopName; + return this; + } + + /** + *

+ * The Amazon Resource Name (ARN) of the flow definition. + *

+ *

+ * Constraints:
+ * Length: - 256
+ * + * @return

+ * The Amazon Resource Name (ARN) of the flow definition. + *

+ */ + public String getFlowDefinitionArn() { + return flowDefinitionArn; + } + + /** + *

+ * The Amazon Resource Name (ARN) of the flow definition. + *

+ *

+ * Constraints:
+ * Length: - 256
+ * + * @param flowDefinitionArn

+ * The Amazon Resource Name (ARN) of the flow definition. + *

+ */ + public void setFlowDefinitionArn(String flowDefinitionArn) { + this.flowDefinitionArn = flowDefinitionArn; + } + + /** + *

+ * The Amazon Resource Name (ARN) of the flow definition. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + *

+ * Constraints:
+ * Length: - 256
+ * + * @param flowDefinitionArn

+ * The Amazon Resource Name (ARN) of the flow definition. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HumanLoopConfig withFlowDefinitionArn(String flowDefinitionArn) { + this.flowDefinitionArn = flowDefinitionArn; + return this; + } + + /** + *

+ * Sets attributes of the input data. + *

+ * + * @return

+ * Sets attributes of the input data. + *

+ */ + public HumanLoopDataAttributes getDataAttributes() { + return dataAttributes; + } + + /** + *

+ * Sets attributes of the input data. + *

+ * + * @param dataAttributes

+ * Sets attributes of the input data. + *

+ */ + public void setDataAttributes(HumanLoopDataAttributes dataAttributes) { + this.dataAttributes = dataAttributes; + } + + /** + *

+ * Sets attributes of the input data. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param dataAttributes

+ * Sets attributes of the input data. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HumanLoopConfig withDataAttributes(HumanLoopDataAttributes dataAttributes) { + this.dataAttributes = dataAttributes; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getHumanLoopName() != null) + sb.append("HumanLoopName: " + getHumanLoopName() + ","); + if (getFlowDefinitionArn() != null) + sb.append("FlowDefinitionArn: " + getFlowDefinitionArn() + ","); + if (getDataAttributes() != null) + sb.append("DataAttributes: " + getDataAttributes()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getHumanLoopName() == null) ? 0 : getHumanLoopName().hashCode()); + hashCode = prime * hashCode + + ((getFlowDefinitionArn() == null) ? 0 : getFlowDefinitionArn().hashCode()); + hashCode = prime * hashCode + + ((getDataAttributes() == null) ? 0 : getDataAttributes().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof HumanLoopConfig == false) + return false; + HumanLoopConfig other = (HumanLoopConfig) obj; + + if (other.getHumanLoopName() == null ^ this.getHumanLoopName() == null) + return false; + if (other.getHumanLoopName() != null + && other.getHumanLoopName().equals(this.getHumanLoopName()) == false) + return false; + if (other.getFlowDefinitionArn() == null ^ this.getFlowDefinitionArn() == null) + return false; + if (other.getFlowDefinitionArn() != null + && other.getFlowDefinitionArn().equals(this.getFlowDefinitionArn()) == false) + return false; + if (other.getDataAttributes() == null ^ this.getDataAttributes() == null) + return false; + if (other.getDataAttributes() != null + && other.getDataAttributes().equals(this.getDataAttributes()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/HumanLoopDataAttributes.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/HumanLoopDataAttributes.java new file mode 100644 index 00000000000..75d6f5dcfa0 --- /dev/null +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/HumanLoopDataAttributes.java @@ -0,0 +1,163 @@ +/* + * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.textract.model; + +import java.io.Serializable; + +/** + *

+ * Allows you to set attributes of the image. Currently, you can declare an + * image as free of personally identifiable information and adult content. + *

+ */ +public class HumanLoopDataAttributes implements Serializable { + /** + *

+ * Sets whether the input image is free of personally identifiable + * information or adult content. + *

+ */ + private java.util.List contentClassifiers; + + /** + *

+ * Sets whether the input image is free of personally identifiable + * information or adult content. + *

+ * + * @return

+ * Sets whether the input image is free of personally identifiable + * information or adult content. + *

+ */ + public java.util.List getContentClassifiers() { + return contentClassifiers; + } + + /** + *

+ * Sets whether the input image is free of personally identifiable + * information or adult content. + *

+ * + * @param contentClassifiers

+ * Sets whether the input image is free of personally + * identifiable information or adult content. + *

+ */ + public void setContentClassifiers(java.util.Collection contentClassifiers) { + if (contentClassifiers == null) { + this.contentClassifiers = null; + return; + } + + this.contentClassifiers = new java.util.ArrayList(contentClassifiers); + } + + /** + *

+ * Sets whether the input image is free of personally identifiable + * information or adult content. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param contentClassifiers

+ * Sets whether the input image is free of personally + * identifiable information or adult content. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HumanLoopDataAttributes withContentClassifiers(String... contentClassifiers) { + if (getContentClassifiers() == null) { + this.contentClassifiers = new java.util.ArrayList(contentClassifiers.length); + } + for (String value : contentClassifiers) { + this.contentClassifiers.add(value); + } + return this; + } + + /** + *

+ * Sets whether the input image is free of personally identifiable + * information or adult content. + *

+ *

+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param contentClassifiers

+ * Sets whether the input image is free of personally + * identifiable information or adult content. + *

+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HumanLoopDataAttributes withContentClassifiers( + java.util.Collection contentClassifiers) { + setContentClassifiers(contentClassifiers); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getContentClassifiers() != null) + sb.append("ContentClassifiers: " + getContentClassifiers()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getContentClassifiers() == null) ? 0 : getContentClassifiers().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof HumanLoopDataAttributes == false) + return false; + HumanLoopDataAttributes other = (HumanLoopDataAttributes) obj; + + if (other.getContentClassifiers() == null ^ this.getContentClassifiers() == null) + return false; + if (other.getContentClassifiers() != null + && other.getContentClassifiers().equals(this.getContentClassifiers()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/HumanLoopQuotaExceededException.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/HumanLoopQuotaExceededException.java new file mode 100644 index 00000000000..d07d55d4381 --- /dev/null +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/HumanLoopQuotaExceededException.java @@ -0,0 +1,101 @@ +/* + * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.textract.model; + +import com.amazonaws.AmazonServiceException; + +/** + *

+ * Indicates you have exceeded the maximum number of active human in the loop + * workflows available + *

+ */ +public class HumanLoopQuotaExceededException extends AmazonServiceException { + private static final long serialVersionUID = 1L; + + private String resourceType; + + private String quotaCode; + + private String serviceCode; + + /** + * Constructs a new HumanLoopQuotaExceededException with the specified error + * message. + * + * @param message Describes the error encountered. + */ + public HumanLoopQuotaExceededException(String message) { + super(message); + } + + /** + * Returns the value of the resourceType property for this object. + * + * @return The value of the resourceType property for this object. + */ + public String getResourceType() { + return resourceType; + } + + /** + * Sets the value of resourceType + * + * @param resourceType The new value for the resourceType property for this + * object. + */ + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + /** + * Returns the value of the quotaCode property for this object. + * + * @return The value of the quotaCode property for this object. + */ + public String getQuotaCode() { + return quotaCode; + } + + /** + * Sets the value of quotaCode + * + * @param quotaCode The new value for the quotaCode property for this + * object. + */ + public void setQuotaCode(String quotaCode) { + this.quotaCode = quotaCode; + } + + /** + * Returns the value of the serviceCode property for this object. + * + * @return The value of the serviceCode property for this object. + */ + public String getServiceCode() { + return serviceCode; + } + + /** + * Sets the value of serviceCode + * + * @param serviceCode The new value for the serviceCode property for this + * object. + */ + public void setServiceCode(String serviceCode) { + this.serviceCode = serviceCode; + } +} diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Point.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Point.java index c7f83854bf0..5f892dc0c20 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Point.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Point.java @@ -20,9 +20,10 @@ /** *

* The X and Y coordinates of a point on a document page. The X and Y values - * returned are ratios of the overall document page size. For example, if the - * input document is 700 x 200 and the operation returns X=0.5 and Y=0.25, then - * the point is at the (350,50) pixel coordinate on the document page. + * that are returned are ratios of the overall document page size. For example, + * if the input document is 700 x 200 and the operation returns X=0.5 and + * Y=0.25, then the point is at the (350,50) pixel coordinate on the document + * page. *

*

* An array of Point objects, Polygon, is returned by diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Relationship.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Relationship.java index 78c425b6f5a..a165ee4d9e8 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Relationship.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Relationship.java @@ -33,7 +33,10 @@ public class Relationship implements Serializable { *

* The type of relationship that the blocks in the IDs array have with the * current block. The relationship can be VALUE or - * CHILD. + * CHILD. A relationship of type VALUE is a list that contains + * the ID of the VALUE block that's associated with the KEY of a key-value + * pair. A relationship of type CHILD is a list of IDs that identify WORD + * blocks. *

*

* Constraints:
@@ -53,7 +56,10 @@ public class Relationship implements Serializable { *

* The type of relationship that the blocks in the IDs array have with the * current block. The relationship can be VALUE or - * CHILD. + * CHILD. A relationship of type VALUE is a list that contains + * the ID of the VALUE block that's associated with the KEY of a key-value + * pair. A relationship of type CHILD is a list of IDs that identify WORD + * blocks. *

*

* Constraints:
@@ -62,7 +68,10 @@ public class Relationship implements Serializable { * @return

* The type of relationship that the blocks in the IDs array have * with the current block. The relationship can be - * VALUE or CHILD. + * VALUE or CHILD. A relationship of type + * VALUE is a list that contains the ID of the VALUE block that's + * associated with the KEY of a key-value pair. A relationship of + * type CHILD is a list of IDs that identify WORD blocks. *

* @see RelationshipType */ @@ -74,7 +83,10 @@ public String getType() { *

* The type of relationship that the blocks in the IDs array have with the * current block. The relationship can be VALUE or - * CHILD. + * CHILD. A relationship of type VALUE is a list that contains + * the ID of the VALUE block that's associated with the KEY of a key-value + * pair. A relationship of type CHILD is a list of IDs that identify WORD + * blocks. *

*

* Constraints:
@@ -83,7 +95,11 @@ public String getType() { * @param type

* The type of relationship that the blocks in the IDs array have * with the current block. The relationship can be - * VALUE or CHILD. + * VALUE or CHILD. A relationship of + * type VALUE is a list that contains the ID of the VALUE block + * that's associated with the KEY of a key-value pair. A + * relationship of type CHILD is a list of IDs that identify WORD + * blocks. *

* @see RelationshipType */ @@ -95,7 +111,10 @@ public void setType(String type) { *

* The type of relationship that the blocks in the IDs array have with the * current block. The relationship can be VALUE or - * CHILD. + * CHILD. A relationship of type VALUE is a list that contains + * the ID of the VALUE block that's associated with the KEY of a key-value + * pair. A relationship of type CHILD is a list of IDs that identify WORD + * blocks. *

*

* Returns a reference to this object so that method calls can be chained @@ -107,7 +126,11 @@ public void setType(String type) { * @param type

* The type of relationship that the blocks in the IDs array have * with the current block. The relationship can be - * VALUE or CHILD. + * VALUE or CHILD. A relationship of + * type VALUE is a list that contains the ID of the VALUE block + * that's associated with the KEY of a key-value pair. A + * relationship of type CHILD is a list of IDs that identify WORD + * blocks. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -122,7 +145,10 @@ public Relationship withType(String type) { *

* The type of relationship that the blocks in the IDs array have with the * current block. The relationship can be VALUE or - * CHILD. + * CHILD. A relationship of type VALUE is a list that contains + * the ID of the VALUE block that's associated with the KEY of a key-value + * pair. A relationship of type CHILD is a list of IDs that identify WORD + * blocks. *

*

* Constraints:
@@ -131,7 +157,11 @@ public Relationship withType(String type) { * @param type

* The type of relationship that the blocks in the IDs array have * with the current block. The relationship can be - * VALUE or CHILD. + * VALUE or CHILD. A relationship of + * type VALUE is a list that contains the ID of the VALUE block + * that's associated with the KEY of a key-value pair. A + * relationship of type CHILD is a list of IDs that identify WORD + * blocks. *

* @see RelationshipType */ @@ -143,7 +173,10 @@ public void setType(RelationshipType type) { *

* The type of relationship that the blocks in the IDs array have with the * current block. The relationship can be VALUE or - * CHILD. + * CHILD. A relationship of type VALUE is a list that contains + * the ID of the VALUE block that's associated with the KEY of a key-value + * pair. A relationship of type CHILD is a list of IDs that identify WORD + * blocks. *

*

* Returns a reference to this object so that method calls can be chained @@ -155,7 +188,11 @@ public void setType(RelationshipType type) { * @param type

* The type of relationship that the blocks in the IDs array have * with the current block. The relationship can be - * VALUE or CHILD. + * VALUE or CHILD. A relationship of + * type VALUE is a list that contains the ID of the VALUE block + * that's associated with the KEY of a key-value pair. A + * relationship of type CHILD is a list of IDs that identify WORD + * blocks. *

* @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/S3Object.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/S3Object.java index 070295014c9..b3c10a8d4c1 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/S3Object.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/S3Object.java @@ -44,8 +44,9 @@ public class S3Object implements Serializable { /** *

- * The file name of the input document. It must be an image file (.JPG or - * .PNG format). Asynchronous operations also support PDF files. + * The file name of the input document. Synchronous operations can use image + * files that are in JPEG or PNG format. Asynchronous operations also + * support PDF format files. *

*

* Constraints:
@@ -124,8 +125,9 @@ public S3Object withBucket(String bucket) { /** *

- * The file name of the input document. It must be an image file (.JPG or - * .PNG format). Asynchronous operations also support PDF files. + * The file name of the input document. Synchronous operations can use image + * files that are in JPEG or PNG format. Asynchronous operations also + * support PDF format files. *

*

* Constraints:
@@ -133,9 +135,9 @@ public S3Object withBucket(String bucket) { * Pattern: .*\S.*
* * @return

- * The file name of the input document. It must be an image file - * (.JPG or .PNG format). Asynchronous operations also support PDF - * files. + * The file name of the input document. Synchronous operations can + * use image files that are in JPEG or PNG format. Asynchronous + * operations also support PDF format files. *

*/ public String getName() { @@ -144,8 +146,9 @@ public String getName() { /** *

- * The file name of the input document. It must be an image file (.JPG or - * .PNG format). Asynchronous operations also support PDF files. + * The file name of the input document. Synchronous operations can use image + * files that are in JPEG or PNG format. Asynchronous operations also + * support PDF format files. *

*

* Constraints:
@@ -153,9 +156,9 @@ public String getName() { * Pattern: .*\S.*
* * @param name

- * The file name of the input document. It must be an image file - * (.JPG or .PNG format). Asynchronous operations also support - * PDF files. + * The file name of the input document. Synchronous operations + * can use image files that are in JPEG or PNG format. + * Asynchronous operations also support PDF format files. *

*/ public void setName(String name) { @@ -164,8 +167,9 @@ public void setName(String name) { /** *

- * The file name of the input document. It must be an image file (.JPG or - * .PNG format). Asynchronous operations also support PDF files. + * The file name of the input document. Synchronous operations can use image + * files that are in JPEG or PNG format. Asynchronous operations also + * support PDF format files. *

*

* Returns a reference to this object so that method calls can be chained @@ -176,9 +180,9 @@ public void setName(String name) { * Pattern: .*\S.*
* * @param name

- * The file name of the input document. It must be an image file - * (.JPG or .PNG format). Asynchronous operations also support - * PDF files. + * The file name of the input document. Synchronous operations + * can use image files that are in JPEG or PNG format. + * Asynchronous operations also support PDF format files. *

* @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentAnalysisRequest.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentAnalysisRequest.java index 3f36dc18412..5c528a5ab64 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentAnalysisRequest.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentAnalysisRequest.java @@ -21,12 +21,13 @@ /** *

- * Starts asynchronous analysis of an input document for relationships between - * detected items such as key and value pairs, tables, and selection elements. + * Starts the asynchronous analysis of an input document for relationships + * between detected items such as key-value pairs, tables, and selection + * elements. *

*

* StartDocumentAnalysis can analyze text in documents that are in - * JPG, PNG, and PDF format. The documents are stored in an Amazon S3 bucket. + * JPEG, PNG, and PDF format. The documents are stored in an Amazon S3 bucket. * Use DocumentLocation to specify the bucket name and file name of the * document. *

@@ -59,11 +60,11 @@ public class StartDocumentAnalysisRequest extends AmazonWebServiceRequest implem *

* 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 fields and the associated text. To - * perform both types of analysis, add TABLES and FORMS to - * FeatureTypes. All selectable elements ( - * SELECTION_ELEMENT) that are detected are returned, whatever - * the value of FeatureTypes. + * 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). *

*/ private java.util.List featureTypes; @@ -74,7 +75,9 @@ public class StartDocumentAnalysisRequest extends AmazonWebServiceRequest implem * use the same token with multiple StartDocumentAnalysis * requests, the same JobId is returned. Use * ClientRequestToken to prevent the same job from being - * accidentally started more than once. + * accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations. *

*

* Constraints:
@@ -85,10 +88,10 @@ public class StartDocumentAnalysisRequest extends AmazonWebServiceRequest implem /** *

- * An identifier you specify that's included in the completion notification - * that's published to the Amazon SNS topic. For example, you can use - * JobTag to identify the type of document, such as a tax form - * or a receipt, that the completion notification corresponds to. + * An identifier that you specify that's included in the completion + * notification published to the Amazon SNS topic. For example, you can use + * JobTag to identify the type of document that the completion + * notification corresponds to (such as a tax form or a receipt). *

*

* Constraints:
@@ -154,21 +157,21 @@ public StartDocumentAnalysisRequest withDocumentLocation(DocumentLocation docume *

* 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 fields and the associated text. To - * perform both types of analysis, add TABLES and FORMS to - * FeatureTypes. All selectable elements ( - * SELECTION_ELEMENT) that are detected are returned, whatever - * the value of FeatureTypes. + * 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). *

* * @return

* 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 fields and the - * associated text. To perform both types of analysis, add TABLES - * and FORMS to FeatureTypes. All selectable elements ( - * SELECTION_ELEMENT) that are detected are returned, - * whatever the value of FeatureTypes. + * 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). *

*/ public java.util.List getFeatureTypes() { @@ -179,21 +182,21 @@ public java.util.List 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 fields and the associated text. To - * perform both types of analysis, add TABLES and FORMS to - * FeatureTypes. All selectable elements ( - * SELECTION_ELEMENT) that are detected are returned, whatever - * the value of FeatureTypes. + * 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). *

* * @param 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 fields and - * the associated text. To perform both types of analysis, add - * TABLES and FORMS to FeatureTypes. All selectable - * elements (SELECTION_ELEMENT) that are detected - * are returned, whatever the value of FeatureTypes. + * 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). *

*/ public void setFeatureTypes(java.util.Collection featureTypes) { @@ -209,11 +212,11 @@ public void setFeatureTypes(java.util.Collection 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 fields and the associated text. To - * perform both types of analysis, add TABLES and FORMS to - * FeatureTypes. All selectable elements ( - * SELECTION_ELEMENT) that are detected are returned, whatever - * the value of FeatureTypes. + * 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). *

*

* Returns a reference to this object so that method calls can be chained @@ -222,11 +225,11 @@ public void setFeatureTypes(java.util.Collection featureTypes) { * @param 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 fields and - * the associated text. To perform both types of analysis, add - * TABLES and FORMS to FeatureTypes. All selectable - * elements (SELECTION_ELEMENT) that are detected - * are returned, whatever the value of FeatureTypes. + * 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). *

* @return A reference to this updated object so that method calls can be * chained together. @@ -245,11 +248,11 @@ public StartDocumentAnalysisRequest 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 fields and the associated text. To - * perform both types of analysis, add TABLES and FORMS to - * FeatureTypes. All selectable elements ( - * SELECTION_ELEMENT) that are detected are returned, whatever - * the value of FeatureTypes. + * 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). *

*

* Returns a reference to this object so that method calls can be chained @@ -258,11 +261,11 @@ public StartDocumentAnalysisRequest withFeatureTypes(String... featureTypes) { * @param 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 fields and - * the associated text. To perform both types of analysis, add - * TABLES and FORMS to FeatureTypes. All selectable - * elements (SELECTION_ELEMENT) that are detected - * are returned, whatever the value of FeatureTypes. + * 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). *

* @return A reference to this updated object so that method calls can be * chained together. @@ -278,7 +281,9 @@ public StartDocumentAnalysisRequest withFeatureTypes(java.util.CollectionStartDocumentAnalysis * requests, the same JobId is returned. Use * ClientRequestToken to prevent the same job from being - * accidentally started more than once. + * accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations. *

*

* Constraints:
@@ -291,7 +296,10 @@ public StartDocumentAnalysisRequest withFeatureTypes(java.util.CollectionStartDocumentAnalysis requests, the same * JobId is returned. Use * ClientRequestToken to prevent the same job from - * being accidentally started more than once. + * being accidentally started more than once. For more information, + * see Calling Amazon Textract Asynchronous Operations. *

*/ public String getClientRequestToken() { @@ -304,7 +312,9 @@ public String getClientRequestToken() { * use the same token with multiple StartDocumentAnalysis * requests, the same JobId is returned. Use * ClientRequestToken to prevent the same job from being - * accidentally started more than once. + * accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations. *

*

* Constraints:
@@ -317,7 +327,10 @@ public String getClientRequestToken() { * StartDocumentAnalysis requests, the same * JobId is returned. Use * ClientRequestToken to prevent the same job from - * being accidentally started more than once. + * being accidentally started more than once. For more + * information, see Calling Amazon Textract Asynchronous Operations. *

*/ public void setClientRequestToken(String clientRequestToken) { @@ -330,7 +343,9 @@ public void setClientRequestToken(String clientRequestToken) { * use the same token with multiple StartDocumentAnalysis * requests, the same JobId is returned. Use * ClientRequestToken to prevent the same job from being - * accidentally started more than once. + * accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations. *

*

* Returns a reference to this object so that method calls can be chained @@ -346,7 +361,10 @@ public void setClientRequestToken(String clientRequestToken) { * StartDocumentAnalysis requests, the same * JobId is returned. Use * ClientRequestToken to prevent the same job from - * being accidentally started more than once. + * being accidentally started more than once. For more + * information, see Calling Amazon Textract Asynchronous Operations. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -358,10 +376,10 @@ public StartDocumentAnalysisRequest withClientRequestToken(String clientRequestT /** *

- * An identifier you specify that's included in the completion notification - * that's published to the Amazon SNS topic. For example, you can use - * JobTag to identify the type of document, such as a tax form - * or a receipt, that the completion notification corresponds to. + * An identifier that you specify that's included in the completion + * notification published to the Amazon SNS topic. For example, you can use + * JobTag to identify the type of document that the completion + * notification corresponds to (such as a tax form or a receipt). *

*

* Constraints:
@@ -369,11 +387,11 @@ public StartDocumentAnalysisRequest withClientRequestToken(String clientRequestT * Pattern: [a-zA-Z0-9_.\-:]+
* * @return

- * An identifier you specify that's included in the completion - * notification that's published to the Amazon SNS topic. For - * example, you can use JobTag to identify the type of - * document, such as a tax form or a receipt, that the completion - * notification corresponds to. + * An identifier that you specify that's included in the completion + * notification published to the Amazon SNS topic. For example, you + * can use JobTag to identify the type of document that + * the completion notification corresponds to (such as a tax form or + * a receipt). *

*/ public String getJobTag() { @@ -382,10 +400,10 @@ public String getJobTag() { /** *

- * An identifier you specify that's included in the completion notification - * that's published to the Amazon SNS topic. For example, you can use - * JobTag to identify the type of document, such as a tax form - * or a receipt, that the completion notification corresponds to. + * An identifier that you specify that's included in the completion + * notification published to the Amazon SNS topic. For example, you can use + * JobTag to identify the type of document that the completion + * notification corresponds to (such as a tax form or a receipt). *

*

* Constraints:
@@ -393,11 +411,11 @@ public String getJobTag() { * Pattern: [a-zA-Z0-9_.\-:]+
* * @param jobTag

- * An identifier you specify that's included in the completion - * notification that's published to the Amazon SNS topic. For + * An identifier that you specify that's included in the + * completion notification published to the Amazon SNS topic. For * example, you can use JobTag to identify the type - * of document, such as a tax form or a receipt, that the - * completion notification corresponds to. + * of document that the completion notification corresponds to + * (such as a tax form or a receipt). *

*/ public void setJobTag(String jobTag) { @@ -406,10 +424,10 @@ public void setJobTag(String jobTag) { /** *

- * An identifier you specify that's included in the completion notification - * that's published to the Amazon SNS topic. For example, you can use - * JobTag to identify the type of document, such as a tax form - * or a receipt, that the completion notification corresponds to. + * An identifier that you specify that's included in the completion + * notification published to the Amazon SNS topic. For example, you can use + * JobTag to identify the type of document that the completion + * notification corresponds to (such as a tax form or a receipt). *

*

* Returns a reference to this object so that method calls can be chained @@ -420,11 +438,11 @@ public void setJobTag(String jobTag) { * Pattern: [a-zA-Z0-9_.\-:]+
* * @param jobTag

- * An identifier you specify that's included in the completion - * notification that's published to the Amazon SNS topic. For + * An identifier that you specify that's included in the + * completion notification published to the Amazon SNS topic. For * example, you can use JobTag to identify the type - * of document, such as a tax form or a receipt, that the - * completion notification corresponds to. + * of document that the completion notification corresponds to + * (such as a tax form or a receipt). *

* @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentAnalysisResult.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentAnalysisResult.java index e872726ecf5..ce31c383088 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentAnalysisResult.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentAnalysisResult.java @@ -22,7 +22,8 @@ public class StartDocumentAnalysisResult implements Serializable { *

* The identifier for the document text detection job. Use * JobId to identify the job in a subsequent call to - * GetDocumentAnalysis. + * GetDocumentAnalysis. A JobId value is only + * valid for 7 days. *

*

* Constraints:
@@ -35,7 +36,8 @@ public class StartDocumentAnalysisResult implements Serializable { *

* The identifier for the document text detection job. Use * JobId to identify the job in a subsequent call to - * GetDocumentAnalysis. + * GetDocumentAnalysis. A JobId value is only + * valid for 7 days. *

*

* Constraints:
@@ -45,7 +47,8 @@ public class StartDocumentAnalysisResult implements Serializable { * @return

* The identifier for the document text detection job. Use * JobId to identify the job in a subsequent call to - * GetDocumentAnalysis. + * GetDocumentAnalysis. A JobId value is + * only valid for 7 days. *

*/ public String getJobId() { @@ -56,7 +59,8 @@ public String getJobId() { *

* The identifier for the document text detection job. Use * JobId to identify the job in a subsequent call to - * GetDocumentAnalysis. + * GetDocumentAnalysis. A JobId value is only + * valid for 7 days. *

*

* Constraints:
@@ -66,7 +70,8 @@ public String getJobId() { * @param jobId

* The identifier for the document text detection job. Use * JobId to identify the job in a subsequent call to - * GetDocumentAnalysis. + * GetDocumentAnalysis. A JobId value + * is only valid for 7 days. *

*/ public void setJobId(String jobId) { @@ -77,7 +82,8 @@ public void setJobId(String jobId) { *

* The identifier for the document text detection job. Use * JobId to identify the job in a subsequent call to - * GetDocumentAnalysis. + * GetDocumentAnalysis. A JobId value is only + * valid for 7 days. *

*

* Returns a reference to this object so that method calls can be chained @@ -90,7 +96,8 @@ public void setJobId(String jobId) { * @param jobId

* The identifier for the document text detection job. Use * JobId to identify the job in a subsequent call to - * GetDocumentAnalysis. + * GetDocumentAnalysis. A JobId value + * is only valid for 7 days. *

* @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentTextDetectionRequest.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentTextDetectionRequest.java index c2a392e9470..7245ff83f08 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentTextDetectionRequest.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentTextDetectionRequest.java @@ -26,7 +26,7 @@ *

*

* StartDocumentTextDetection can analyze text in documents that - * are in JPG, PNG, and PDF format. The documents are stored in an Amazon S3 + * are in JPEG, PNG, and PDF format. The documents are stored in an Amazon S3 * bucket. Use DocumentLocation to specify the bucket name and file name * of the document. *

@@ -62,7 +62,9 @@ public class StartDocumentTextDetectionRequest extends AmazonWebServiceRequest i * use the same token with multiple StartDocumentTextDetection * requests, the same JobId is returned. Use * ClientRequestToken to prevent the same job from being - * accidentally started more than once. + * accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations. *

*

* Constraints:
@@ -73,10 +75,10 @@ public class StartDocumentTextDetectionRequest extends AmazonWebServiceRequest i /** *

- * An identifier you specify that's included in the completion notification - * that's published to the Amazon SNS topic. For example, you can use - * JobTag to identify the type of document, such as a tax form - * or a receipt, that the completion notification corresponds to. + * An identifier that you specify that's included in the completion + * notification published to the Amazon SNS topic. For example, you can use + * JobTag to identify the type of document that the completion + * notification corresponds to (such as a tax form or a receipt). *

*

* Constraints:
@@ -144,7 +146,9 @@ public StartDocumentTextDetectionRequest withDocumentLocation(DocumentLocation d * use the same token with multiple StartDocumentTextDetection * requests, the same JobId is returned. Use * ClientRequestToken to prevent the same job from being - * accidentally started more than once. + * accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations. *

*

* Constraints:
@@ -157,7 +161,10 @@ public StartDocumentTextDetectionRequest withDocumentLocation(DocumentLocation d * StartDocumentTextDetection requests, the same * JobId is returned. Use * ClientRequestToken to prevent the same job from - * being accidentally started more than once. + * being accidentally started more than once. For more information, + * see Calling Amazon Textract Asynchronous Operations. *

*/ public String getClientRequestToken() { @@ -170,7 +177,9 @@ public String getClientRequestToken() { * use the same token with multiple StartDocumentTextDetection * requests, the same JobId is returned. Use * ClientRequestToken to prevent the same job from being - * accidentally started more than once. + * accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations. *

*

* Constraints:
@@ -183,7 +192,10 @@ public String getClientRequestToken() { * StartDocumentTextDetection requests, the same * JobId is returned. Use * ClientRequestToken to prevent the same job from - * being accidentally started more than once. + * being accidentally started more than once. For more + * information, see Calling Amazon Textract Asynchronous Operations. *

*/ public void setClientRequestToken(String clientRequestToken) { @@ -196,7 +208,9 @@ public void setClientRequestToken(String clientRequestToken) { * use the same token with multiple StartDocumentTextDetection * requests, the same JobId is returned. Use * ClientRequestToken to prevent the same job from being - * accidentally started more than once. + * accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations. *

*

* Returns a reference to this object so that method calls can be chained @@ -212,7 +226,10 @@ public void setClientRequestToken(String clientRequestToken) { * StartDocumentTextDetection requests, the same * JobId is returned. Use * ClientRequestToken to prevent the same job from - * being accidentally started more than once. + * being accidentally started more than once. For more + * information, see Calling Amazon Textract Asynchronous Operations. *

* @return A reference to this updated object so that method calls can be * chained together. @@ -224,10 +241,10 @@ public StartDocumentTextDetectionRequest withClientRequestToken(String clientReq /** *

- * An identifier you specify that's included in the completion notification - * that's published to the Amazon SNS topic. For example, you can use - * JobTag to identify the type of document, such as a tax form - * or a receipt, that the completion notification corresponds to. + * An identifier that you specify that's included in the completion + * notification published to the Amazon SNS topic. For example, you can use + * JobTag to identify the type of document that the completion + * notification corresponds to (such as a tax form or a receipt). *

*

* Constraints:
@@ -235,11 +252,11 @@ public StartDocumentTextDetectionRequest withClientRequestToken(String clientReq * Pattern: [a-zA-Z0-9_.\-:]+
* * @return

- * An identifier you specify that's included in the completion - * notification that's published to the Amazon SNS topic. For - * example, you can use JobTag to identify the type of - * document, such as a tax form or a receipt, that the completion - * notification corresponds to. + * An identifier that you specify that's included in the completion + * notification published to the Amazon SNS topic. For example, you + * can use JobTag to identify the type of document that + * the completion notification corresponds to (such as a tax form or + * a receipt). *

*/ public String getJobTag() { @@ -248,10 +265,10 @@ public String getJobTag() { /** *

- * An identifier you specify that's included in the completion notification - * that's published to the Amazon SNS topic. For example, you can use - * JobTag to identify the type of document, such as a tax form - * or a receipt, that the completion notification corresponds to. + * An identifier that you specify that's included in the completion + * notification published to the Amazon SNS topic. For example, you can use + * JobTag to identify the type of document that the completion + * notification corresponds to (such as a tax form or a receipt). *

*

* Constraints:
@@ -259,11 +276,11 @@ public String getJobTag() { * Pattern: [a-zA-Z0-9_.\-:]+
* * @param jobTag

- * An identifier you specify that's included in the completion - * notification that's published to the Amazon SNS topic. For + * An identifier that you specify that's included in the + * completion notification published to the Amazon SNS topic. For * example, you can use JobTag to identify the type - * of document, such as a tax form or a receipt, that the - * completion notification corresponds to. + * of document that the completion notification corresponds to + * (such as a tax form or a receipt). *

*/ public void setJobTag(String jobTag) { @@ -272,10 +289,10 @@ public void setJobTag(String jobTag) { /** *

- * An identifier you specify that's included in the completion notification - * that's published to the Amazon SNS topic. For example, you can use - * JobTag to identify the type of document, such as a tax form - * or a receipt, that the completion notification corresponds to. + * An identifier that you specify that's included in the completion + * notification published to the Amazon SNS topic. For example, you can use + * JobTag to identify the type of document that the completion + * notification corresponds to (such as a tax form or a receipt). *

*

* Returns a reference to this object so that method calls can be chained @@ -286,11 +303,11 @@ public void setJobTag(String jobTag) { * Pattern: [a-zA-Z0-9_.\-:]+
* * @param jobTag

- * An identifier you specify that's included in the completion - * notification that's published to the Amazon SNS topic. For + * An identifier that you specify that's included in the + * completion notification published to the Amazon SNS topic. For * example, you can use JobTag to identify the type - * of document, such as a tax form or a receipt, that the - * completion notification corresponds to. + * of document that the completion notification corresponds to + * (such as a tax form or a receipt). *

* @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentTextDetectionResult.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentTextDetectionResult.java index dc0c495a0bb..809e86f26be 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentTextDetectionResult.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/StartDocumentTextDetectionResult.java @@ -20,9 +20,10 @@ public class StartDocumentTextDetectionResult implements Serializable { /** *

- * The identifier for the document text-detection job. Use + * The identifier of the text detection job for the document. Use * JobId to identify the job in a subsequent call to - * GetDocumentTextDetection. + * GetDocumentTextDetection. A JobId value is only + * valid for 7 days. *

*

* Constraints:
@@ -33,9 +34,10 @@ public class StartDocumentTextDetectionResult implements Serializable { /** *

- * The identifier for the document text-detection job. Use + * The identifier of the text detection job for the document. Use * JobId to identify the job in a subsequent call to - * GetDocumentTextDetection. + * GetDocumentTextDetection. A JobId value is only + * valid for 7 days. *

*

* Constraints:
@@ -43,9 +45,10 @@ public class StartDocumentTextDetectionResult implements Serializable { * Pattern: ^[a-zA-Z0-9-_]+$
* * @return

- * The identifier for the document text-detection job. Use + * The identifier of the text detection job for the document. Use * JobId to identify the job in a subsequent call to - * GetDocumentTextDetection. + * GetDocumentTextDetection. A JobId value + * is only valid for 7 days. *

*/ public String getJobId() { @@ -54,9 +57,10 @@ public String getJobId() { /** *

- * The identifier for the document text-detection job. Use + * The identifier of the text detection job for the document. Use * JobId to identify the job in a subsequent call to - * GetDocumentTextDetection. + * GetDocumentTextDetection. A JobId value is only + * valid for 7 days. *

*

* Constraints:
@@ -64,9 +68,10 @@ public String getJobId() { * Pattern: ^[a-zA-Z0-9-_]+$
* * @param jobId

- * The identifier for the document text-detection job. Use + * The identifier of the text detection job for the document. Use * JobId to identify the job in a subsequent call to - * GetDocumentTextDetection. + * GetDocumentTextDetection. A JobId + * value is only valid for 7 days. *

*/ public void setJobId(String jobId) { @@ -75,9 +80,10 @@ public void setJobId(String jobId) { /** *

- * The identifier for the document text-detection job. Use + * The identifier of the text detection job for the document. Use * JobId to identify the job in a subsequent call to - * GetDocumentTextDetection. + * GetDocumentTextDetection. A JobId value is only + * valid for 7 days. *

*

* Returns a reference to this object so that method calls can be chained @@ -88,9 +94,10 @@ public void setJobId(String jobId) { * Pattern: ^[a-zA-Z0-9-_]+$
* * @param jobId

- * The identifier for the document text-detection job. Use + * The identifier of the text detection job for the document. Use * JobId to identify the job in a subsequent call to - * GetDocumentTextDetection. + * GetDocumentTextDetection. A JobId + * value is only valid for 7 days. *

* @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/UnsupportedDocumentException.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/UnsupportedDocumentException.java index 02214dfaba4..4b978934575 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/UnsupportedDocumentException.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/UnsupportedDocumentException.java @@ -19,8 +19,9 @@ /** *

- * The format of the input document isn't supported. Amazon Textract supports - * documents that are .png or .jpg format. + * The format of the input document isn't supported. Documents for synchronous + * operations can be in PNG or JPEG format. Documents for asynchronous + * operations can also be in PDF format. *

*/ public class UnsupportedDocumentException extends AmazonServiceException { diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Warning.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Warning.java index 2784241c4c2..ee30af95e08 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Warning.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Warning.java @@ -20,7 +20,7 @@ /** *

* A warning about an issue that occurred during asynchronous text analysis - * (StartDocumentAnalysis) or asynchronous document-text detection + * (StartDocumentAnalysis) or asynchronous document text detection * (StartDocumentTextDetection). *

*/ diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/AnalyzeDocumentRequestMarshaller.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/AnalyzeDocumentRequestMarshaller.java index 7ff434b8bbe..531dc94dde8 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/AnalyzeDocumentRequestMarshaller.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/AnalyzeDocumentRequestMarshaller.java @@ -75,6 +75,11 @@ public Request marshall(AnalyzeDocumentRequest analyzeDo } jsonWriter.endArray(); } + if (analyzeDocumentRequest.getHumanLoopConfig() != null) { + HumanLoopConfig humanLoopConfig = analyzeDocumentRequest.getHumanLoopConfig(); + jsonWriter.name("HumanLoopConfig"); + HumanLoopConfigJsonMarshaller.getInstance().marshall(humanLoopConfig, jsonWriter); + } jsonWriter.endObject(); jsonWriter.close(); diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/AnalyzeDocumentResultJsonUnmarshaller.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/AnalyzeDocumentResultJsonUnmarshaller.java index 997e5694444..f6826de251f 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/AnalyzeDocumentResultJsonUnmarshaller.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/AnalyzeDocumentResultJsonUnmarshaller.java @@ -42,6 +42,15 @@ public AnalyzeDocumentResult unmarshall(JsonUnmarshallerContext context) throws .getInstance() ) .unmarshall(context)); + } else if (name.equals("HumanLoopActivationOutput")) { + analyzeDocumentResult + .setHumanLoopActivationOutput(HumanLoopActivationOutputJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("AnalyzeDocumentModelVersion")) { + analyzeDocumentResult.setAnalyzeDocumentModelVersion(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/DetectDocumentTextResultJsonUnmarshaller.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/DetectDocumentTextResultJsonUnmarshaller.java index 54a51f9c334..34c495c4ce4 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/DetectDocumentTextResultJsonUnmarshaller.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/DetectDocumentTextResultJsonUnmarshaller.java @@ -42,6 +42,10 @@ public DetectDocumentTextResult unmarshall(JsonUnmarshallerContext context) thro BlockJsonUnmarshaller.getInstance() ) .unmarshall(context)); + } else if (name.equals("DetectDocumentTextModelVersion")) { + detectDocumentTextResult.setDetectDocumentTextModelVersion(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/GetDocumentAnalysisResultJsonUnmarshaller.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/GetDocumentAnalysisResultJsonUnmarshaller.java index 4ef21eb99ab..8a436baa1ac 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/GetDocumentAnalysisResultJsonUnmarshaller.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/GetDocumentAnalysisResultJsonUnmarshaller.java @@ -56,6 +56,10 @@ public GetDocumentAnalysisResult unmarshall(JsonUnmarshallerContext context) thr } else if (name.equals("StatusMessage")) { getDocumentAnalysisResult.setStatusMessage(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("AnalyzeDocumentModelVersion")) { + getDocumentAnalysisResult.setAnalyzeDocumentModelVersion(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/GetDocumentTextDetectionResultJsonUnmarshaller.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/GetDocumentTextDetectionResultJsonUnmarshaller.java index a0009bdbab9..92c34e3ebc3 100644 --- a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/GetDocumentTextDetectionResultJsonUnmarshaller.java +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/GetDocumentTextDetectionResultJsonUnmarshaller.java @@ -58,6 +58,10 @@ public GetDocumentTextDetectionResult unmarshall(JsonUnmarshallerContext context getDocumentTextDetectionResult.setStatusMessage(StringJsonUnmarshaller .getInstance() .unmarshall(context)); + } else if (name.equals("DetectDocumentTextModelVersion")) { + getDocumentTextDetectionResult + .setDetectDocumentTextModelVersion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopActivationOutputJsonMarshaller.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopActivationOutputJsonMarshaller.java new file mode 100644 index 00000000000..23668e69911 --- /dev/null +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopActivationOutputJsonMarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.textract.model.transform; + +import com.amazonaws.services.textract.model.*; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO HumanLoopActivationOutput + */ +class HumanLoopActivationOutputJsonMarshaller { + + public void marshall(HumanLoopActivationOutput humanLoopActivationOutput, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (humanLoopActivationOutput.getHumanLoopArn() != null) { + String humanLoopArn = humanLoopActivationOutput.getHumanLoopArn(); + jsonWriter.name("HumanLoopArn"); + jsonWriter.value(humanLoopArn); + } + if (humanLoopActivationOutput.getHumanLoopActivationReasons() != null) { + java.util.List humanLoopActivationReasons = humanLoopActivationOutput + .getHumanLoopActivationReasons(); + jsonWriter.name("HumanLoopActivationReasons"); + jsonWriter.beginArray(); + for (String humanLoopActivationReasonsItem : humanLoopActivationReasons) { + if (humanLoopActivationReasonsItem != null) { + jsonWriter.value(humanLoopActivationReasonsItem); + } + } + jsonWriter.endArray(); + } + if (humanLoopActivationOutput.getHumanLoopActivationConditionsEvaluationResults() != null) { + String humanLoopActivationConditionsEvaluationResults = humanLoopActivationOutput + .getHumanLoopActivationConditionsEvaluationResults(); + jsonWriter.name("HumanLoopActivationConditionsEvaluationResults"); + jsonWriter.value(humanLoopActivationConditionsEvaluationResults); + } + jsonWriter.endObject(); + } + + private static HumanLoopActivationOutputJsonMarshaller instance; + + public static HumanLoopActivationOutputJsonMarshaller getInstance() { + if (instance == null) + instance = new HumanLoopActivationOutputJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopActivationOutputJsonUnmarshaller.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopActivationOutputJsonUnmarshaller.java new file mode 100644 index 00000000000..ce9caa288bc --- /dev/null +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopActivationOutputJsonUnmarshaller.java @@ -0,0 +1,68 @@ +/* + * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.textract.model.transform; + +import com.amazonaws.services.textract.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO HumanLoopActivationOutput + */ +class HumanLoopActivationOutputJsonUnmarshaller implements + Unmarshaller { + + public HumanLoopActivationOutput unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + HumanLoopActivationOutput humanLoopActivationOutput = new HumanLoopActivationOutput(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("HumanLoopArn")) { + humanLoopActivationOutput.setHumanLoopArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("HumanLoopActivationReasons")) { + humanLoopActivationOutput + .setHumanLoopActivationReasons(new ListUnmarshaller( + StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("HumanLoopActivationConditionsEvaluationResults")) { + humanLoopActivationOutput + .setHumanLoopActivationConditionsEvaluationResults(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return humanLoopActivationOutput; + } + + private static HumanLoopActivationOutputJsonUnmarshaller instance; + + public static HumanLoopActivationOutputJsonUnmarshaller getInstance() { + if (instance == null) + instance = new HumanLoopActivationOutputJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopConfigJsonMarshaller.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopConfigJsonMarshaller.java new file mode 100644 index 00000000000..46473523ed5 --- /dev/null +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopConfigJsonMarshaller.java @@ -0,0 +1,55 @@ +/* + * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.textract.model.transform; + +import com.amazonaws.services.textract.model.*; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO HumanLoopConfig + */ +class HumanLoopConfigJsonMarshaller { + + public void marshall(HumanLoopConfig humanLoopConfig, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (humanLoopConfig.getHumanLoopName() != null) { + String humanLoopName = humanLoopConfig.getHumanLoopName(); + jsonWriter.name("HumanLoopName"); + jsonWriter.value(humanLoopName); + } + if (humanLoopConfig.getFlowDefinitionArn() != null) { + String flowDefinitionArn = humanLoopConfig.getFlowDefinitionArn(); + jsonWriter.name("FlowDefinitionArn"); + jsonWriter.value(flowDefinitionArn); + } + if (humanLoopConfig.getDataAttributes() != null) { + HumanLoopDataAttributes dataAttributes = humanLoopConfig.getDataAttributes(); + jsonWriter.name("DataAttributes"); + HumanLoopDataAttributesJsonMarshaller.getInstance() + .marshall(dataAttributes, jsonWriter); + } + jsonWriter.endObject(); + } + + private static HumanLoopConfigJsonMarshaller instance; + + public static HumanLoopConfigJsonMarshaller getInstance() { + if (instance == null) + instance = new HumanLoopConfigJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopConfigJsonUnmarshaller.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopConfigJsonUnmarshaller.java new file mode 100644 index 00000000000..4f031b73639 --- /dev/null +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopConfigJsonUnmarshaller.java @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.textract.model.transform; + +import com.amazonaws.services.textract.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO HumanLoopConfig + */ +class HumanLoopConfigJsonUnmarshaller implements + Unmarshaller { + + public HumanLoopConfig unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + HumanLoopConfig humanLoopConfig = new HumanLoopConfig(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("HumanLoopName")) { + humanLoopConfig.setHumanLoopName(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FlowDefinitionArn")) { + humanLoopConfig.setFlowDefinitionArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("DataAttributes")) { + humanLoopConfig.setDataAttributes(HumanLoopDataAttributesJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return humanLoopConfig; + } + + private static HumanLoopConfigJsonUnmarshaller instance; + + public static HumanLoopConfigJsonUnmarshaller getInstance() { + if (instance == null) + instance = new HumanLoopConfigJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopDataAttributesJsonMarshaller.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopDataAttributesJsonMarshaller.java new file mode 100644 index 00000000000..d44461c99b3 --- /dev/null +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopDataAttributesJsonMarshaller.java @@ -0,0 +1,51 @@ +/* + * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.textract.model.transform; + +import com.amazonaws.services.textract.model.*; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO HumanLoopDataAttributes + */ +class HumanLoopDataAttributesJsonMarshaller { + + public void marshall(HumanLoopDataAttributes humanLoopDataAttributes, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (humanLoopDataAttributes.getContentClassifiers() != null) { + java.util.List contentClassifiers = humanLoopDataAttributes + .getContentClassifiers(); + jsonWriter.name("ContentClassifiers"); + jsonWriter.beginArray(); + for (String contentClassifiersItem : contentClassifiers) { + if (contentClassifiersItem != null) { + jsonWriter.value(contentClassifiersItem); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static HumanLoopDataAttributesJsonMarshaller instance; + + public static HumanLoopDataAttributesJsonMarshaller getInstance() { + if (instance == null) + instance = new HumanLoopDataAttributesJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopDataAttributesJsonUnmarshaller.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopDataAttributesJsonUnmarshaller.java new file mode 100644 index 00000000000..920e9fcb503 --- /dev/null +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopDataAttributesJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.textract.model.transform; + +import com.amazonaws.services.textract.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO HumanLoopDataAttributes + */ +class HumanLoopDataAttributesJsonUnmarshaller implements + Unmarshaller { + + public HumanLoopDataAttributes unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + HumanLoopDataAttributes humanLoopDataAttributes = new HumanLoopDataAttributes(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("ContentClassifiers")) { + humanLoopDataAttributes.setContentClassifiers(new ListUnmarshaller( + StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return humanLoopDataAttributes; + } + + private static HumanLoopDataAttributesJsonUnmarshaller instance; + + public static HumanLoopDataAttributesJsonUnmarshaller getInstance() { + if (instance == null) + instance = new HumanLoopDataAttributesJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopQuotaExceededExceptionUnmarshaller.java b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopQuotaExceededExceptionUnmarshaller.java new file mode 100644 index 00000000000..2b012110d1b --- /dev/null +++ b/aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/transform/HumanLoopQuotaExceededExceptionUnmarshaller.java @@ -0,0 +1,48 @@ +/* + * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.textract.model.transform; + +import com.amazonaws.AmazonServiceException; +import com.amazonaws.http.JsonErrorResponseHandler.JsonErrorResponse; +import com.amazonaws.transform.JsonErrorUnmarshaller; +import com.amazonaws.services.textract.model.HumanLoopQuotaExceededException; + +public class HumanLoopQuotaExceededExceptionUnmarshaller extends JsonErrorUnmarshaller { + + public HumanLoopQuotaExceededExceptionUnmarshaller() { + super(HumanLoopQuotaExceededException.class); + } + + @Override + public boolean match(JsonErrorResponse error) throws Exception { + return error.getErrorCode().equals("HumanLoopQuotaExceededException"); + } + + @Override + public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { + + HumanLoopQuotaExceededException e = (HumanLoopQuotaExceededException) super + .unmarshall(error); + e.setErrorCode("HumanLoopQuotaExceededException"); + e.setResourceType(String.valueOf(error.get("ResourceType"))); + + e.setQuotaCode(String.valueOf(error.get("QuotaCode"))); + + e.setServiceCode(String.valueOf(error.get("ServiceCode"))); + + return e; + } +}