@Generated(value="software.amazon.awssdk:codegen") public final class TranslateTextRequest extends TranslateRequest implements ToCopyableBuilder<TranslateTextRequest.Builder,TranslateTextRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
TranslateTextRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TranslateTextRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends TranslateTextRequest.Builder> |
serializableBuilderClass() |
String |
sourceLanguageCode()
One of the supported language codes for the source text.
|
String |
targetLanguageCode()
One of the supported language codes for the target text.
|
String |
text()
The text to translate.
|
TranslateTextRequest.Builder |
toBuilder() |
String |
toString() |
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String text()
The text to translate.
public 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.
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.
public String targetLanguageCode()
One of the supported language codes for the target text. If the SourceLanguageCode is not "en", the
TargetLanguageCode must be "en".
SourceLanguageCode is not
"en", the TargetLanguageCode must be "en".public TranslateTextRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TranslateTextRequest.Builder,TranslateTextRequest>toBuilder in class TranslateRequestpublic static TranslateTextRequest.Builder builder()
public static Class<? extends TranslateTextRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2018. All rights reserved.