/* * Copyright 2010-2023 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.comprehend; import java.util.concurrent.Future; import com.amazonaws.AmazonClientException; import com.amazonaws.AmazonServiceException; import com.amazonaws.handlers.AsyncHandler; import com.amazonaws.services.comprehend.model.*; /** * Interface for accessing Amazon Comprehend asynchronously. *

* Amazon Comprehend is an Amazon Web Services service for gaining insight into * the content of documents. Use these actions to determine the topics contained * in your documents, the topics they discuss, the predominant sentiment * expressed in them, the predominant language used, and more. *

**/ public interface AmazonComprehendAsync extends AmazonComprehend { /** *

* Determines the dominant language of the input text for a batch of * documents. For a list of languages that Amazon Comprehend can detect, see * Amazon Comprehend Supported Languages. *

* * @param batchDetectDominantLanguageRequest * @return A Java Future object containing the response from the * BatchDetectDominantLanguage service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws BatchSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future batchDetectDominantLanguageAsync( BatchDetectDominantLanguageRequest batchDetectDominantLanguageRequest) throws AmazonServiceException, AmazonClientException; /** *

* Determines the dominant language of the input text for a batch of * documents. For a list of languages that Amazon Comprehend can detect, see * Amazon Comprehend Supported Languages. *

* * @param batchDetectDominantLanguageRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * BatchDetectDominantLanguage service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws BatchSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future batchDetectDominantLanguageAsync( BatchDetectDominantLanguageRequest batchDetectDominantLanguageRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Inspects the text of a batch of documents for named entities and returns * information about them. For more information about named entities, see * Entities in the Comprehend Developer Guide. *

* * @param batchDetectEntitiesRequest * @return A Java Future object containing the response from the * BatchDetectEntities service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws BatchSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future batchDetectEntitiesAsync( BatchDetectEntitiesRequest batchDetectEntitiesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Inspects the text of a batch of documents for named entities and returns * information about them. For more information about named entities, see * Entities in the Comprehend Developer Guide. *

* * @param batchDetectEntitiesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * BatchDetectEntities service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws BatchSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future batchDetectEntitiesAsync( BatchDetectEntitiesRequest batchDetectEntitiesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Detects the key noun phrases found in a batch of documents. *

* * @param batchDetectKeyPhrasesRequest * @return A Java Future object containing the response from the * BatchDetectKeyPhrases service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws BatchSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future batchDetectKeyPhrasesAsync( BatchDetectKeyPhrasesRequest batchDetectKeyPhrasesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Detects the key noun phrases found in a batch of documents. *

* * @param batchDetectKeyPhrasesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * BatchDetectKeyPhrases service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws BatchSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future batchDetectKeyPhrasesAsync( BatchDetectKeyPhrasesRequest batchDetectKeyPhrasesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Inspects a batch of documents and returns an inference of the prevailing * sentiment, POSITIVE, NEUTRAL, * MIXED, or NEGATIVE, in each one. *

* * @param batchDetectSentimentRequest * @return A Java Future object containing the response from the * BatchDetectSentiment service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws BatchSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future batchDetectSentimentAsync( BatchDetectSentimentRequest batchDetectSentimentRequest) throws AmazonServiceException, AmazonClientException; /** *

* Inspects a batch of documents and returns an inference of the prevailing * sentiment, POSITIVE, NEUTRAL, * MIXED, or NEGATIVE, in each one. *

* * @param batchDetectSentimentRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * BatchDetectSentiment service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws BatchSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future batchDetectSentimentAsync( BatchDetectSentimentRequest batchDetectSentimentRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Inspects the text of a batch of documents for the syntax and part of * speech of the words in the document and returns information about them. * For more information, see Syntax in the Comprehend Developer Guide. *

* * @param batchDetectSyntaxRequest * @return A Java Future object containing the response from the * BatchDetectSyntax service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws BatchSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future batchDetectSyntaxAsync( BatchDetectSyntaxRequest batchDetectSyntaxRequest) throws AmazonServiceException, AmazonClientException; /** *

* Inspects the text of a batch of documents for the syntax and part of * speech of the words in the document and returns information about them. * For more information, see Syntax in the Comprehend Developer Guide. *

* * @param batchDetectSyntaxRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * BatchDetectSyntax service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws BatchSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future batchDetectSyntaxAsync( BatchDetectSyntaxRequest batchDetectSyntaxRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Inspects a batch of documents and returns a sentiment analysis for each * entity identified in the documents. *

*

* For more information about targeted sentiment, see Targeted sentiment. *

* * @param batchDetectTargetedSentimentRequest * @return A Java Future object containing the response from the * BatchDetectTargetedSentiment service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws BatchSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future batchDetectTargetedSentimentAsync( BatchDetectTargetedSentimentRequest batchDetectTargetedSentimentRequest) throws AmazonServiceException, AmazonClientException; /** *

* Inspects a batch of documents and returns a sentiment analysis for each * entity identified in the documents. *

*

* For more information about targeted sentiment, see Targeted sentiment. *

* * @param batchDetectTargetedSentimentRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * BatchDetectTargetedSentiment service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws BatchSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future batchDetectTargetedSentimentAsync( BatchDetectTargetedSentimentRequest batchDetectTargetedSentimentRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Creates a new document classification request to analyze a single * document in real-time, using a previously created and trained custom * model and an endpoint. *

*

* You can input plain text or you can upload a single-page input document * (text, PDF, Word, or image). *

*

* If the system detects errors while processing a page in the input * document, the API response includes an entry in Errors that * describes the errors. *

*

* If the system detects a document-level error in your input document, the * API returns an InvalidRequestException error response. For * details about this exception, see Errors in semi-structured documents in the Comprehend Developer * Guide. *

* * @param classifyDocumentRequest * @return A Java Future object containing the response from the * ClassifyDocument service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws ResourceUnavailableException * @throws TextSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future classifyDocumentAsync( ClassifyDocumentRequest classifyDocumentRequest) throws AmazonServiceException, AmazonClientException; /** *

* Creates a new document classification request to analyze a single * document in real-time, using a previously created and trained custom * model and an endpoint. *

*

* You can input plain text or you can upload a single-page input document * (text, PDF, Word, or image). *

*

* If the system detects errors while processing a page in the input * document, the API response includes an entry in Errors that * describes the errors. *

*

* If the system detects a document-level error in your input document, the * API returns an InvalidRequestException error response. For * details about this exception, see Errors in semi-structured documents in the Comprehend Developer * Guide. *

* * @param classifyDocumentRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ClassifyDocument service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws ResourceUnavailableException * @throws TextSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future classifyDocumentAsync( ClassifyDocumentRequest classifyDocumentRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Analyzes input text for the presence of personally identifiable * information (PII) and returns the labels of identified PII entity types * such as name, address, bank account number, or phone number. *

* * @param containsPiiEntitiesRequest * @return A Java Future object containing the response from the * ContainsPiiEntities service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future containsPiiEntitiesAsync( ContainsPiiEntitiesRequest containsPiiEntitiesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Analyzes input text for the presence of personally identifiable * information (PII) and returns the labels of identified PII entity types * such as name, address, bank account number, or phone number. *

* * @param containsPiiEntitiesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ContainsPiiEntities service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future containsPiiEntitiesAsync( ContainsPiiEntitiesRequest containsPiiEntitiesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Creates a dataset to upload training or test data for a model associated * with a flywheel. For more information about datasets, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param createDatasetRequest * @return A Java Future object containing the response from the * CreateDataset service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws ResourceInUseException * @throws TooManyTagsException * @throws TooManyRequestsException * @throws ResourceLimitExceededException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future createDatasetAsync(CreateDatasetRequest createDatasetRequest) throws AmazonServiceException, AmazonClientException; /** *

* Creates a dataset to upload training or test data for a model associated * with a flywheel. For more information about datasets, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param createDatasetRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * CreateDataset service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws ResourceInUseException * @throws TooManyTagsException * @throws TooManyRequestsException * @throws ResourceLimitExceededException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future createDatasetAsync(CreateDatasetRequest createDatasetRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Creates a new document classifier that you can use to categorize * documents. To create a classifier, you provide a set of training * documents that are labeled with the categories that you want to use. For * more information, see Training classifier models in the Comprehend Developer Guide. *

* * @param createDocumentClassifierRequest * @return A Java Future object containing the response from the * CreateDocumentClassifier service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws ResourceInUseException * @throws TooManyTagsException * @throws TooManyRequestsException * @throws ResourceLimitExceededException * @throws UnsupportedLanguageException * @throws KmsKeyValidationException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future createDocumentClassifierAsync( CreateDocumentClassifierRequest createDocumentClassifierRequest) throws AmazonServiceException, AmazonClientException; /** *

* Creates a new document classifier that you can use to categorize * documents. To create a classifier, you provide a set of training * documents that are labeled with the categories that you want to use. For * more information, see Training classifier models in the Comprehend Developer Guide. *

* * @param createDocumentClassifierRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * CreateDocumentClassifier service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws ResourceInUseException * @throws TooManyTagsException * @throws TooManyRequestsException * @throws ResourceLimitExceededException * @throws UnsupportedLanguageException * @throws KmsKeyValidationException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future createDocumentClassifierAsync( CreateDocumentClassifierRequest createDocumentClassifierRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Creates a model-specific endpoint for synchronous inference for a * previously trained custom model For information about endpoints, see Managing endpoints. *

* * @param createEndpointRequest * @return A Java Future object containing the response from the * CreateEndpoint service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws ResourceInUseException * @throws ResourceLimitExceededException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws TooManyRequestsException * @throws TooManyTagsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future createEndpointAsync(CreateEndpointRequest createEndpointRequest) throws AmazonServiceException, AmazonClientException; /** *

* Creates a model-specific endpoint for synchronous inference for a * previously trained custom model For information about endpoints, see Managing endpoints. *

* * @param createEndpointRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * CreateEndpoint service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws ResourceInUseException * @throws ResourceLimitExceededException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws TooManyRequestsException * @throws TooManyTagsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future createEndpointAsync(CreateEndpointRequest createEndpointRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Creates an entity recognizer using submitted files. After your * CreateEntityRecognizer request is submitted, you can check * job status using the DescribeEntityRecognizer API. *

* * @param createEntityRecognizerRequest * @return A Java Future object containing the response from the * CreateEntityRecognizer service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws ResourceInUseException * @throws TooManyTagsException * @throws TooManyRequestsException * @throws ResourceLimitExceededException * @throws UnsupportedLanguageException * @throws KmsKeyValidationException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future createEntityRecognizerAsync( CreateEntityRecognizerRequest createEntityRecognizerRequest) throws AmazonServiceException, AmazonClientException; /** *

* Creates an entity recognizer using submitted files. After your * CreateEntityRecognizer request is submitted, you can check * job status using the DescribeEntityRecognizer API. *

* * @param createEntityRecognizerRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * CreateEntityRecognizer service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws ResourceInUseException * @throws TooManyTagsException * @throws TooManyRequestsException * @throws ResourceLimitExceededException * @throws UnsupportedLanguageException * @throws KmsKeyValidationException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future createEntityRecognizerAsync( CreateEntityRecognizerRequest createEntityRecognizerRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* A flywheel is an Amazon Web Services resource that orchestrates the * ongoing training of a model for custom classification or custom entity * recognition. You can create a flywheel to start with an existing trained * model, or Comprehend can create and train a new model. *

*

* When you create the flywheel, Comprehend creates a data lake in your * account. The data lake holds the training data and test data for all * versions of the model. *

*

* To use a flywheel with an existing trained model, you specify the active * model version. Comprehend copies the model's training data and test data * into the flywheel's data lake. *

*

* To use the flywheel with a new model, you need to provide a dataset for * training data (and optional test data) when you create the flywheel. *

*

* For more information about flywheels, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param createFlywheelRequest * @return A Java Future object containing the response from the * CreateFlywheel service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws ResourceInUseException * @throws TooManyTagsException * @throws TooManyRequestsException * @throws ResourceLimitExceededException * @throws UnsupportedLanguageException * @throws KmsKeyValidationException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future createFlywheelAsync(CreateFlywheelRequest createFlywheelRequest) throws AmazonServiceException, AmazonClientException; /** *

* A flywheel is an Amazon Web Services resource that orchestrates the * ongoing training of a model for custom classification or custom entity * recognition. You can create a flywheel to start with an existing trained * model, or Comprehend can create and train a new model. *

*

* When you create the flywheel, Comprehend creates a data lake in your * account. The data lake holds the training data and test data for all * versions of the model. *

*

* To use a flywheel with an existing trained model, you specify the active * model version. Comprehend copies the model's training data and test data * into the flywheel's data lake. *

*

* To use the flywheel with a new model, you need to provide a dataset for * training data (and optional test data) when you create the flywheel. *

*

* For more information about flywheels, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param createFlywheelRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * CreateFlywheel service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws ResourceInUseException * @throws TooManyTagsException * @throws TooManyRequestsException * @throws ResourceLimitExceededException * @throws UnsupportedLanguageException * @throws KmsKeyValidationException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future createFlywheelAsync(CreateFlywheelRequest createFlywheelRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Deletes a previously created document classifier *

*

* Only those classifiers that are in terminated states (IN_ERROR, TRAINED) * will be deleted. If an active inference job is using the model, a * ResourceInUseException will be returned. *

*

* This is an asynchronous action that puts the classifier into a DELETING * state, and it is then removed by a background job. Once removed, the * classifier disappears from your account and is no longer available for * use. *

* * @param deleteDocumentClassifierRequest * @return A Java Future object containing the response from the * DeleteDocumentClassifier service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future deleteDocumentClassifierAsync( DeleteDocumentClassifierRequest deleteDocumentClassifierRequest) throws AmazonServiceException, AmazonClientException; /** *

* Deletes a previously created document classifier *

*

* Only those classifiers that are in terminated states (IN_ERROR, TRAINED) * will be deleted. If an active inference job is using the model, a * ResourceInUseException will be returned. *

*

* This is an asynchronous action that puts the classifier into a DELETING * state, and it is then removed by a background job. Once removed, the * classifier disappears from your account and is no longer available for * use. *

* * @param deleteDocumentClassifierRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DeleteDocumentClassifier service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future deleteDocumentClassifierAsync( DeleteDocumentClassifierRequest deleteDocumentClassifierRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Deletes a model-specific endpoint for a previously-trained custom model. * All endpoints must be deleted in order for the model to be deleted. For * information about endpoints, see Managing endpoints. *

* * @param deleteEndpointRequest * @return A Java Future object containing the response from the * DeleteEndpoint service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws ResourceInUseException * @throws ResourceNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future deleteEndpointAsync(DeleteEndpointRequest deleteEndpointRequest) throws AmazonServiceException, AmazonClientException; /** *

* Deletes a model-specific endpoint for a previously-trained custom model. * All endpoints must be deleted in order for the model to be deleted. For * information about endpoints, see Managing endpoints. *

* * @param deleteEndpointRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DeleteEndpoint service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws ResourceInUseException * @throws ResourceNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future deleteEndpointAsync(DeleteEndpointRequest deleteEndpointRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Deletes an entity recognizer. *

*

* Only those recognizers that are in terminated states (IN_ERROR, TRAINED) * will be deleted. If an active inference job is using the model, a * ResourceInUseException will be returned. *

*

* This is an asynchronous action that puts the recognizer into a DELETING * state, and it is then removed by a background job. Once removed, the * recognizer disappears from your account and is no longer available for * use. *

* * @param deleteEntityRecognizerRequest * @return A Java Future object containing the response from the * DeleteEntityRecognizer service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future deleteEntityRecognizerAsync( DeleteEntityRecognizerRequest deleteEntityRecognizerRequest) throws AmazonServiceException, AmazonClientException; /** *

* Deletes an entity recognizer. *

*

* Only those recognizers that are in terminated states (IN_ERROR, TRAINED) * will be deleted. If an active inference job is using the model, a * ResourceInUseException will be returned. *

*

* This is an asynchronous action that puts the recognizer into a DELETING * state, and it is then removed by a background job. Once removed, the * recognizer disappears from your account and is no longer available for * use. *

* * @param deleteEntityRecognizerRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DeleteEntityRecognizer service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future deleteEntityRecognizerAsync( DeleteEntityRecognizerRequest deleteEntityRecognizerRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Deletes a flywheel. When you delete the flywheel, Amazon Comprehend does * not delete the data lake or the model associated with the flywheel. *

*

* For more information about flywheels, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param deleteFlywheelRequest * @return A Java Future object containing the response from the * DeleteFlywheel service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future deleteFlywheelAsync(DeleteFlywheelRequest deleteFlywheelRequest) throws AmazonServiceException, AmazonClientException; /** *

* Deletes a flywheel. When you delete the flywheel, Amazon Comprehend does * not delete the data lake or the model associated with the flywheel. *

*

* For more information about flywheels, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param deleteFlywheelRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DeleteFlywheel service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future deleteFlywheelAsync(DeleteFlywheelRequest deleteFlywheelRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Deletes a resource-based policy that is attached to a custom model. *

* * @param deleteResourcePolicyRequest * @return A Java Future object containing the response from the * DeleteResourcePolicy service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future deleteResourcePolicyAsync( DeleteResourcePolicyRequest deleteResourcePolicyRequest) throws AmazonServiceException, AmazonClientException; /** *

* Deletes a resource-based policy that is attached to a custom model. *

* * @param deleteResourcePolicyRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DeleteResourcePolicy service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future deleteResourcePolicyAsync( DeleteResourcePolicyRequest deleteResourcePolicyRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Returns information about the dataset that you specify. For more * information about datasets, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param describeDatasetRequest * @return A Java Future object containing the response from the * DescribeDataset service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeDatasetAsync(DescribeDatasetRequest describeDatasetRequest) throws AmazonServiceException, AmazonClientException; /** *

* Returns information about the dataset that you specify. For more * information about datasets, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param describeDatasetRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeDataset service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeDatasetAsync( DescribeDatasetRequest describeDatasetRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a document classification job. Use * this operation to get the status of a classification job. *

* * @param describeDocumentClassificationJobRequest * @return A Java Future object containing the response from the * DescribeDocumentClassificationJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeDocumentClassificationJobAsync( DescribeDocumentClassificationJobRequest describeDocumentClassificationJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a document classification job. Use * this operation to get the status of a classification job. *

* * @param describeDocumentClassificationJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeDocumentClassificationJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeDocumentClassificationJobAsync( DescribeDocumentClassificationJobRequest describeDocumentClassificationJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a document classifier. *

* * @param describeDocumentClassifierRequest * @return A Java Future object containing the response from the * DescribeDocumentClassifier service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeDocumentClassifierAsync( DescribeDocumentClassifierRequest describeDocumentClassifierRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a document classifier. *

* * @param describeDocumentClassifierRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeDocumentClassifier service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeDocumentClassifierAsync( DescribeDocumentClassifierRequest describeDocumentClassifierRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a dominant language detection job. * Use this operation to get the status of a detection job. *

* * @param describeDominantLanguageDetectionJobRequest * @return A Java Future object containing the response from the * DescribeDominantLanguageDetectionJob service method, as returned * by Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeDominantLanguageDetectionJobAsync( DescribeDominantLanguageDetectionJobRequest describeDominantLanguageDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a dominant language detection job. * Use this operation to get the status of a detection job. *

* * @param describeDominantLanguageDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeDominantLanguageDetectionJob service method, as returned * by Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeDominantLanguageDetectionJobAsync( DescribeDominantLanguageDetectionJobRequest describeDominantLanguageDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a specific endpoint. Use this * operation to get the status of an endpoint. For information about * endpoints, see Managing endpoints. *

* * @param describeEndpointRequest * @return A Java Future object containing the response from the * DescribeEndpoint service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeEndpointAsync( DescribeEndpointRequest describeEndpointRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a specific endpoint. Use this * operation to get the status of an endpoint. For information about * endpoints, see Managing endpoints. *

* * @param describeEndpointRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeEndpoint service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeEndpointAsync( DescribeEndpointRequest describeEndpointRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with an entities detection job. Use this * operation to get the status of a detection job. *

* * @param describeEntitiesDetectionJobRequest * @return A Java Future object containing the response from the * DescribeEntitiesDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeEntitiesDetectionJobAsync( DescribeEntitiesDetectionJobRequest describeEntitiesDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with an entities detection job. Use this * operation to get the status of a detection job. *

* * @param describeEntitiesDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeEntitiesDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeEntitiesDetectionJobAsync( DescribeEntitiesDetectionJobRequest describeEntitiesDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Provides details about an entity recognizer including status, S3 buckets * containing training data, recognizer metadata, metrics, and so on. *

* * @param describeEntityRecognizerRequest * @return A Java Future object containing the response from the * DescribeEntityRecognizer service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeEntityRecognizerAsync( DescribeEntityRecognizerRequest describeEntityRecognizerRequest) throws AmazonServiceException, AmazonClientException; /** *

* Provides details about an entity recognizer including status, S3 buckets * containing training data, recognizer metadata, metrics, and so on. *

* * @param describeEntityRecognizerRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeEntityRecognizer service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeEntityRecognizerAsync( DescribeEntityRecognizerRequest describeEntityRecognizerRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets the status and details of an events detection job. *

* * @param describeEventsDetectionJobRequest * @return A Java Future object containing the response from the * DescribeEventsDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeEventsDetectionJobAsync( DescribeEventsDetectionJobRequest describeEventsDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets the status and details of an events detection job. *

* * @param describeEventsDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeEventsDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeEventsDetectionJobAsync( DescribeEventsDetectionJobRequest describeEventsDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Provides configuration information about the flywheel. For more * information about flywheels, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param describeFlywheelRequest * @return A Java Future object containing the response from the * DescribeFlywheel service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeFlywheelAsync( DescribeFlywheelRequest describeFlywheelRequest) throws AmazonServiceException, AmazonClientException; /** *

* Provides configuration information about the flywheel. For more * information about flywheels, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param describeFlywheelRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeFlywheel service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeFlywheelAsync( DescribeFlywheelRequest describeFlywheelRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Retrieve the configuration properties of a flywheel iteration. For more * information about flywheels, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param describeFlywheelIterationRequest * @return A Java Future object containing the response from the * DescribeFlywheelIteration service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeFlywheelIterationAsync( DescribeFlywheelIterationRequest describeFlywheelIterationRequest) throws AmazonServiceException, AmazonClientException; /** *

* Retrieve the configuration properties of a flywheel iteration. For more * information about flywheels, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param describeFlywheelIterationRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeFlywheelIteration service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeFlywheelIterationAsync( DescribeFlywheelIterationRequest describeFlywheelIterationRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a key phrases detection job. Use this * operation to get the status of a detection job. *

* * @param describeKeyPhrasesDetectionJobRequest * @return A Java Future object containing the response from the * DescribeKeyPhrasesDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeKeyPhrasesDetectionJobAsync( DescribeKeyPhrasesDetectionJobRequest describeKeyPhrasesDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a key phrases detection job. Use this * operation to get the status of a detection job. *

* * @param describeKeyPhrasesDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeKeyPhrasesDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeKeyPhrasesDetectionJobAsync( DescribeKeyPhrasesDetectionJobRequest describeKeyPhrasesDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a PII entities detection job. For * example, you can use this operation to get the job status. *

* * @param describePiiEntitiesDetectionJobRequest * @return A Java Future object containing the response from the * DescribePiiEntitiesDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describePiiEntitiesDetectionJobAsync( DescribePiiEntitiesDetectionJobRequest describePiiEntitiesDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a PII entities detection job. For * example, you can use this operation to get the job status. *

* * @param describePiiEntitiesDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribePiiEntitiesDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describePiiEntitiesDetectionJobAsync( DescribePiiEntitiesDetectionJobRequest describePiiEntitiesDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets the details of a resource-based policy that is attached to a custom * model, including the JSON body of the policy. *

* * @param describeResourcePolicyRequest * @return A Java Future object containing the response from the * DescribeResourcePolicy service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeResourcePolicyAsync( DescribeResourcePolicyRequest describeResourcePolicyRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets the details of a resource-based policy that is attached to a custom * model, including the JSON body of the policy. *

* * @param describeResourcePolicyRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeResourcePolicy service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeResourcePolicyAsync( DescribeResourcePolicyRequest describeResourcePolicyRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a sentiment detection job. Use this * operation to get the status of a detection job. *

* * @param describeSentimentDetectionJobRequest * @return A Java Future object containing the response from the * DescribeSentimentDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeSentimentDetectionJobAsync( DescribeSentimentDetectionJobRequest describeSentimentDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a sentiment detection job. Use this * operation to get the status of a detection job. *

* * @param describeSentimentDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeSentimentDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeSentimentDetectionJobAsync( DescribeSentimentDetectionJobRequest describeSentimentDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a targeted sentiment detection job. * Use this operation to get the status of the job. *

* * @param describeTargetedSentimentDetectionJobRequest * @return A Java Future object containing the response from the * DescribeTargetedSentimentDetectionJob service method, as returned * by Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeTargetedSentimentDetectionJobAsync( DescribeTargetedSentimentDetectionJobRequest describeTargetedSentimentDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a targeted sentiment detection job. * Use this operation to get the status of the job. *

* * @param describeTargetedSentimentDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeTargetedSentimentDetectionJob service method, as returned * by Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeTargetedSentimentDetectionJobAsync( DescribeTargetedSentimentDetectionJobRequest describeTargetedSentimentDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a topic detection job. Use this * operation to get the status of a detection job. *

* * @param describeTopicsDetectionJobRequest * @return A Java Future object containing the response from the * DescribeTopicsDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeTopicsDetectionJobAsync( DescribeTopicsDetectionJobRequest describeTopicsDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets the properties associated with a topic detection job. Use this * operation to get the status of a detection job. *

* * @param describeTopicsDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DescribeTopicsDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future describeTopicsDetectionJobAsync( DescribeTopicsDetectionJobRequest describeTopicsDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Determines the dominant language of the input text. For a list of * languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages. *

* * @param detectDominantLanguageRequest * @return A Java Future object containing the response from the * DetectDominantLanguage service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future detectDominantLanguageAsync( DetectDominantLanguageRequest detectDominantLanguageRequest) throws AmazonServiceException, AmazonClientException; /** *

* Determines the dominant language of the input text. For a list of * languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages. *

* * @param detectDominantLanguageRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DetectDominantLanguage service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future detectDominantLanguageAsync( DetectDominantLanguageRequest detectDominantLanguageRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Detects named entities in input text when you use the pre-trained model. * Detects custom entities if you have a custom entity recognition model. *

*

* When detecting named entities using the pre-trained model, use plain text * as the input. For more information about named entities, see Entities in the Comprehend Developer Guide. *

*

* When you use a custom entity recognition model, you can input plain text * or you can upload a single-page input document (text, PDF, Word, or * image). *

*

* If the system detects errors while processing a page in the input * document, the API response includes an entry in Errors for * each error. *

*

* If the system detects a document-level error in your input document, the * API returns an InvalidRequestException error response. For * details about this exception, see Errors in semi-structured documents in the Comprehend Developer * Guide. *

* * @param detectEntitiesRequest * @return A Java Future object containing the response from the * DetectEntities service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws ResourceUnavailableException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future detectEntitiesAsync(DetectEntitiesRequest detectEntitiesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Detects named entities in input text when you use the pre-trained model. * Detects custom entities if you have a custom entity recognition model. *

*

* When detecting named entities using the pre-trained model, use plain text * as the input. For more information about named entities, see Entities in the Comprehend Developer Guide. *

*

* When you use a custom entity recognition model, you can input plain text * or you can upload a single-page input document (text, PDF, Word, or * image). *

*

* If the system detects errors while processing a page in the input * document, the API response includes an entry in Errors for * each error. *

*

* If the system detects a document-level error in your input document, the * API returns an InvalidRequestException error response. For * details about this exception, see Errors in semi-structured documents in the Comprehend Developer * Guide. *

* * @param detectEntitiesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DetectEntities service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws ResourceUnavailableException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future detectEntitiesAsync(DetectEntitiesRequest detectEntitiesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Detects the key noun phrases found in the text. *

* * @param detectKeyPhrasesRequest * @return A Java Future object containing the response from the * DetectKeyPhrases service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future detectKeyPhrasesAsync( DetectKeyPhrasesRequest detectKeyPhrasesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Detects the key noun phrases found in the text. *

* * @param detectKeyPhrasesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DetectKeyPhrases service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future detectKeyPhrasesAsync( DetectKeyPhrasesRequest detectKeyPhrasesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Inspects the input text for entities that contain personally identifiable * information (PII) and returns information about them. *

* * @param detectPiiEntitiesRequest * @return A Java Future object containing the response from the * DetectPiiEntities service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future detectPiiEntitiesAsync( DetectPiiEntitiesRequest detectPiiEntitiesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Inspects the input text for entities that contain personally identifiable * information (PII) and returns information about them. *

* * @param detectPiiEntitiesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DetectPiiEntities service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future detectPiiEntitiesAsync( DetectPiiEntitiesRequest detectPiiEntitiesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Inspects text and returns an inference of the prevailing sentiment ( * POSITIVE, NEUTRAL, MIXED, or * NEGATIVE). *

* * @param detectSentimentRequest * @return A Java Future object containing the response from the * DetectSentiment service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future detectSentimentAsync(DetectSentimentRequest detectSentimentRequest) throws AmazonServiceException, AmazonClientException; /** *

* Inspects text and returns an inference of the prevailing sentiment ( * POSITIVE, NEUTRAL, MIXED, or * NEGATIVE). *

* * @param detectSentimentRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DetectSentiment service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future detectSentimentAsync( DetectSentimentRequest detectSentimentRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Inspects text for syntax and the part of speech of words in the document. * For more information, see Syntax in the Comprehend Developer Guide. *

* * @param detectSyntaxRequest * @return A Java Future object containing the response from the * DetectSyntax service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future detectSyntaxAsync(DetectSyntaxRequest detectSyntaxRequest) throws AmazonServiceException, AmazonClientException; /** *

* Inspects text for syntax and the part of speech of words in the document. * For more information, see Syntax in the Comprehend Developer Guide. *

* * @param detectSyntaxRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DetectSyntax service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future detectSyntaxAsync(DetectSyntaxRequest detectSyntaxRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Inspects the input text and returns a sentiment analysis for each entity * identified in the text. *

*

* For more information about targeted sentiment, see Targeted sentiment. *

* * @param detectTargetedSentimentRequest * @return A Java Future object containing the response from the * DetectTargetedSentiment service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future detectTargetedSentimentAsync( DetectTargetedSentimentRequest detectTargetedSentimentRequest) throws AmazonServiceException, AmazonClientException; /** *

* Inspects the input text and returns a sentiment analysis for each entity * identified in the text. *

*

* For more information about targeted sentiment, see Targeted sentiment. *

* * @param detectTargetedSentimentRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * DetectTargetedSentiment service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TextSizeLimitExceededException * @throws UnsupportedLanguageException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future detectTargetedSentimentAsync( DetectTargetedSentimentRequest detectTargetedSentimentRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Creates a new custom model that replicates a source custom model that you * import. The source model can be in your Amazon Web Services account or * another one. *

*

* If the source model is in another Amazon Web Services account, then it * must have a resource-based policy that authorizes you to import it. *

*

* The source model must be in the same Amazon Web Services Region that * you're using when you import. You can't import a model that's in a * different Region. *

* * @param importModelRequest * @return A Java Future object containing the response from the ImportModel * service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws ResourceInUseException * @throws ResourceUnavailableException * @throws TooManyTagsException * @throws TooManyRequestsException * @throws ResourceLimitExceededException * @throws KmsKeyValidationException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future importModelAsync(ImportModelRequest importModelRequest) throws AmazonServiceException, AmazonClientException; /** *

* Creates a new custom model that replicates a source custom model that you * import. The source model can be in your Amazon Web Services account or * another one. *

*

* If the source model is in another Amazon Web Services account, then it * must have a resource-based policy that authorizes you to import it. *

*

* The source model must be in the same Amazon Web Services Region that * you're using when you import. You can't import a model that's in a * different Region. *

* * @param importModelRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the ImportModel * service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws ResourceInUseException * @throws ResourceUnavailableException * @throws TooManyTagsException * @throws TooManyRequestsException * @throws ResourceLimitExceededException * @throws KmsKeyValidationException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future importModelAsync(ImportModelRequest importModelRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* List the datasets that you have configured in this Region. For more * information about datasets, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param listDatasetsRequest * @return A Java Future object containing the response from the * ListDatasets service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listDatasetsAsync(ListDatasetsRequest listDatasetsRequest) throws AmazonServiceException, AmazonClientException; /** *

* List the datasets that you have configured in this Region. For more * information about datasets, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param listDatasetsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListDatasets service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listDatasetsAsync(ListDatasetsRequest listDatasetsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the documentation classification jobs that you have * submitted. *

* * @param listDocumentClassificationJobsRequest * @return A Java Future object containing the response from the * ListDocumentClassificationJobs service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listDocumentClassificationJobsAsync( ListDocumentClassificationJobsRequest listDocumentClassificationJobsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the documentation classification jobs that you have * submitted. *

* * @param listDocumentClassificationJobsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListDocumentClassificationJobs service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listDocumentClassificationJobsAsync( ListDocumentClassificationJobsRequest listDocumentClassificationJobsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of summaries of the document classifiers that you have * created *

* * @param listDocumentClassifierSummariesRequest * @return A Java Future object containing the response from the * ListDocumentClassifierSummaries service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listDocumentClassifierSummariesAsync( ListDocumentClassifierSummariesRequest listDocumentClassifierSummariesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of summaries of the document classifiers that you have * created *

* * @param listDocumentClassifierSummariesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListDocumentClassifierSummaries service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listDocumentClassifierSummariesAsync( ListDocumentClassifierSummariesRequest listDocumentClassifierSummariesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the document classifiers that you have created. *

* * @param listDocumentClassifiersRequest * @return A Java Future object containing the response from the * ListDocumentClassifiers service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listDocumentClassifiersAsync( ListDocumentClassifiersRequest listDocumentClassifiersRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the document classifiers that you have created. *

* * @param listDocumentClassifiersRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListDocumentClassifiers service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listDocumentClassifiersAsync( ListDocumentClassifiersRequest listDocumentClassifiersRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the dominant language detection jobs that you have * submitted. *

* * @param listDominantLanguageDetectionJobsRequest * @return A Java Future object containing the response from the * ListDominantLanguageDetectionJobs service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listDominantLanguageDetectionJobsAsync( ListDominantLanguageDetectionJobsRequest listDominantLanguageDetectionJobsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the dominant language detection jobs that you have * submitted. *

* * @param listDominantLanguageDetectionJobsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListDominantLanguageDetectionJobs service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listDominantLanguageDetectionJobsAsync( ListDominantLanguageDetectionJobsRequest listDominantLanguageDetectionJobsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of all existing endpoints that you've created. For * information about endpoints, see Managing endpoints. *

* * @param listEndpointsRequest * @return A Java Future object containing the response from the * ListEndpoints service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listEndpointsAsync(ListEndpointsRequest listEndpointsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of all existing endpoints that you've created. For * information about endpoints, see Managing endpoints. *

* * @param listEndpointsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListEndpoints service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listEndpointsAsync(ListEndpointsRequest listEndpointsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the entity detection jobs that you have submitted. *

* * @param listEntitiesDetectionJobsRequest * @return A Java Future object containing the response from the * ListEntitiesDetectionJobs service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listEntitiesDetectionJobsAsync( ListEntitiesDetectionJobsRequest listEntitiesDetectionJobsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the entity detection jobs that you have submitted. *

* * @param listEntitiesDetectionJobsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListEntitiesDetectionJobs service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listEntitiesDetectionJobsAsync( ListEntitiesDetectionJobsRequest listEntitiesDetectionJobsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of summaries for the entity recognizers that you have * created. *

* * @param listEntityRecognizerSummariesRequest * @return A Java Future object containing the response from the * ListEntityRecognizerSummaries service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listEntityRecognizerSummariesAsync( ListEntityRecognizerSummariesRequest listEntityRecognizerSummariesRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of summaries for the entity recognizers that you have * created. *

* * @param listEntityRecognizerSummariesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListEntityRecognizerSummaries service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listEntityRecognizerSummariesAsync( ListEntityRecognizerSummariesRequest listEntityRecognizerSummariesRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the properties of all entity recognizers that you created, * including recognizers currently in training. Allows you to filter the * list of recognizers based on criteria such as status and submission time. * This call returns up to 500 entity recognizers in the list, with a * default number of 100 recognizers in the list. *

*

* The results of this list are not in any particular order. Please get the * list and sort locally if needed. *

* * @param listEntityRecognizersRequest * @return A Java Future object containing the response from the * ListEntityRecognizers service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listEntityRecognizersAsync( ListEntityRecognizersRequest listEntityRecognizersRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the properties of all entity recognizers that you created, * including recognizers currently in training. Allows you to filter the * list of recognizers based on criteria such as status and submission time. * This call returns up to 500 entity recognizers in the list, with a * default number of 100 recognizers in the list. *

*

* The results of this list are not in any particular order. Please get the * list and sort locally if needed. *

* * @param listEntityRecognizersRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListEntityRecognizers service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listEntityRecognizersAsync( ListEntityRecognizersRequest listEntityRecognizersRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the events detection jobs that you have submitted. *

* * @param listEventsDetectionJobsRequest * @return A Java Future object containing the response from the * ListEventsDetectionJobs service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listEventsDetectionJobsAsync( ListEventsDetectionJobsRequest listEventsDetectionJobsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the events detection jobs that you have submitted. *

* * @param listEventsDetectionJobsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListEventsDetectionJobs service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listEventsDetectionJobsAsync( ListEventsDetectionJobsRequest listEventsDetectionJobsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Information about the history of a flywheel iteration. For more * information about flywheels, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param listFlywheelIterationHistoryRequest * @return A Java Future object containing the response from the * ListFlywheelIterationHistory service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listFlywheelIterationHistoryAsync( ListFlywheelIterationHistoryRequest listFlywheelIterationHistoryRequest) throws AmazonServiceException, AmazonClientException; /** *

* Information about the history of a flywheel iteration. For more * information about flywheels, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param listFlywheelIterationHistoryRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListFlywheelIterationHistory service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listFlywheelIterationHistoryAsync( ListFlywheelIterationHistoryRequest listFlywheelIterationHistoryRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the flywheels that you have created. *

* * @param listFlywheelsRequest * @return A Java Future object containing the response from the * ListFlywheels service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listFlywheelsAsync(ListFlywheelsRequest listFlywheelsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the flywheels that you have created. *

* * @param listFlywheelsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListFlywheels service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listFlywheelsAsync(ListFlywheelsRequest listFlywheelsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Get a list of key phrase detection jobs that you have submitted. *

* * @param listKeyPhrasesDetectionJobsRequest * @return A Java Future object containing the response from the * ListKeyPhrasesDetectionJobs service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listKeyPhrasesDetectionJobsAsync( ListKeyPhrasesDetectionJobsRequest listKeyPhrasesDetectionJobsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Get a list of key phrase detection jobs that you have submitted. *

* * @param listKeyPhrasesDetectionJobsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListKeyPhrasesDetectionJobs service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listKeyPhrasesDetectionJobsAsync( ListKeyPhrasesDetectionJobsRequest listKeyPhrasesDetectionJobsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the PII entity detection jobs that you have submitted. *

* * @param listPiiEntitiesDetectionJobsRequest * @return A Java Future object containing the response from the * ListPiiEntitiesDetectionJobs service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listPiiEntitiesDetectionJobsAsync( ListPiiEntitiesDetectionJobsRequest listPiiEntitiesDetectionJobsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the PII entity detection jobs that you have submitted. *

* * @param listPiiEntitiesDetectionJobsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListPiiEntitiesDetectionJobs service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listPiiEntitiesDetectionJobsAsync( ListPiiEntitiesDetectionJobsRequest listPiiEntitiesDetectionJobsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of sentiment detection jobs that you have submitted. *

* * @param listSentimentDetectionJobsRequest * @return A Java Future object containing the response from the * ListSentimentDetectionJobs service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listSentimentDetectionJobsAsync( ListSentimentDetectionJobsRequest listSentimentDetectionJobsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of sentiment detection jobs that you have submitted. *

* * @param listSentimentDetectionJobsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListSentimentDetectionJobs service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listSentimentDetectionJobsAsync( ListSentimentDetectionJobsRequest listSentimentDetectionJobsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Lists all tags associated with a given Amazon Comprehend resource. *

* * @param listTagsForResourceRequest * @return A Java Future object containing the response from the * ListTagsForResource service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listTagsForResourceAsync( ListTagsForResourceRequest listTagsForResourceRequest) throws AmazonServiceException, AmazonClientException; /** *

* Lists all tags associated with a given Amazon Comprehend resource. *

* * @param listTagsForResourceRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListTagsForResource service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listTagsForResourceAsync( ListTagsForResourceRequest listTagsForResourceRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of targeted sentiment detection jobs that you have submitted. *

* * @param listTargetedSentimentDetectionJobsRequest * @return A Java Future object containing the response from the * ListTargetedSentimentDetectionJobs service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listTargetedSentimentDetectionJobsAsync( ListTargetedSentimentDetectionJobsRequest listTargetedSentimentDetectionJobsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of targeted sentiment detection jobs that you have submitted. *

* * @param listTargetedSentimentDetectionJobsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListTargetedSentimentDetectionJobs service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listTargetedSentimentDetectionJobsAsync( ListTargetedSentimentDetectionJobsRequest listTargetedSentimentDetectionJobsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the topic detection jobs that you have submitted. *

* * @param listTopicsDetectionJobsRequest * @return A Java Future object containing the response from the * ListTopicsDetectionJobs service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listTopicsDetectionJobsAsync( ListTopicsDetectionJobsRequest listTopicsDetectionJobsRequest) throws AmazonServiceException, AmazonClientException; /** *

* Gets a list of the topic detection jobs that you have submitted. *

* * @param listTopicsDetectionJobsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * ListTopicsDetectionJobs service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws InvalidFilterException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future listTopicsDetectionJobsAsync( ListTopicsDetectionJobsRequest listTopicsDetectionJobsRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Attaches a resource-based policy to a custom model. You can use this * policy to authorize an entity in another Amazon Web Services account to * import the custom model, which replicates it in Amazon Comprehend in * their account. *

* * @param putResourcePolicyRequest * @return A Java Future object containing the response from the * PutResourcePolicy service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future putResourcePolicyAsync( PutResourcePolicyRequest putResourcePolicyRequest) throws AmazonServiceException, AmazonClientException; /** *

* Attaches a resource-based policy to a custom model. You can use this * policy to authorize an entity in another Amazon Web Services account to * import the custom model, which replicates it in Amazon Comprehend in * their account. *

* * @param putResourcePolicyRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * PutResourcePolicy service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future putResourcePolicyAsync( PutResourcePolicyRequest putResourcePolicyRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous document classification job. Use the * DescribeDocumentClassificationJob operation to track the * progress of the job. *

* * @param startDocumentClassificationJobRequest * @return A Java Future object containing the response from the * StartDocumentClassificationJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startDocumentClassificationJobAsync( StartDocumentClassificationJobRequest startDocumentClassificationJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous document classification job. Use the * DescribeDocumentClassificationJob operation to track the * progress of the job. *

* * @param startDocumentClassificationJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StartDocumentClassificationJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startDocumentClassificationJobAsync( StartDocumentClassificationJobRequest startDocumentClassificationJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous dominant language detection job for a collection * of documents. Use the operation to track the status of a job. *

* * @param startDominantLanguageDetectionJobRequest * @return A Java Future object containing the response from the * StartDominantLanguageDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startDominantLanguageDetectionJobAsync( StartDominantLanguageDetectionJobRequest startDominantLanguageDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous dominant language detection job for a collection * of documents. Use the operation to track the status of a job. *

* * @param startDominantLanguageDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StartDominantLanguageDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startDominantLanguageDetectionJobAsync( StartDominantLanguageDetectionJobRequest startDominantLanguageDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous entity detection job for a collection of * documents. Use the operation to track the status of a job. *

*

* This API can be used for either standard entity detection or custom * entity recognition. In order to be used for custom entity recognition, * the optional EntityRecognizerArn must be used in order to * provide access to the recognizer being used to detect the custom entity. *

* * @param startEntitiesDetectionJobRequest * @return A Java Future object containing the response from the * StartEntitiesDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startEntitiesDetectionJobAsync( StartEntitiesDetectionJobRequest startEntitiesDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous entity detection job for a collection of * documents. Use the operation to track the status of a job. *

*

* This API can be used for either standard entity detection or custom * entity recognition. In order to be used for custom entity recognition, * the optional EntityRecognizerArn must be used in order to * provide access to the recognizer being used to detect the custom entity. *

* * @param startEntitiesDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StartEntitiesDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startEntitiesDetectionJobAsync( StartEntitiesDetectionJobRequest startEntitiesDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous event detection job for a collection of documents. *

* * @param startEventsDetectionJobRequest * @return A Java Future object containing the response from the * StartEventsDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startEventsDetectionJobAsync( StartEventsDetectionJobRequest startEventsDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous event detection job for a collection of documents. *

* * @param startEventsDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StartEventsDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startEventsDetectionJobAsync( StartEventsDetectionJobRequest startEventsDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Start the flywheel iteration.This operation uses any new datasets to * train a new model version. For more information about flywheels, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param startFlywheelIterationRequest * @return A Java Future object containing the response from the * StartFlywheelIteration service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceInUseException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startFlywheelIterationAsync( StartFlywheelIterationRequest startFlywheelIterationRequest) throws AmazonServiceException, AmazonClientException; /** *

* Start the flywheel iteration.This operation uses any new datasets to * train a new model version. For more information about flywheels, see * Flywheel overview in the Amazon Comprehend Developer Guide. *

* * @param startFlywheelIterationRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StartFlywheelIteration service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceInUseException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startFlywheelIterationAsync( StartFlywheelIterationRequest startFlywheelIterationRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous key phrase detection job for a collection of * documents. Use the operation to track the status of a job. *

* * @param startKeyPhrasesDetectionJobRequest * @return A Java Future object containing the response from the * StartKeyPhrasesDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startKeyPhrasesDetectionJobAsync( StartKeyPhrasesDetectionJobRequest startKeyPhrasesDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous key phrase detection job for a collection of * documents. Use the operation to track the status of a job. *

* * @param startKeyPhrasesDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StartKeyPhrasesDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startKeyPhrasesDetectionJobAsync( StartKeyPhrasesDetectionJobRequest startKeyPhrasesDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous PII entity detection job for a collection of * documents. *

* * @param startPiiEntitiesDetectionJobRequest * @return A Java Future object containing the response from the * StartPiiEntitiesDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startPiiEntitiesDetectionJobAsync( StartPiiEntitiesDetectionJobRequest startPiiEntitiesDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous PII entity detection job for a collection of * documents. *

* * @param startPiiEntitiesDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StartPiiEntitiesDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startPiiEntitiesDetectionJobAsync( StartPiiEntitiesDetectionJobRequest startPiiEntitiesDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous sentiment detection job for a collection of * documents. Use the operation to track the status of a job. *

* * @param startSentimentDetectionJobRequest * @return A Java Future object containing the response from the * StartSentimentDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startSentimentDetectionJobAsync( StartSentimentDetectionJobRequest startSentimentDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous sentiment detection job for a collection of * documents. Use the operation to track the status of a job. *

* * @param startSentimentDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StartSentimentDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startSentimentDetectionJobAsync( StartSentimentDetectionJobRequest startSentimentDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous targeted sentiment detection job for a collection * of documents. Use the DescribeTargetedSentimentDetectionJob * operation to track the status of a job. *

* * @param startTargetedSentimentDetectionJobRequest * @return A Java Future object containing the response from the * StartTargetedSentimentDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startTargetedSentimentDetectionJobAsync( StartTargetedSentimentDetectionJobRequest startTargetedSentimentDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous targeted sentiment detection job for a collection * of documents. Use the DescribeTargetedSentimentDetectionJob * operation to track the status of a job. *

* * @param startTargetedSentimentDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StartTargetedSentimentDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startTargetedSentimentDetectionJobAsync( StartTargetedSentimentDetectionJobRequest startTargetedSentimentDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous topic detection job. Use the * DescribeTopicDetectionJob operation to track the status of a * job. *

* * @param startTopicsDetectionJobRequest * @return A Java Future object containing the response from the * StartTopicsDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startTopicsDetectionJobAsync( StartTopicsDetectionJobRequest startTopicsDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Starts an asynchronous topic detection job. Use the * DescribeTopicDetectionJob operation to track the status of a * job. *

* * @param startTopicsDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StartTopicsDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws TooManyTagsException * @throws ResourceInUseException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future startTopicsDetectionJobAsync( StartTopicsDetectionJobRequest startTopicsDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Stops a dominant language detection job in progress. *

*

* If the job state is IN_PROGRESS the job is marked for * termination and put into the STOP_REQUESTED state. If the * job completes before it can be stopped, it is put into the * COMPLETED state; otherwise the job is stopped and put into * the STOPPED state. *

*

* If the job is in the COMPLETED or FAILED state * when you call the StopDominantLanguageDetectionJob * operation, the operation returns a 400 Internal Request Exception. *

*

* When a job is stopped, any documents already processed are written to the * output location. *

* * @param stopDominantLanguageDetectionJobRequest * @return A Java Future object containing the response from the * StopDominantLanguageDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopDominantLanguageDetectionJobAsync( StopDominantLanguageDetectionJobRequest stopDominantLanguageDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Stops a dominant language detection job in progress. *

*

* If the job state is IN_PROGRESS the job is marked for * termination and put into the STOP_REQUESTED state. If the * job completes before it can be stopped, it is put into the * COMPLETED state; otherwise the job is stopped and put into * the STOPPED state. *

*

* If the job is in the COMPLETED or FAILED state * when you call the StopDominantLanguageDetectionJob * operation, the operation returns a 400 Internal Request Exception. *

*

* When a job is stopped, any documents already processed are written to the * output location. *

* * @param stopDominantLanguageDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StopDominantLanguageDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopDominantLanguageDetectionJobAsync( StopDominantLanguageDetectionJobRequest stopDominantLanguageDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Stops an entities detection job in progress. *

*

* If the job state is IN_PROGRESS the job is marked for * termination and put into the STOP_REQUESTED state. If the * job completes before it can be stopped, it is put into the * COMPLETED state; otherwise the job is stopped and put into * the STOPPED state. *

*

* If the job is in the COMPLETED or FAILED state * when you call the StopDominantLanguageDetectionJob * operation, the operation returns a 400 Internal Request Exception. *

*

* When a job is stopped, any documents already processed are written to the * output location. *

* * @param stopEntitiesDetectionJobRequest * @return A Java Future object containing the response from the * StopEntitiesDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopEntitiesDetectionJobAsync( StopEntitiesDetectionJobRequest stopEntitiesDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Stops an entities detection job in progress. *

*

* If the job state is IN_PROGRESS the job is marked for * termination and put into the STOP_REQUESTED state. If the * job completes before it can be stopped, it is put into the * COMPLETED state; otherwise the job is stopped and put into * the STOPPED state. *

*

* If the job is in the COMPLETED or FAILED state * when you call the StopDominantLanguageDetectionJob * operation, the operation returns a 400 Internal Request Exception. *

*

* When a job is stopped, any documents already processed are written to the * output location. *

* * @param stopEntitiesDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StopEntitiesDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopEntitiesDetectionJobAsync( StopEntitiesDetectionJobRequest stopEntitiesDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Stops an events detection job in progress. *

* * @param stopEventsDetectionJobRequest * @return A Java Future object containing the response from the * StopEventsDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopEventsDetectionJobAsync( StopEventsDetectionJobRequest stopEventsDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Stops an events detection job in progress. *

* * @param stopEventsDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StopEventsDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopEventsDetectionJobAsync( StopEventsDetectionJobRequest stopEventsDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Stops a key phrases detection job in progress. *

*

* If the job state is IN_PROGRESS the job is marked for * termination and put into the STOP_REQUESTED state. If the * job completes before it can be stopped, it is put into the * COMPLETED state; otherwise the job is stopped and put into * the STOPPED state. *

*

* If the job is in the COMPLETED or FAILED state * when you call the StopDominantLanguageDetectionJob * operation, the operation returns a 400 Internal Request Exception. *

*

* When a job is stopped, any documents already processed are written to the * output location. *

* * @param stopKeyPhrasesDetectionJobRequest * @return A Java Future object containing the response from the * StopKeyPhrasesDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopKeyPhrasesDetectionJobAsync( StopKeyPhrasesDetectionJobRequest stopKeyPhrasesDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Stops a key phrases detection job in progress. *

*

* If the job state is IN_PROGRESS the job is marked for * termination and put into the STOP_REQUESTED state. If the * job completes before it can be stopped, it is put into the * COMPLETED state; otherwise the job is stopped and put into * the STOPPED state. *

*

* If the job is in the COMPLETED or FAILED state * when you call the StopDominantLanguageDetectionJob * operation, the operation returns a 400 Internal Request Exception. *

*

* When a job is stopped, any documents already processed are written to the * output location. *

* * @param stopKeyPhrasesDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StopKeyPhrasesDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopKeyPhrasesDetectionJobAsync( StopKeyPhrasesDetectionJobRequest stopKeyPhrasesDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Stops a PII entities detection job in progress. *

* * @param stopPiiEntitiesDetectionJobRequest * @return A Java Future object containing the response from the * StopPiiEntitiesDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopPiiEntitiesDetectionJobAsync( StopPiiEntitiesDetectionJobRequest stopPiiEntitiesDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Stops a PII entities detection job in progress. *

* * @param stopPiiEntitiesDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StopPiiEntitiesDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopPiiEntitiesDetectionJobAsync( StopPiiEntitiesDetectionJobRequest stopPiiEntitiesDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Stops a sentiment detection job in progress. *

*

* If the job state is IN_PROGRESS, the job is marked for * termination and put into the STOP_REQUESTED state. If the * job completes before it can be stopped, it is put into the * COMPLETED state; otherwise the job is be stopped and put * into the STOPPED state. *

*

* If the job is in the COMPLETED or FAILED state * when you call the StopDominantLanguageDetectionJob * operation, the operation returns a 400 Internal Request Exception. *

*

* When a job is stopped, any documents already processed are written to the * output location. *

* * @param stopSentimentDetectionJobRequest * @return A Java Future object containing the response from the * StopSentimentDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopSentimentDetectionJobAsync( StopSentimentDetectionJobRequest stopSentimentDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Stops a sentiment detection job in progress. *

*

* If the job state is IN_PROGRESS, the job is marked for * termination and put into the STOP_REQUESTED state. If the * job completes before it can be stopped, it is put into the * COMPLETED state; otherwise the job is be stopped and put * into the STOPPED state. *

*

* If the job is in the COMPLETED or FAILED state * when you call the StopDominantLanguageDetectionJob * operation, the operation returns a 400 Internal Request Exception. *

*

* When a job is stopped, any documents already processed are written to the * output location. *

* * @param stopSentimentDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StopSentimentDetectionJob service method, as returned by Amazon * Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopSentimentDetectionJobAsync( StopSentimentDetectionJobRequest stopSentimentDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Stops a targeted sentiment detection job in progress. *

*

* If the job state is IN_PROGRESS, the job is marked for * termination and put into the STOP_REQUESTED state. If the * job completes before it can be stopped, it is put into the * COMPLETED state; otherwise the job is be stopped and put * into the STOPPED state. *

*

* If the job is in the COMPLETED or FAILED state * when you call the StopDominantLanguageDetectionJob * operation, the operation returns a 400 Internal Request Exception. *

*

* When a job is stopped, any documents already processed are written to the * output location. *

* * @param stopTargetedSentimentDetectionJobRequest * @return A Java Future object containing the response from the * StopTargetedSentimentDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopTargetedSentimentDetectionJobAsync( StopTargetedSentimentDetectionJobRequest stopTargetedSentimentDetectionJobRequest) throws AmazonServiceException, AmazonClientException; /** *

* Stops a targeted sentiment detection job in progress. *

*

* If the job state is IN_PROGRESS, the job is marked for * termination and put into the STOP_REQUESTED state. If the * job completes before it can be stopped, it is put into the * COMPLETED state; otherwise the job is be stopped and put * into the STOPPED state. *

*

* If the job is in the COMPLETED or FAILED state * when you call the StopDominantLanguageDetectionJob * operation, the operation returns a 400 Internal Request Exception. *

*

* When a job is stopped, any documents already processed are written to the * output location. *

* * @param stopTargetedSentimentDetectionJobRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StopTargetedSentimentDetectionJob service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws JobNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopTargetedSentimentDetectionJobAsync( StopTargetedSentimentDetectionJobRequest stopTargetedSentimentDetectionJobRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Stops a document classifier training job while in progress. *

*

* If the training job state is TRAINING, the job is marked for * termination and put into the STOP_REQUESTED state. If the * training job completes before it can be stopped, it is put into the * TRAINED; otherwise the training job is stopped and put into * the STOPPED state and the service sends back an HTTP 200 * response with an empty HTTP body. *

* * @param stopTrainingDocumentClassifierRequest * @return A Java Future object containing the response from the * StopTrainingDocumentClassifier service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopTrainingDocumentClassifierAsync( StopTrainingDocumentClassifierRequest stopTrainingDocumentClassifierRequest) throws AmazonServiceException, AmazonClientException; /** *

* Stops a document classifier training job while in progress. *

*

* If the training job state is TRAINING, the job is marked for * termination and put into the STOP_REQUESTED state. If the * training job completes before it can be stopped, it is put into the * TRAINED; otherwise the training job is stopped and put into * the STOPPED state and the service sends back an HTTP 200 * response with an empty HTTP body. *

* * @param stopTrainingDocumentClassifierRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StopTrainingDocumentClassifier service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopTrainingDocumentClassifierAsync( StopTrainingDocumentClassifierRequest stopTrainingDocumentClassifierRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Stops an entity recognizer training job while in progress. *

*

* If the training job state is TRAINING, the job is marked for * termination and put into the STOP_REQUESTED state. If the * training job completes before it can be stopped, it is put into the * TRAINED; otherwise the training job is stopped and putted * into the STOPPED state and the service sends back an HTTP * 200 response with an empty HTTP body. *

* * @param stopTrainingEntityRecognizerRequest * @return A Java Future object containing the response from the * StopTrainingEntityRecognizer service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopTrainingEntityRecognizerAsync( StopTrainingEntityRecognizerRequest stopTrainingEntityRecognizerRequest) throws AmazonServiceException, AmazonClientException; /** *

* Stops an entity recognizer training job while in progress. *

*

* If the training job state is TRAINING, the job is marked for * termination and put into the STOP_REQUESTED state. If the * training job completes before it can be stopped, it is put into the * TRAINED; otherwise the training job is stopped and putted * into the STOPPED state and the service sends back an HTTP * 200 response with an empty HTTP body. *

* * @param stopTrainingEntityRecognizerRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * StopTrainingEntityRecognizer service method, as returned by * Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future stopTrainingEntityRecognizerAsync( StopTrainingEntityRecognizerRequest stopTrainingEntityRecognizerRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Associates a specific tag with an Amazon Comprehend resource. A tag is a * key-value pair that adds as a metadata to a resource used by Amazon * Comprehend. For example, a tag with "Sales" as the key might be added to * a resource to indicate its use by the sales department. *

* * @param tagResourceRequest * @return A Java Future object containing the response from the TagResource * service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws ConcurrentModificationException * @throws ResourceNotFoundException * @throws TooManyTagsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future tagResourceAsync(TagResourceRequest tagResourceRequest) throws AmazonServiceException, AmazonClientException; /** *

* Associates a specific tag with an Amazon Comprehend resource. A tag is a * key-value pair that adds as a metadata to a resource used by Amazon * Comprehend. For example, a tag with "Sales" as the key might be added to * a resource to indicate its use by the sales department. *

* * @param tagResourceRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the TagResource * service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws ConcurrentModificationException * @throws ResourceNotFoundException * @throws TooManyTagsException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future tagResourceAsync(TagResourceRequest tagResourceRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Removes a specific tag associated with an Amazon Comprehend resource. *

* * @param untagResourceRequest * @return A Java Future object containing the response from the * UntagResource service method, as returned by Amazon Comprehend. * @throws TooManyTagKeysException * @throws InvalidRequestException * @throws ConcurrentModificationException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future untagResourceAsync(UntagResourceRequest untagResourceRequest) throws AmazonServiceException, AmazonClientException; /** *

* Removes a specific tag associated with an Amazon Comprehend resource. *

* * @param untagResourceRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * UntagResource service method, as returned by Amazon Comprehend. * @throws TooManyTagKeysException * @throws InvalidRequestException * @throws ConcurrentModificationException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future untagResourceAsync(UntagResourceRequest untagResourceRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Updates information about the specified endpoint. For information about * endpoints, see Managing endpoints. *

* * @param updateEndpointRequest * @return A Java Future object containing the response from the * UpdateEndpoint service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceInUseException * @throws ResourceLimitExceededException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future updateEndpointAsync(UpdateEndpointRequest updateEndpointRequest) throws AmazonServiceException, AmazonClientException; /** *

* Updates information about the specified endpoint. For information about * endpoints, see Managing endpoints. *

* * @param updateEndpointRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * UpdateEndpoint service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws ResourceInUseException * @throws ResourceLimitExceededException * @throws ResourceNotFoundException * @throws ResourceUnavailableException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future updateEndpointAsync(UpdateEndpointRequest updateEndpointRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

* Update the configuration information for an existing flywheel. *

* * @param updateFlywheelRequest * @return A Java Future object containing the response from the * UpdateFlywheel service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future updateFlywheelAsync(UpdateFlywheelRequest updateFlywheelRequest) throws AmazonServiceException, AmazonClientException; /** *

* Update the configuration information for an existing flywheel. *

* * @param updateFlywheelRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the * UpdateFlywheel service method, as returned by Amazon Comprehend. * @throws InvalidRequestException * @throws TooManyRequestsException * @throws KmsKeyValidationException * @throws ResourceNotFoundException * @throws InternalServerException * @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 * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Comprehend indicating either a problem with the data in the * request, or a server side issue. */ Future updateFlywheelAsync(UpdateFlywheelRequest updateFlywheelRequest, AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; }