public static interface TranslateTextRequest.Builder extends TranslateRequest.Builder, SdkPojo, CopyableBuilder<TranslateTextRequest.Builder,TranslateTextRequest>
| Modifier and Type | Method and Description |
|---|---|
TranslateTextRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
TranslateTextRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
TranslateTextRequest.Builder |
sourceLanguageCode(String sourceLanguageCode)
One of the supported language codes for the source text.
|
TranslateTextRequest.Builder |
targetLanguageCode(String targetLanguageCode)
One of the supported language codes for the target text.
|
TranslateTextRequest.Builder |
text(String text)
The text to translate.
|
buildoverrideConfigurationcopyapplyMutation, buildTranslateTextRequest.Builder text(String text)
The text to translate.
text - The text to translate.TranslateTextRequest.Builder sourceLanguageCode(String sourceLanguageCode)
One of the supported language codes for the source text. If the TargetLanguageCode is not "en",
the SourceLanguageCode must be "en".
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.
sourceLanguageCode - One of the supported language codes for the source text. If the TargetLanguageCode is not
"en", the SourceLanguageCode must be "en".
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.Builder targetLanguageCode(String targetLanguageCode)
One of the supported language codes for the target text. If the SourceLanguageCode is not "en",
the TargetLanguageCode must be "en".
targetLanguageCode - One of the supported language codes for the target text. If the SourceLanguageCode is not
"en", the TargetLanguageCode must be "en".TranslateTextRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderTranslateTextRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2018. All rights reserved.