@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() |
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, copyBaseTo, 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, withSdkRequestTimeoutpublic 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".
sourceLanguageCode - One of the supported language codes for the source text. If the TargetLanguageCode is not
"en", the SourceLanguageCode must be "en".public String getSourceLanguageCode()
One of the supported language codes for the source text. If the TargetLanguageCode is not "en", the
SourceLanguageCode must be "en".
TargetLanguageCode is not
"en", the SourceLanguageCode must be "en".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".
sourceLanguageCode - One of the supported language codes for the source text. If the TargetLanguageCode is not
"en", the SourceLanguageCode must be "en".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 ObjectObject.toString()public TranslateTextRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2018. All rights reserved.