@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonTranslate extends Object implements AmazonTranslate
AmazonTranslate. Convenient method forms pass through to the corresponding
overload that takes a request object, which throws an UnsupportedOperationException.ENDPOINT_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAmazonTranslate() |
| Modifier and Type | Method and Description |
|---|---|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
TranslateTextResult |
translateText(TranslateTextRequest request)
Translates input text from the source language to the target language.
|
public TranslateTextResult translateText(TranslateTextRequest request)
AmazonTranslateTranslates 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)
translateText in interface AmazonTranslatepublic void shutdown()
AmazonTranslateshutdown in interface AmazonTranslatepublic ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonTranslateResponse metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
getCachedResponseMetadata in interface AmazonTranslaterequest - The originally executed request.Copyright © 2018. All rights reserved.