@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AmazonTranslateAsync extends AmazonTranslate
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonTranslateAsync
instead.
Provides translation between English and one of six languages, or between one of the six languages and English.
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
Future<TranslateTextResult> |
translateTextAsync(TranslateTextRequest translateTextRequest)
Translates input text from the source language to the target language.
|
Future<TranslateTextResult> |
translateTextAsync(TranslateTextRequest translateTextRequest,
AsyncHandler<TranslateTextRequest,TranslateTextResult> asyncHandler)
Translates input text from the source language to the target language.
|
getCachedResponseMetadata, shutdown, translateText
Future<TranslateTextResult> translateTextAsync(TranslateTextRequest translateTextRequest)
Translates input text from the source language to the target language. You can translate between English (en) and one of the following languages, or between one of the following languages and English.
Arabic (ar)
Chinese (Simplified) (zh)
French (fr)
German (de)
Portuguese (pt)
Spanish (es)
translateTextRequest
- Future<TranslateTextResult> translateTextAsync(TranslateTextRequest translateTextRequest, AsyncHandler<TranslateTextRequest,TranslateTextResult> asyncHandler)
Translates input text from the source language to the target language. You can translate between English (en) and one of the following languages, or between one of the following languages and English.
Arabic (ar)
Chinese (Simplified) (zh)
French (fr)
German (de)
Portuguese (pt)
Spanish (es)
translateTextRequest
- 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.