@@ -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