Skip to content

Commit 2544e61

Browse files
feat(aws-android-sdk-comprehend): update models to latest (#2642)
Co-authored-by: Erica Eaton <[email protected]>
1 parent e8ca33f commit 2544e61

File tree

74 files changed

+4785
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+4785
-98
lines changed

aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehend.java

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,31 @@ ListDocumentClassificationJobsResult listDocumentClassificationJobs(
927927
ListDocumentClassificationJobsRequest listDocumentClassificationJobsRequest)
928928
throws AmazonClientException, AmazonServiceException;
929929

930+
/**
931+
* <p>
932+
* Gets a list of summaries of the document classifiers that you have
933+
* created
934+
* </p>
935+
*
936+
* @param listDocumentClassifierSummariesRequest
937+
* @return listDocumentClassifierSummariesResult The response from the
938+
* ListDocumentClassifierSummaries service method, as returned by
939+
* Amazon Comprehend.
940+
* @throws InvalidRequestException
941+
* @throws TooManyRequestsException
942+
* @throws InternalServerException
943+
* @throws AmazonClientException If any internal errors are encountered
944+
* inside the client while attempting to make the request or
945+
* handle the response. For example if a network connection is
946+
* not available.
947+
* @throws AmazonServiceException If an error response is returned by Amazon
948+
* Comprehend indicating either a problem with the data in the
949+
* request, or a server side issue.
950+
*/
951+
ListDocumentClassifierSummariesResult listDocumentClassifierSummaries(
952+
ListDocumentClassifierSummariesRequest listDocumentClassifierSummariesRequest)
953+
throws AmazonClientException, AmazonServiceException;
954+
930955
/**
931956
* <p>
932957
* Gets a list of the document classifiers that you have created.
@@ -1025,6 +1050,31 @@ ListEntitiesDetectionJobsResult listEntitiesDetectionJobs(
10251050
ListEntitiesDetectionJobsRequest listEntitiesDetectionJobsRequest)
10261051
throws AmazonClientException, AmazonServiceException;
10271052

1053+
/**
1054+
* <p>
1055+
* Gets a list of summaries for the entity recognizers that you have
1056+
* created.
1057+
* </p>
1058+
*
1059+
* @param listEntityRecognizerSummariesRequest
1060+
* @return listEntityRecognizerSummariesResult The response from the
1061+
* ListEntityRecognizerSummaries service method, as returned by
1062+
* Amazon Comprehend.
1063+
* @throws InvalidRequestException
1064+
* @throws TooManyRequestsException
1065+
* @throws InternalServerException
1066+
* @throws AmazonClientException If any internal errors are encountered
1067+
* inside the client while attempting to make the request or
1068+
* handle the response. For example if a network connection is
1069+
* not available.
1070+
* @throws AmazonServiceException If an error response is returned by Amazon
1071+
* Comprehend indicating either a problem with the data in the
1072+
* request, or a server side issue.
1073+
*/
1074+
ListEntityRecognizerSummariesResult listEntityRecognizerSummaries(
1075+
ListEntityRecognizerSummariesRequest listEntityRecognizerSummariesRequest)
1076+
throws AmazonClientException, AmazonServiceException;
1077+
10281078
/**
10291079
* <p>
10301080
* Gets a list of the properties of all entity recognizers that you created,

aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehendAsync.java

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,6 +1886,61 @@ Future<ListDocumentClassificationJobsResult> listDocumentClassificationJobsAsync
18861886
AsyncHandler<ListDocumentClassificationJobsRequest, ListDocumentClassificationJobsResult> asyncHandler)
18871887
throws AmazonServiceException, AmazonClientException;
18881888

1889+
/**
1890+
* <p>
1891+
* Gets a list of summaries of the document classifiers that you have
1892+
* created
1893+
* </p>
1894+
*
1895+
* @param listDocumentClassifierSummariesRequest
1896+
* @return A Java Future object containing the response from the
1897+
* ListDocumentClassifierSummaries service method, as returned by
1898+
* Amazon Comprehend.
1899+
* @throws InvalidRequestException
1900+
* @throws TooManyRequestsException
1901+
* @throws InternalServerException
1902+
* @throws AmazonClientException If any internal errors are encountered
1903+
* inside the client while attempting to make the request or
1904+
* handle the response. For example if a network connection is
1905+
* not available.
1906+
* @throws AmazonServiceException If an error response is returned by Amazon
1907+
* Comprehend indicating either a problem with the data in the
1908+
* request, or a server side issue.
1909+
*/
1910+
Future<ListDocumentClassifierSummariesResult> listDocumentClassifierSummariesAsync(
1911+
ListDocumentClassifierSummariesRequest listDocumentClassifierSummariesRequest)
1912+
throws AmazonServiceException, AmazonClientException;
1913+
1914+
/**
1915+
* <p>
1916+
* Gets a list of summaries of the document classifiers that you have
1917+
* created
1918+
* </p>
1919+
*
1920+
* @param listDocumentClassifierSummariesRequest
1921+
* @param asyncHandler Asynchronous callback handler for events in the
1922+
* life-cycle of the request. Users could provide the
1923+
* implementation of the four callback methods in this interface
1924+
* to process the operation result or handle the exception.
1925+
* @return A Java Future object containing the response from the
1926+
* ListDocumentClassifierSummaries service method, as returned by
1927+
* Amazon Comprehend.
1928+
* @throws InvalidRequestException
1929+
* @throws TooManyRequestsException
1930+
* @throws InternalServerException
1931+
* @throws AmazonClientException If any internal errors are encountered
1932+
* inside the client while attempting to make the request or
1933+
* handle the response. For example if a network connection is
1934+
* not available.
1935+
* @throws AmazonServiceException If an error response is returned by Amazon
1936+
* Comprehend indicating either a problem with the data in the
1937+
* request, or a server side issue.
1938+
*/
1939+
Future<ListDocumentClassifierSummariesResult> listDocumentClassifierSummariesAsync(
1940+
ListDocumentClassifierSummariesRequest listDocumentClassifierSummariesRequest,
1941+
AsyncHandler<ListDocumentClassifierSummariesRequest, ListDocumentClassifierSummariesResult> asyncHandler)
1942+
throws AmazonServiceException, AmazonClientException;
1943+
18891944
/**
18901945
* <p>
18911946
* Gets a list of the document classifiers that you have created.
@@ -2102,6 +2157,61 @@ Future<ListEntitiesDetectionJobsResult> listEntitiesDetectionJobsAsync(
21022157
AsyncHandler<ListEntitiesDetectionJobsRequest, ListEntitiesDetectionJobsResult> asyncHandler)
21032158
throws AmazonServiceException, AmazonClientException;
21042159

2160+
/**
2161+
* <p>
2162+
* Gets a list of summaries for the entity recognizers that you have
2163+
* created.
2164+
* </p>
2165+
*
2166+
* @param listEntityRecognizerSummariesRequest
2167+
* @return A Java Future object containing the response from the
2168+
* ListEntityRecognizerSummaries service method, as returned by
2169+
* Amazon Comprehend.
2170+
* @throws InvalidRequestException
2171+
* @throws TooManyRequestsException
2172+
* @throws InternalServerException
2173+
* @throws AmazonClientException If any internal errors are encountered
2174+
* inside the client while attempting to make the request or
2175+
* handle the response. For example if a network connection is
2176+
* not available.
2177+
* @throws AmazonServiceException If an error response is returned by Amazon
2178+
* Comprehend indicating either a problem with the data in the
2179+
* request, or a server side issue.
2180+
*/
2181+
Future<ListEntityRecognizerSummariesResult> listEntityRecognizerSummariesAsync(
2182+
ListEntityRecognizerSummariesRequest listEntityRecognizerSummariesRequest)
2183+
throws AmazonServiceException, AmazonClientException;
2184+
2185+
/**
2186+
* <p>
2187+
* Gets a list of summaries for the entity recognizers that you have
2188+
* created.
2189+
* </p>
2190+
*
2191+
* @param listEntityRecognizerSummariesRequest
2192+
* @param asyncHandler Asynchronous callback handler for events in the
2193+
* life-cycle of the request. Users could provide the
2194+
* implementation of the four callback methods in this interface
2195+
* to process the operation result or handle the exception.
2196+
* @return A Java Future object containing the response from the
2197+
* ListEntityRecognizerSummaries service method, as returned by
2198+
* Amazon Comprehend.
2199+
* @throws InvalidRequestException
2200+
* @throws TooManyRequestsException
2201+
* @throws InternalServerException
2202+
* @throws AmazonClientException If any internal errors are encountered
2203+
* inside the client while attempting to make the request or
2204+
* handle the response. For example if a network connection is
2205+
* not available.
2206+
* @throws AmazonServiceException If an error response is returned by Amazon
2207+
* Comprehend indicating either a problem with the data in the
2208+
* request, or a server side issue.
2209+
*/
2210+
Future<ListEntityRecognizerSummariesResult> listEntityRecognizerSummariesAsync(
2211+
ListEntityRecognizerSummariesRequest listEntityRecognizerSummariesRequest,
2212+
AsyncHandler<ListEntityRecognizerSummariesRequest, ListEntityRecognizerSummariesResult> asyncHandler)
2213+
throws AmazonServiceException, AmazonClientException;
2214+
21052215
/**
21062216
* <p>
21072217
* Gets a list of the properties of all entity recognizers that you created,

aws-android-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/AmazonComprehendAsyncClient.java

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2619,6 +2619,77 @@ public ListDocumentClassificationJobsResult call() throws Exception {
26192619
});
26202620
}
26212621

2622+
/**
2623+
* <p>
2624+
* Gets a list of summaries of the document classifiers that you have
2625+
* created
2626+
* </p>
2627+
*
2628+
* @param listDocumentClassifierSummariesRequest
2629+
* @return A Java Future object containing the response from the
2630+
* ListDocumentClassifierSummaries service method, as returned by
2631+
* Amazon Comprehend.
2632+
* @throws InvalidRequestException
2633+
* @throws TooManyRequestsException
2634+
* @throws InternalServerException
2635+
* @throws AmazonClientException If any internal errors are encountered
2636+
* inside the client while attempting to make the request or
2637+
* handle the response. For example if a network connection is
2638+
* not available.
2639+
* @throws AmazonServiceException If an error response is returned by Amazon
2640+
* Comprehend indicating either a problem with the data in the
2641+
* request, or a server side issue.
2642+
*/
2643+
public Future<ListDocumentClassifierSummariesResult> listDocumentClassifierSummariesAsync(
2644+
final ListDocumentClassifierSummariesRequest listDocumentClassifierSummariesRequest)
2645+
throws AmazonServiceException, AmazonClientException {
2646+
return executorService.submit(new Callable<ListDocumentClassifierSummariesResult>() {
2647+
public ListDocumentClassifierSummariesResult call() throws Exception {
2648+
return listDocumentClassifierSummaries(listDocumentClassifierSummariesRequest);
2649+
}
2650+
});
2651+
}
2652+
2653+
/**
2654+
* <p>
2655+
* Gets a list of summaries of the document classifiers that you have
2656+
* created
2657+
* </p>
2658+
*
2659+
* @param listDocumentClassifierSummariesRequest
2660+
* @return A Java Future object containing the response from the
2661+
* ListDocumentClassifierSummaries service method, as returned by
2662+
* Amazon Comprehend.
2663+
* @throws InvalidRequestException
2664+
* @throws TooManyRequestsException
2665+
* @throws InternalServerException
2666+
* @throws AmazonClientException If any internal errors are encountered
2667+
* inside the client while attempting to make the request or
2668+
* handle the response. For example if a network connection is
2669+
* not available.
2670+
* @throws AmazonServiceException If an error response is returned by Amazon
2671+
* Comprehend indicating either a problem with the data in the
2672+
* request, or a server side issue.
2673+
*/
2674+
public Future<ListDocumentClassifierSummariesResult> listDocumentClassifierSummariesAsync(
2675+
final ListDocumentClassifierSummariesRequest listDocumentClassifierSummariesRequest,
2676+
final AsyncHandler<ListDocumentClassifierSummariesRequest, ListDocumentClassifierSummariesResult> asyncHandler)
2677+
throws AmazonServiceException, AmazonClientException {
2678+
return executorService.submit(new Callable<ListDocumentClassifierSummariesResult>() {
2679+
public ListDocumentClassifierSummariesResult call() throws Exception {
2680+
ListDocumentClassifierSummariesResult result = null;
2681+
try {
2682+
result = listDocumentClassifierSummaries(listDocumentClassifierSummariesRequest);
2683+
} catch (Exception ex) {
2684+
asyncHandler.onError(ex);
2685+
throw ex;
2686+
}
2687+
asyncHandler.onSuccess(listDocumentClassifierSummariesRequest, result);
2688+
return result;
2689+
}
2690+
});
2691+
}
2692+
26222693
/**
26232694
* <p>
26242695
* Gets a list of the document classifiers that you have created.
@@ -2901,6 +2972,77 @@ public ListEntitiesDetectionJobsResult call() throws Exception {
29012972
});
29022973
}
29032974

2975+
/**
2976+
* <p>
2977+
* Gets a list of summaries for the entity recognizers that you have
2978+
* created.
2979+
* </p>
2980+
*
2981+
* @param listEntityRecognizerSummariesRequest
2982+
* @return A Java Future object containing the response from the
2983+
* ListEntityRecognizerSummaries service method, as returned by
2984+
* Amazon Comprehend.
2985+
* @throws InvalidRequestException
2986+
* @throws TooManyRequestsException
2987+
* @throws InternalServerException
2988+
* @throws AmazonClientException If any internal errors are encountered
2989+
* inside the client while attempting to make the request or
2990+
* handle the response. For example if a network connection is
2991+
* not available.
2992+
* @throws AmazonServiceException If an error response is returned by Amazon
2993+
* Comprehend indicating either a problem with the data in the
2994+
* request, or a server side issue.
2995+
*/
2996+
public Future<ListEntityRecognizerSummariesResult> listEntityRecognizerSummariesAsync(
2997+
final ListEntityRecognizerSummariesRequest listEntityRecognizerSummariesRequest)
2998+
throws AmazonServiceException, AmazonClientException {
2999+
return executorService.submit(new Callable<ListEntityRecognizerSummariesResult>() {
3000+
public ListEntityRecognizerSummariesResult call() throws Exception {
3001+
return listEntityRecognizerSummaries(listEntityRecognizerSummariesRequest);
3002+
}
3003+
});
3004+
}
3005+
3006+
/**
3007+
* <p>
3008+
* Gets a list of summaries for the entity recognizers that you have
3009+
* created.
3010+
* </p>
3011+
*
3012+
* @param listEntityRecognizerSummariesRequest
3013+
* @return A Java Future object containing the response from the
3014+
* ListEntityRecognizerSummaries service method, as returned by
3015+
* Amazon Comprehend.
3016+
* @throws InvalidRequestException
3017+
* @throws TooManyRequestsException
3018+
* @throws InternalServerException
3019+
* @throws AmazonClientException If any internal errors are encountered
3020+
* inside the client while attempting to make the request or
3021+
* handle the response. For example if a network connection is
3022+
* not available.
3023+
* @throws AmazonServiceException If an error response is returned by Amazon
3024+
* Comprehend indicating either a problem with the data in the
3025+
* request, or a server side issue.
3026+
*/
3027+
public Future<ListEntityRecognizerSummariesResult> listEntityRecognizerSummariesAsync(
3028+
final ListEntityRecognizerSummariesRequest listEntityRecognizerSummariesRequest,
3029+
final AsyncHandler<ListEntityRecognizerSummariesRequest, ListEntityRecognizerSummariesResult> asyncHandler)
3030+
throws AmazonServiceException, AmazonClientException {
3031+
return executorService.submit(new Callable<ListEntityRecognizerSummariesResult>() {
3032+
public ListEntityRecognizerSummariesResult call() throws Exception {
3033+
ListEntityRecognizerSummariesResult result = null;
3034+
try {
3035+
result = listEntityRecognizerSummaries(listEntityRecognizerSummariesRequest);
3036+
} catch (Exception ex) {
3037+
asyncHandler.onError(ex);
3038+
throw ex;
3039+
}
3040+
asyncHandler.onSuccess(listEntityRecognizerSummariesRequest, result);
3041+
return result;
3042+
}
3043+
});
3044+
}
3045+
29043046
/**
29053047
* <p>
29063048
* Gets a list of the properties of all entity recognizers that you created,

0 commit comments

Comments
 (0)