@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| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAmazonTranslateAsync() |
| Modifier and Type | Method and Description |
|---|---|
Future<TranslateTextResult> |
translateTextAsync(TranslateTextRequest request)
Translates input text from the source language to the target language.
|
Future<TranslateTextResult> |
translateTextAsync(TranslateTextRequest request,
AsyncHandler<TranslateTextRequest,TranslateTextResult> asyncHandler)
Translates input text from the source language to the target language.
|
getCachedResponseMetadata, shutdown, translateTextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCachedResponseMetadata, shutdown, translateTextpublic Future<TranslateTextResult> translateTextAsync(TranslateTextRequest request)
AmazonTranslateAsyncTranslates 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)
translateTextAsync in interface AmazonTranslateAsyncpublic Future<TranslateTextResult> translateTextAsync(TranslateTextRequest request, AsyncHandler<TranslateTextRequest,TranslateTextResult> asyncHandler)
AmazonTranslateAsyncTranslates 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)
translateTextAsync in interface AmazonTranslateAsyncasyncHandler - 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.