@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
|Modifier and Type||Method and Description|
Returns additional metadata for a previously executed successful request, typically used for debugging issues where a service isn't acting as expected.
Shuts down this client object, releasing any resources that might be held open.
Translates input text from the source language to the target language.
public TranslateTextResult translateText(TranslateTextRequest request)
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.
Chinese (Simplified) (zh)
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.
public void shutdown()
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response 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.
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.