@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, translateTextFuture<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)
To have Amazon Translate determine the source language of your text, you can specify auto in the
SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon
Comprehend to determine the source language.
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)
To have Amazon Translate determine the source language of your text, you can specify auto in the
SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon
Comprehend to determine the source language.
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 © 2018. All rights reserved.