@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonTranslateAsync extends AbstractAmazonTranslate implements AmazonTranslateAsync
AmazonTranslateAsync
. Convenient method forms pass through to the corresponding
overload that takes a request object and an AsyncHandler
, which throws an
UnsupportedOperationException
.ENDPOINT_PREFIX
deleteTerminology, describeTextTranslationJob, getCachedResponseMetadata, getTerminology, importTerminology, listTerminologies, listTextTranslationJobs, shutdown, startTextTranslationJob, stopTextTranslationJob, translateText
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteTerminology, describeTextTranslationJob, getCachedResponseMetadata, getTerminology, importTerminology, listTerminologies, listTextTranslationJobs, shutdown, startTextTranslationJob, stopTextTranslationJob, translateText
public Future<DeleteTerminologyResult> deleteTerminologyAsync(DeleteTerminologyRequest request)
AmazonTranslateAsync
A synchronous action that deletes a custom terminology.
deleteTerminologyAsync
in interface AmazonTranslateAsync
public Future<DeleteTerminologyResult> deleteTerminologyAsync(DeleteTerminologyRequest request, AsyncHandler<DeleteTerminologyRequest,DeleteTerminologyResult> asyncHandler)
AmazonTranslateAsync
A synchronous action that deletes a custom terminology.
deleteTerminologyAsync
in interface AmazonTranslateAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeTextTranslationJobResult> describeTextTranslationJobAsync(DescribeTextTranslationJobRequest request)
AmazonTranslateAsync
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.
describeTextTranslationJobAsync
in interface AmazonTranslateAsync
public Future<DescribeTextTranslationJobResult> describeTextTranslationJobAsync(DescribeTextTranslationJobRequest request, AsyncHandler<DescribeTextTranslationJobRequest,DescribeTextTranslationJobResult> asyncHandler)
AmazonTranslateAsync
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.
describeTextTranslationJobAsync
in interface AmazonTranslateAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetTerminologyResult> getTerminologyAsync(GetTerminologyRequest request)
AmazonTranslateAsync
Retrieves a custom terminology.
getTerminologyAsync
in interface AmazonTranslateAsync
public Future<GetTerminologyResult> getTerminologyAsync(GetTerminologyRequest request, AsyncHandler<GetTerminologyRequest,GetTerminologyResult> asyncHandler)
AmazonTranslateAsync
Retrieves a custom terminology.
getTerminologyAsync
in interface AmazonTranslateAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ImportTerminologyResult> importTerminologyAsync(ImportTerminologyRequest request)
AmazonTranslateAsync
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.
importTerminologyAsync
in interface AmazonTranslateAsync
public Future<ImportTerminologyResult> importTerminologyAsync(ImportTerminologyRequest request, AsyncHandler<ImportTerminologyRequest,ImportTerminologyResult> asyncHandler)
AmazonTranslateAsync
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.
importTerminologyAsync
in interface AmazonTranslateAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTerminologiesResult> listTerminologiesAsync(ListTerminologiesRequest request)
AmazonTranslateAsync
Provides a list of custom terminologies associated with your account.
listTerminologiesAsync
in interface AmazonTranslateAsync
public Future<ListTerminologiesResult> listTerminologiesAsync(ListTerminologiesRequest request, AsyncHandler<ListTerminologiesRequest,ListTerminologiesResult> asyncHandler)
AmazonTranslateAsync
Provides a list of custom terminologies associated with your account.
listTerminologiesAsync
in interface AmazonTranslateAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTextTranslationJobsResult> listTextTranslationJobsAsync(ListTextTranslationJobsRequest request)
AmazonTranslateAsync
Gets a list of the batch translation jobs that you have submitted.
listTextTranslationJobsAsync
in interface AmazonTranslateAsync
public Future<ListTextTranslationJobsResult> listTextTranslationJobsAsync(ListTextTranslationJobsRequest request, AsyncHandler<ListTextTranslationJobsRequest,ListTextTranslationJobsResult> asyncHandler)
AmazonTranslateAsync
Gets a list of the batch translation jobs that you have submitted.
listTextTranslationJobsAsync
in interface AmazonTranslateAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartTextTranslationJobResult> startTextTranslationJobAsync(StartTextTranslationJobRequest request)
AmazonTranslateAsync
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.
startTextTranslationJobAsync
in interface AmazonTranslateAsync
public Future<StartTextTranslationJobResult> startTextTranslationJobAsync(StartTextTranslationJobRequest request, AsyncHandler<StartTextTranslationJobRequest,StartTextTranslationJobResult> asyncHandler)
AmazonTranslateAsync
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.
startTextTranslationJobAsync
in interface AmazonTranslateAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopTextTranslationJobResult> stopTextTranslationJobAsync(StopTextTranslationJobRequest request)
AmazonTranslateAsync
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
.
stopTextTranslationJobAsync
in interface AmazonTranslateAsync
public Future<StopTextTranslationJobResult> stopTextTranslationJobAsync(StopTextTranslationJobRequest request, AsyncHandler<StopTextTranslationJobRequest,StopTextTranslationJobResult> asyncHandler)
AmazonTranslateAsync
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
.
stopTextTranslationJobAsync
in interface AmazonTranslateAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TranslateTextResult> translateTextAsync(TranslateTextRequest request)
AmazonTranslateAsync
Translates input text from the source language to the target language. For a list of available languages and language codes, see what-is-languages.
translateTextAsync
in interface AmazonTranslateAsync
public Future<TranslateTextResult> translateTextAsync(TranslateTextRequest request, AsyncHandler<TranslateTextRequest,TranslateTextResult> asyncHandler)
AmazonTranslateAsync
Translates input text from the source language to the target language. For a list of available languages and language codes, see what-is-languages.
translateTextAsync
in interface AmazonTranslateAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.