public interface AmazonTranslateAsync extends AmazonTranslate
Provides translation between one source language and another of the same set of languages.
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Future<CreateParallelDataResult> |
createParallelDataAsync(CreateParallelDataRequest createParallelDataRequest)
Creates a parallel data resource in Amazon Translate by importing an
input file from Amazon S3.
|
java.util.concurrent.Future<CreateParallelDataResult> |
createParallelDataAsync(CreateParallelDataRequest createParallelDataRequest,
AsyncHandler<CreateParallelDataRequest,CreateParallelDataResult> asyncHandler)
Creates a parallel data resource in Amazon Translate by importing an
input file from Amazon S3.
|
java.util.concurrent.Future<DeleteParallelDataResult> |
deleteParallelDataAsync(DeleteParallelDataRequest deleteParallelDataRequest)
Deletes a parallel data resource in Amazon Translate.
|
java.util.concurrent.Future<DeleteParallelDataResult> |
deleteParallelDataAsync(DeleteParallelDataRequest deleteParallelDataRequest,
AsyncHandler<DeleteParallelDataRequest,DeleteParallelDataResult> asyncHandler)
Deletes a parallel data resource in Amazon Translate.
|
java.util.concurrent.Future<java.lang.Void> |
deleteTerminologyAsync(DeleteTerminologyRequest deleteTerminologyRequest)
A synchronous action that deletes a custom terminology.
|
java.util.concurrent.Future<java.lang.Void> |
deleteTerminologyAsync(DeleteTerminologyRequest deleteTerminologyRequest,
AsyncHandler<DeleteTerminologyRequest,java.lang.Void> asyncHandler)
A synchronous action that deletes a custom terminology.
|
java.util.concurrent.Future<DescribeTextTranslationJobResult> |
describeTextTranslationJobAsync(DescribeTextTranslationJobRequest describeTextTranslationJobRequest)
Gets the properties associated with an asycnhronous batch translation job
including name, ID, status, source and target languages, input/output S3
buckets, and so on.
|
java.util.concurrent.Future<DescribeTextTranslationJobResult> |
describeTextTranslationJobAsync(DescribeTextTranslationJobRequest describeTextTranslationJobRequest,
AsyncHandler<DescribeTextTranslationJobRequest,DescribeTextTranslationJobResult> asyncHandler)
Gets the properties associated with an asycnhronous batch translation job
including name, ID, status, source and target languages, input/output S3
buckets, and so on.
|
java.util.concurrent.Future<GetParallelDataResult> |
getParallelDataAsync(GetParallelDataRequest getParallelDataRequest)
Provides information about a parallel data resource.
|
java.util.concurrent.Future<GetParallelDataResult> |
getParallelDataAsync(GetParallelDataRequest getParallelDataRequest,
AsyncHandler<GetParallelDataRequest,GetParallelDataResult> asyncHandler)
Provides information about a parallel data resource.
|
java.util.concurrent.Future<GetTerminologyResult> |
getTerminologyAsync(GetTerminologyRequest getTerminologyRequest)
Retrieves a custom terminology.
|
java.util.concurrent.Future<GetTerminologyResult> |
getTerminologyAsync(GetTerminologyRequest getTerminologyRequest,
AsyncHandler<GetTerminologyRequest,GetTerminologyResult> asyncHandler)
Retrieves a custom terminology.
|
java.util.concurrent.Future<ImportTerminologyResult> |
importTerminologyAsync(ImportTerminologyRequest importTerminologyRequest)
Creates or updates a custom terminology, depending on whether or not one
already exists for the given terminology name.
|
java.util.concurrent.Future<ImportTerminologyResult> |
importTerminologyAsync(ImportTerminologyRequest importTerminologyRequest,
AsyncHandler<ImportTerminologyRequest,ImportTerminologyResult> asyncHandler)
Creates or updates a custom terminology, depending on whether or not one
already exists for the given terminology name.
|
java.util.concurrent.Future<ListParallelDataResult> |
listParallelDataAsync(ListParallelDataRequest listParallelDataRequest)
Provides a list of your parallel data resources in Amazon Translate.
|
java.util.concurrent.Future<ListParallelDataResult> |
listParallelDataAsync(ListParallelDataRequest listParallelDataRequest,
AsyncHandler<ListParallelDataRequest,ListParallelDataResult> asyncHandler)
Provides a list of your parallel data resources in Amazon Translate.
|
java.util.concurrent.Future<ListTerminologiesResult> |
listTerminologiesAsync(ListTerminologiesRequest listTerminologiesRequest)
Provides a list of custom terminologies associated with your account.
|
java.util.concurrent.Future<ListTerminologiesResult> |
listTerminologiesAsync(ListTerminologiesRequest listTerminologiesRequest,
AsyncHandler<ListTerminologiesRequest,ListTerminologiesResult> asyncHandler)
Provides a list of custom terminologies associated with your account.
|
java.util.concurrent.Future<ListTextTranslationJobsResult> |
listTextTranslationJobsAsync(ListTextTranslationJobsRequest listTextTranslationJobsRequest)
Gets a list of the batch translation jobs that you have submitted.
|
java.util.concurrent.Future<ListTextTranslationJobsResult> |
listTextTranslationJobsAsync(ListTextTranslationJobsRequest listTextTranslationJobsRequest,
AsyncHandler<ListTextTranslationJobsRequest,ListTextTranslationJobsResult> asyncHandler)
Gets a list of the batch translation jobs that you have submitted.
|
java.util.concurrent.Future<StartTextTranslationJobResult> |
startTextTranslationJobAsync(StartTextTranslationJobRequest startTextTranslationJobRequest)
Starts an asynchronous batch translation job.
|
java.util.concurrent.Future<StartTextTranslationJobResult> |
startTextTranslationJobAsync(StartTextTranslationJobRequest startTextTranslationJobRequest,
AsyncHandler<StartTextTranslationJobRequest,StartTextTranslationJobResult> asyncHandler)
Starts an asynchronous batch translation job.
|
java.util.concurrent.Future<StopTextTranslationJobResult> |
stopTextTranslationJobAsync(StopTextTranslationJobRequest stopTextTranslationJobRequest)
Stops an asynchronous batch translation job that is in progress.
|
java.util.concurrent.Future<StopTextTranslationJobResult> |
stopTextTranslationJobAsync(StopTextTranslationJobRequest stopTextTranslationJobRequest,
AsyncHandler<StopTextTranslationJobRequest,StopTextTranslationJobResult> asyncHandler)
Stops an asynchronous batch translation job that is in progress.
|
java.util.concurrent.Future<TranslateTextResult> |
translateTextAsync(TranslateTextRequest translateTextRequest)
Translates input text from the source language to the target language.
|
java.util.concurrent.Future<TranslateTextResult> |
translateTextAsync(TranslateTextRequest translateTextRequest,
AsyncHandler<TranslateTextRequest,TranslateTextResult> asyncHandler)
Translates input text from the source language to the target language.
|
java.util.concurrent.Future<UpdateParallelDataResult> |
updateParallelDataAsync(UpdateParallelDataRequest updateParallelDataRequest)
Updates a previously created parallel data resource by importing a new
input file from Amazon S3.
|
java.util.concurrent.Future<UpdateParallelDataResult> |
updateParallelDataAsync(UpdateParallelDataRequest updateParallelDataRequest,
AsyncHandler<UpdateParallelDataRequest,UpdateParallelDataResult> asyncHandler)
Updates a previously created parallel data resource by importing a new
input file from Amazon S3.
|
createParallelData, deleteParallelData, deleteTerminology, describeTextTranslationJob, getCachedResponseMetadata, getParallelData, getTerminology, importTerminology, listParallelData, listTerminologies, listTextTranslationJobs, setEndpoint, setRegion, shutdown, startTextTranslationJob, stopTextTranslationJob, translateText, updateParallelData
java.util.concurrent.Future<CreateParallelDataResult> createParallelDataAsync(CreateParallelDataRequest createParallelDataRequest) throws AmazonServiceException, AmazonClientException
Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3. Parallel data files contain examples of source phrases and their translations from your translation memory. By adding parallel data, you can influence the style, tone, and word choice in your translation output.
createParallelDataRequest
- InvalidParameterValueException
InvalidRequestException
LimitExceededException
TooManyRequestsException
ConflictException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<CreateParallelDataResult> createParallelDataAsync(CreateParallelDataRequest createParallelDataRequest, AsyncHandler<CreateParallelDataRequest,CreateParallelDataResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3. Parallel data files contain examples of source phrases and their translations from your translation memory. By adding parallel data, you can influence the style, tone, and word choice in your translation output.
createParallelDataRequest
- 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.InvalidParameterValueException
InvalidRequestException
LimitExceededException
TooManyRequestsException
ConflictException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<DeleteParallelDataResult> deleteParallelDataAsync(DeleteParallelDataRequest deleteParallelDataRequest) throws AmazonServiceException, AmazonClientException
Deletes a parallel data resource in Amazon Translate.
deleteParallelDataRequest
- ConcurrentModificationException
ResourceNotFoundException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<DeleteParallelDataResult> deleteParallelDataAsync(DeleteParallelDataRequest deleteParallelDataRequest, AsyncHandler<DeleteParallelDataRequest,DeleteParallelDataResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes a parallel data resource in Amazon Translate.
deleteParallelDataRequest
- 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.ConcurrentModificationException
ResourceNotFoundException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<java.lang.Void> deleteTerminologyAsync(DeleteTerminologyRequest deleteTerminologyRequest) throws AmazonServiceException, AmazonClientException
A synchronous action that deletes a custom terminology.
deleteTerminologyRequest
- ResourceNotFoundException
TooManyRequestsException
InvalidParameterValueException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<java.lang.Void> deleteTerminologyAsync(DeleteTerminologyRequest deleteTerminologyRequest, AsyncHandler<DeleteTerminologyRequest,java.lang.Void> asyncHandler) throws AmazonServiceException, AmazonClientException
A synchronous action that deletes a custom terminology.
deleteTerminologyRequest
- 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.ResourceNotFoundException
TooManyRequestsException
InvalidParameterValueException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<DescribeTextTranslationJobResult> describeTextTranslationJobAsync(DescribeTextTranslationJobRequest describeTextTranslationJobRequest) throws AmazonServiceException, AmazonClientException
Gets the properties associated with an asycnhronous batch translation job including name, ID, status, source and target languages, input/output S3 buckets, and so on.
describeTextTranslationJobRequest
- ResourceNotFoundException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<DescribeTextTranslationJobResult> describeTextTranslationJobAsync(DescribeTextTranslationJobRequest describeTextTranslationJobRequest, AsyncHandler<DescribeTextTranslationJobRequest,DescribeTextTranslationJobResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Gets the properties associated with an asycnhronous batch translation job including name, ID, status, source and target languages, input/output S3 buckets, and so on.
describeTextTranslationJobRequest
- 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.ResourceNotFoundException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<GetParallelDataResult> getParallelDataAsync(GetParallelDataRequest getParallelDataRequest) throws AmazonServiceException, AmazonClientException
Provides information about a parallel data resource.
getParallelDataRequest
- ResourceNotFoundException
InvalidParameterValueException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<GetParallelDataResult> getParallelDataAsync(GetParallelDataRequest getParallelDataRequest, AsyncHandler<GetParallelDataRequest,GetParallelDataResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Provides information about a parallel data resource.
getParallelDataRequest
- 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.ResourceNotFoundException
InvalidParameterValueException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<GetTerminologyResult> getTerminologyAsync(GetTerminologyRequest getTerminologyRequest) throws AmazonServiceException, AmazonClientException
Retrieves a custom terminology.
getTerminologyRequest
- ResourceNotFoundException
InvalidParameterValueException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<GetTerminologyResult> getTerminologyAsync(GetTerminologyRequest getTerminologyRequest, AsyncHandler<GetTerminologyRequest,GetTerminologyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves a custom terminology.
getTerminologyRequest
- 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.ResourceNotFoundException
InvalidParameterValueException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<ImportTerminologyResult> importTerminologyAsync(ImportTerminologyRequest importTerminologyRequest) throws AmazonServiceException, AmazonClientException
Creates or updates a custom terminology, depending on whether or not one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. Currently, the only supported merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing terminology of the same name.
If you import a terminology that overwrites an existing one, the new terminology take up to 10 minutes to fully propagate and be available for use in a translation due to cache policies with the DataPlane service that performs the translations.
importTerminologyRequest
- InvalidParameterValueException
LimitExceededException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<ImportTerminologyResult> importTerminologyAsync(ImportTerminologyRequest importTerminologyRequest, AsyncHandler<ImportTerminologyRequest,ImportTerminologyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates or updates a custom terminology, depending on whether or not one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. Currently, the only supported merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing terminology of the same name.
If you import a terminology that overwrites an existing one, the new terminology take up to 10 minutes to fully propagate and be available for use in a translation due to cache policies with the DataPlane service that performs the translations.
importTerminologyRequest
- 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.InvalidParameterValueException
LimitExceededException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<ListParallelDataResult> listParallelDataAsync(ListParallelDataRequest listParallelDataRequest) throws AmazonServiceException, AmazonClientException
Provides a list of your parallel data resources in Amazon Translate.
listParallelDataRequest
- InvalidParameterValueException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<ListParallelDataResult> listParallelDataAsync(ListParallelDataRequest listParallelDataRequest, AsyncHandler<ListParallelDataRequest,ListParallelDataResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Provides a list of your parallel data resources in Amazon Translate.
listParallelDataRequest
- 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.InvalidParameterValueException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<ListTerminologiesResult> listTerminologiesAsync(ListTerminologiesRequest listTerminologiesRequest) throws AmazonServiceException, AmazonClientException
Provides a list of custom terminologies associated with your account.
listTerminologiesRequest
- InvalidParameterValueException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<ListTerminologiesResult> listTerminologiesAsync(ListTerminologiesRequest listTerminologiesRequest, AsyncHandler<ListTerminologiesRequest,ListTerminologiesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Provides a list of custom terminologies associated with your account.
listTerminologiesRequest
- 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.InvalidParameterValueException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<ListTextTranslationJobsResult> listTextTranslationJobsAsync(ListTextTranslationJobsRequest listTextTranslationJobsRequest) throws AmazonServiceException, AmazonClientException
Gets a list of the batch translation jobs that you have submitted.
listTextTranslationJobsRequest
- InvalidRequestException
TooManyRequestsException
InvalidFilterException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<ListTextTranslationJobsResult> listTextTranslationJobsAsync(ListTextTranslationJobsRequest listTextTranslationJobsRequest, AsyncHandler<ListTextTranslationJobsRequest,ListTextTranslationJobsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Gets a list of the batch translation jobs that you have submitted.
listTextTranslationJobsRequest
- 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.InvalidRequestException
TooManyRequestsException
InvalidFilterException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<StartTextTranslationJobResult> startTextTranslationJobAsync(StartTextTranslationJobRequest startTextTranslationJobRequest) throws AmazonServiceException, AmazonClientException
Starts an asynchronous batch translation job. Batch translation jobs can be used to translate large volumes of text across multiple documents at once. For more information, see async.
Batch translation jobs can be described with the DescribeTextTranslationJob operation, listed with the ListTextTranslationJobs operation, and stopped with the StopTextTranslationJob operation.
Amazon Translate does not support batch translation of multiple source languages at once.
startTextTranslationJobRequest
- TooManyRequestsException
UnsupportedLanguagePairException
InvalidRequestException
ResourceNotFoundException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<StartTextTranslationJobResult> startTextTranslationJobAsync(StartTextTranslationJobRequest startTextTranslationJobRequest, AsyncHandler<StartTextTranslationJobRequest,StartTextTranslationJobResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Starts an asynchronous batch translation job. Batch translation jobs can be used to translate large volumes of text across multiple documents at once. For more information, see async.
Batch translation jobs can be described with the DescribeTextTranslationJob operation, listed with the ListTextTranslationJobs operation, and stopped with the StopTextTranslationJob operation.
Amazon Translate does not support batch translation of multiple source languages at once.
startTextTranslationJobRequest
- 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.TooManyRequestsException
UnsupportedLanguagePairException
InvalidRequestException
ResourceNotFoundException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<StopTextTranslationJobResult> stopTextTranslationJobAsync(StopTextTranslationJobRequest stopTextTranslationJobRequest) throws AmazonServiceException, AmazonClientException
Stops an asynchronous batch translation job that is in progress.
If the job's state is IN_PROGRESS
, the job will be 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 put into the
STOPPED
state.
Asynchronous batch translation jobs are started with the
StartTextTranslationJob operation. You can use the
DescribeTextTranslationJob or ListTextTranslationJobs
operations to get a batch translation job's JobId
.
stopTextTranslationJobRequest
- ResourceNotFoundException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<StopTextTranslationJobResult> stopTextTranslationJobAsync(StopTextTranslationJobRequest stopTextTranslationJobRequest, AsyncHandler<StopTextTranslationJobRequest,StopTextTranslationJobResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Stops an asynchronous batch translation job that is in progress.
If the job's state is IN_PROGRESS
, the job will be 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 put into the
STOPPED
state.
Asynchronous batch translation jobs are started with the
StartTextTranslationJob operation. You can use the
DescribeTextTranslationJob or ListTextTranslationJobs
operations to get a batch translation job's JobId
.
stopTextTranslationJobRequest
- 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.ResourceNotFoundException
TooManyRequestsException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<TranslateTextResult> translateTextAsync(TranslateTextRequest translateTextRequest) throws AmazonServiceException, AmazonClientException
Translates input text from the source language to the target language. For a list of available languages and language codes, see what-is-languages.
translateTextRequest
- InvalidRequestException
TextSizeLimitExceededException
TooManyRequestsException
UnsupportedLanguagePairException
DetectedLanguageLowConfidenceException
ResourceNotFoundException
InternalServerException
ServiceUnavailableException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<TranslateTextResult> translateTextAsync(TranslateTextRequest translateTextRequest, AsyncHandler<TranslateTextRequest,TranslateTextResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Translates input text from the source language to the target language. For a list of available languages and language codes, see what-is-languages.
translateTextRequest
- 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.InvalidRequestException
TextSizeLimitExceededException
TooManyRequestsException
UnsupportedLanguagePairException
DetectedLanguageLowConfidenceException
ResourceNotFoundException
InternalServerException
ServiceUnavailableException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<UpdateParallelDataResult> updateParallelDataAsync(UpdateParallelDataRequest updateParallelDataRequest) throws AmazonServiceException, AmazonClientException
Updates a previously created parallel data resource by importing a new input file from Amazon S3.
updateParallelDataRequest
- ConcurrentModificationException
InvalidParameterValueException
InvalidRequestException
LimitExceededException
TooManyRequestsException
ConflictException
ResourceNotFoundException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.java.util.concurrent.Future<UpdateParallelDataResult> updateParallelDataAsync(UpdateParallelDataRequest updateParallelDataRequest, AsyncHandler<UpdateParallelDataRequest,UpdateParallelDataResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Updates a previously created parallel data resource by importing a new input file from Amazon S3.
updateParallelDataRequest
- 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.ConcurrentModificationException
InvalidParameterValueException
InvalidRequestException
LimitExceededException
TooManyRequestsException
ConflictException
ResourceNotFoundException
InternalServerException
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.AmazonServiceException
- If an error response is returned by Amazon
Translate indicating either a problem with the data in the
request, or a server side issue.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.