@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TranslateTextRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
TranslateTextRequest() |
Modifier and Type | Method and Description |
---|---|
TranslateTextRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getSourceLanguageCode()
One of the supported language codes for the source text.
|
String |
getTargetLanguageCode()
One of the supported language codes for the target text.
|
String |
getText()
The text to translate.
|
int |
hashCode() |
void |
setSourceLanguageCode(String sourceLanguageCode)
One of the supported language codes for the source text.
|
void |
setTargetLanguageCode(String targetLanguageCode)
One of the supported language codes for the target text.
|
void |
setText(String text)
The text to translate.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TranslateTextRequest |
withSourceLanguageCode(String sourceLanguageCode)
One of the supported language codes for the source text.
|
TranslateTextRequest |
withTargetLanguageCode(String targetLanguageCode)
One of the supported language codes for the target text.
|
TranslateTextRequest |
withText(String text)
The text to translate.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setText(String text)
The text to translate.
text
- The text to translate.public String getText()
The text to translate.
public TranslateTextRequest withText(String text)
The text to translate.
text
- The text to translate.public void setSourceLanguageCode(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.
public String getSourceLanguageCode()
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 TranslateTextRequest withSourceLanguageCode(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.
public void setTargetLanguageCode(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".public String getTargetLanguageCode()
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 withTargetLanguageCode(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".public String toString()
toString
in class Object
Object.toString()
public TranslateTextRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.