@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 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)
AmazonTranslate
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.
translateText
in interface AmazonTranslate
public void shutdown()
AmazonTranslate
shutdown
in interface AmazonTranslate
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonTranslate
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.
getCachedResponseMetadata
in interface AmazonTranslate
request
- The originally executed request.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.