Skip to content

Commit 0368093

Browse files
feat(aws-android-sdk-textract): update models to latest (#2128)
Co-authored-by: Rafael Juliano <[email protected]>
1 parent 240f303 commit 0368093

37 files changed

+648
-62
lines changed

aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextract.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ DetectDocumentTextResult detectDocumentText(DetectDocumentTextRequest detectDocu
296296
* @throws InvalidJobIdException
297297
* @throws InternalServerErrorException
298298
* @throws ThrottlingException
299+
* @throws InvalidS3ObjectException
299300
* @throws AmazonClientException If any internal errors are encountered
300301
* inside the client while attempting to make the request or
301302
* handle the response. For example if a network connection is
@@ -365,6 +366,7 @@ GetDocumentAnalysisResult getDocumentAnalysis(
365366
* @throws InvalidJobIdException
366367
* @throws InternalServerErrorException
367368
* @throws ThrottlingException
369+
* @throws InvalidS3ObjectException
368370
* @throws AmazonClientException If any internal errors are encountered
369371
* inside the client while attempting to make the request or
370372
* handle the response. For example if a network connection is

aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractAsync.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ Future<DetectDocumentTextResult> detectDocumentTextAsync(
383383
* @throws InvalidJobIdException
384384
* @throws InternalServerErrorException
385385
* @throws ThrottlingException
386+
* @throws InvalidS3ObjectException
386387
* @throws AmazonClientException If any internal errors are encountered
387388
* inside the client while attempting to make the request or
388389
* handle the response. For example if a network connection is
@@ -480,6 +481,7 @@ Future<GetDocumentAnalysisResult> getDocumentAnalysisAsync(
480481
* @throws InvalidJobIdException
481482
* @throws InternalServerErrorException
482483
* @throws ThrottlingException
484+
* @throws InvalidS3ObjectException
483485
* @throws AmazonClientException If any internal errors are encountered
484486
* inside the client while attempting to make the request or
485487
* handle the response. For example if a network connection is
@@ -550,6 +552,7 @@ Future<GetDocumentAnalysisResult> getDocumentAnalysisAsync(
550552
* @throws InvalidJobIdException
551553
* @throws InternalServerErrorException
552554
* @throws ThrottlingException
555+
* @throws InvalidS3ObjectException
553556
* @throws AmazonClientException If any internal errors are encountered
554557
* inside the client while attempting to make the request or
555558
* handle the response. For example if a network connection is
@@ -623,6 +626,7 @@ Future<GetDocumentTextDetectionResult> getDocumentTextDetectionAsync(
623626
* @throws InvalidJobIdException
624627
* @throws InternalServerErrorException
625628
* @throws ThrottlingException
629+
* @throws InvalidS3ObjectException
626630
* @throws AmazonClientException If any internal errors are encountered
627631
* inside the client while attempting to make the request or
628632
* handle the response. For example if a network connection is

aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractAsyncClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ public DetectDocumentTextResult call() throws Exception {
642642
* @throws InvalidJobIdException
643643
* @throws InternalServerErrorException
644644
* @throws ThrottlingException
645+
* @throws InvalidS3ObjectException
645646
* @throws AmazonClientException If any internal errors are encountered
646647
* inside the client while attempting to make the request or
647648
* handle the response. For example if a network connection is
@@ -741,6 +742,7 @@ public GetDocumentAnalysisResult call() throws Exception {
741742
* @throws InvalidJobIdException
742743
* @throws InternalServerErrorException
743744
* @throws ThrottlingException
745+
* @throws InvalidS3ObjectException
744746
* @throws AmazonClientException If any internal errors are encountered
745747
* inside the client while attempting to make the request or
746748
* handle the response. For example if a network connection is
@@ -825,6 +827,7 @@ public GetDocumentAnalysisResult call() throws Exception {
825827
* @throws InvalidJobIdException
826828
* @throws InternalServerErrorException
827829
* @throws ThrottlingException
830+
* @throws InvalidS3ObjectException
828831
* @throws AmazonClientException If any internal errors are encountered
829832
* inside the client while attempting to make the request or
830833
* handle the response. For example if a network connection is
@@ -900,6 +903,7 @@ public GetDocumentTextDetectionResult call() throws Exception {
900903
* @throws InvalidJobIdException
901904
* @throws InternalServerErrorException
902905
* @throws ThrottlingException
906+
* @throws InvalidS3ObjectException
903907
* @throws AmazonClientException If any internal errors are encountered
904908
* inside the client while attempting to make the request or
905909
* handle the response. For example if a network connection is

aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/AmazonTextractClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ public DetectDocumentTextResult detectDocumentText(
620620
* @throws InvalidJobIdException
621621
* @throws InternalServerErrorException
622622
* @throws ThrottlingException
623+
* @throws InvalidS3ObjectException
623624
* @throws AmazonClientException If any internal errors are encountered
624625
* inside the client while attempting to make the request or
625626
* handle the response. For example if a network connection is
@@ -716,6 +717,7 @@ public GetDocumentAnalysisResult getDocumentAnalysis(
716717
* @throws InvalidJobIdException
717718
* @throws InternalServerErrorException
718719
* @throws ThrottlingException
720+
* @throws InvalidS3ObjectException
719721
* @throws AmazonClientException If any internal errors are encountered
720722
* inside the client while attempting to make the request or
721723
* handle the response. For example if a network connection is

aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/AccessDeniedException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919

2020
/**
2121
* <p>
22-
* You aren't authorized to perform the action.
22+
* You aren't authorized to perform the action. Use the Amazon Resource Name
23+
* (ARN) of an authorized user or IAM role to perform the operation.
2324
* </p>
2425
*/
2526
public class AccessDeniedException extends AmazonServiceException {

aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/BadDocumentException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919

2020
/**
2121
* <p>
22-
* Amazon Textract isn't able to read the document.
22+
* Amazon Textract isn't able to read the document. For more information on the
23+
* document limits in Amazon Textract, see <a>limits</a>.
2324
* </p>
2425
*/
2526
public class BadDocumentException extends AmazonServiceException {

aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentAnalysisResult.java

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ public class GetDocumentAnalysisResult implements Serializable {
6666

6767
/**
6868
* <p>
69-
* The current status of an asynchronous document-analysis operation.
69+
* Returns if the detection job could not be completed. Contains explanation
70+
* for what error occured.
7071
* </p>
7172
*/
7273
private String statusMessage;
@@ -453,12 +454,13 @@ public GetDocumentAnalysisResult withWarnings(java.util.Collection<Warning> warn
453454

454455
/**
455456
* <p>
456-
* The current status of an asynchronous document-analysis operation.
457+
* Returns if the detection job could not be completed. Contains explanation
458+
* for what error occured.
457459
* </p>
458460
*
459461
* @return <p>
460-
* The current status of an asynchronous document-analysis
461-
* operation.
462+
* Returns if the detection job could not be completed. Contains
463+
* explanation for what error occured.
462464
* </p>
463465
*/
464466
public String getStatusMessage() {
@@ -467,12 +469,13 @@ public String getStatusMessage() {
467469

468470
/**
469471
* <p>
470-
* The current status of an asynchronous document-analysis operation.
472+
* Returns if the detection job could not be completed. Contains explanation
473+
* for what error occured.
471474
* </p>
472475
*
473476
* @param statusMessage <p>
474-
* The current status of an asynchronous document-analysis
475-
* operation.
477+
* Returns if the detection job could not be completed. Contains
478+
* explanation for what error occured.
476479
* </p>
477480
*/
478481
public void setStatusMessage(String statusMessage) {
@@ -481,15 +484,16 @@ public void setStatusMessage(String statusMessage) {
481484

482485
/**
483486
* <p>
484-
* The current status of an asynchronous document-analysis operation.
487+
* Returns if the detection job could not be completed. Contains explanation
488+
* for what error occured.
485489
* </p>
486490
* <p>
487491
* Returns a reference to this object so that method calls can be chained
488492
* together.
489493
*
490494
* @param statusMessage <p>
491-
* The current status of an asynchronous document-analysis
492-
* operation.
495+
* Returns if the detection job could not be completed. Contains
496+
* explanation for what error occured.
493497
* </p>
494498
* @return A reference to this updated object so that method calls can be
495499
* chained together.

aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/GetDocumentTextDetectionResult.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public class GetDocumentTextDetectionResult implements Serializable {
6767

6868
/**
6969
* <p>
70-
* The current status of an asynchronous text-detection operation for the
71-
* document.
70+
* Returns if the detection job could not be completed. Contains explanation
71+
* for what error occured.
7272
* </p>
7373
*/
7474
private String statusMessage;
@@ -459,13 +459,13 @@ public GetDocumentTextDetectionResult withWarnings(java.util.Collection<Warning>
459459

460460
/**
461461
* <p>
462-
* The current status of an asynchronous text-detection operation for the
463-
* document.
462+
* Returns if the detection job could not be completed. Contains explanation
463+
* for what error occured.
464464
* </p>
465465
*
466466
* @return <p>
467-
* The current status of an asynchronous text-detection operation
468-
* for the document.
467+
* Returns if the detection job could not be completed. Contains
468+
* explanation for what error occured.
469469
* </p>
470470
*/
471471
public String getStatusMessage() {
@@ -474,13 +474,13 @@ public String getStatusMessage() {
474474

475475
/**
476476
* <p>
477-
* The current status of an asynchronous text-detection operation for the
478-
* document.
477+
* Returns if the detection job could not be completed. Contains explanation
478+
* for what error occured.
479479
* </p>
480480
*
481481
* @param statusMessage <p>
482-
* The current status of an asynchronous text-detection operation
483-
* for the document.
482+
* Returns if the detection job could not be completed. Contains
483+
* explanation for what error occured.
484484
* </p>
485485
*/
486486
public void setStatusMessage(String statusMessage) {
@@ -489,16 +489,16 @@ public void setStatusMessage(String statusMessage) {
489489

490490
/**
491491
* <p>
492-
* The current status of an asynchronous text-detection operation for the
493-
* document.
492+
* Returns if the detection job could not be completed. Contains explanation
493+
* for what error occured.
494494
* </p>
495495
* <p>
496496
* Returns a reference to this object so that method calls can be chained
497497
* together.
498498
*
499499
* @param statusMessage <p>
500-
* The current status of an asynchronous text-detection operation
501-
* for the document.
500+
* Returns if the detection job could not be completed. Contains
501+
* explanation for what error occured.
502502
* </p>
503503
* @return A reference to this updated object so that method calls can be
504504
* chained together.

aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/HumanLoopQuotaExceededException.java

Lines changed: 51 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,25 @@
2626
public class HumanLoopQuotaExceededException extends AmazonServiceException {
2727
private static final long serialVersionUID = 1L;
2828

29+
/**
30+
* <p>
31+
* The resource type.
32+
* </p>
33+
*/
2934
private String resourceType;
3035

36+
/**
37+
* <p>
38+
* The quota code.
39+
* </p>
40+
*/
3141
private String quotaCode;
3242

43+
/**
44+
* <p>
45+
* The service code.
46+
* </p>
47+
*/
3348
private String serviceCode;
3449

3550
/**
@@ -43,57 +58,78 @@ public HumanLoopQuotaExceededException(String message) {
4358
}
4459

4560
/**
46-
* Returns the value of the resourceType property for this object.
61+
* <p>
62+
* The resource type.
63+
* </p>
4764
*
48-
* @return The value of the resourceType property for this object.
65+
* @return <p>
66+
* The resource type.
67+
* </p>
4968
*/
5069
public String getResourceType() {
5170
return resourceType;
5271
}
5372

5473
/**
55-
* Sets the value of resourceType
74+
* <p>
75+
* The resource type.
76+
* </p>
5677
*
57-
* @param resourceType The new value for the resourceType property for this
58-
* object.
78+
* @param resourceType <p>
79+
* The resource type.
80+
* </p>
5981
*/
6082
public void setResourceType(String resourceType) {
6183
this.resourceType = resourceType;
6284
}
6385

6486
/**
65-
* Returns the value of the quotaCode property for this object.
87+
* <p>
88+
* The quota code.
89+
* </p>
6690
*
67-
* @return The value of the quotaCode property for this object.
91+
* @return <p>
92+
* The quota code.
93+
* </p>
6894
*/
6995
public String getQuotaCode() {
7096
return quotaCode;
7197
}
7298

7399
/**
74-
* Sets the value of quotaCode
100+
* <p>
101+
* The quota code.
102+
* </p>
75103
*
76-
* @param quotaCode The new value for the quotaCode property for this
77-
* object.
104+
* @param quotaCode <p>
105+
* The quota code.
106+
* </p>
78107
*/
79108
public void setQuotaCode(String quotaCode) {
80109
this.quotaCode = quotaCode;
81110
}
82111

83112
/**
84-
* Returns the value of the serviceCode property for this object.
113+
* <p>
114+
* The service code.
115+
* </p>
85116
*
86-
* @return The value of the serviceCode property for this object.
117+
* @return <p>
118+
* The service code.
119+
* </p>
87120
*/
88121
public String getServiceCode() {
89122
return serviceCode;
90123
}
91124

92125
/**
93-
* Sets the value of serviceCode
126+
* <p>
127+
* The service code.
128+
* </p>
94129
*
95-
* @param serviceCode The new value for the serviceCode property for this
96-
* object.
130+
* @param serviceCode <p>
131+
* The service code.
132+
* </p>
97133
*/
98134
public void setServiceCode(String serviceCode) {
99135
this.serviceCode = serviceCode;

aws-android-sdk-textract/src/main/java/com/amazonaws/services/textract/model/InvalidS3ObjectException.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020
/**
2121
* <p>
2222
* Amazon Textract is unable to access the S3 object that's specified in the
23-
* request.
23+
* request. for more information, <a href=
24+
* "https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html"
25+
* >Configure Access to Amazon S3</a> For troubleshooting information, see <a
26+
* href="https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html">
27+
* Troubleshooting Amazon S3</a>
2428
* </p>
2529
*/
2630
public class InvalidS3ObjectException extends AmazonServiceException {

0 commit comments

Comments
 (0)