@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()
The language code for the language of the source text.
|
String |
getTargetLanguageCode()
The language code requested for the language of the target text.
|
List<String> |
getTerminologyNames()
The TerminologyNames list that is taken as input to the TranslateText request.
|
String |
getText()
The text to translate.
|
int |
hashCode() |
void |
setSourceLanguageCode(String sourceLanguageCode)
The language code for the language of the source text.
|
void |
setTargetLanguageCode(String targetLanguageCode)
The language code requested for the language of the target text.
|
void |
setTerminologyNames(Collection<String> terminologyNames)
The TerminologyNames list that is taken as input to the TranslateText request.
|
void |
setText(String text)
The text to translate.
|
String |
toString()
Returns a string representation of this object.
|
TranslateTextRequest |
withSourceLanguageCode(String sourceLanguageCode)
The language code for the language of the source text.
|
TranslateTextRequest |
withTargetLanguageCode(String targetLanguageCode)
The language code requested for the language of the target text.
|
TranslateTextRequest |
withTerminologyNames(Collection<String> terminologyNames)
The TerminologyNames list that is taken as input to the TranslateText request.
|
TranslateTextRequest |
withTerminologyNames(String... terminologyNames)
The TerminologyNames list that is taken as input to the TranslateText request.
|
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. The text string can be a maximum of 5,000 bytes long. Depending on your character set, this may be fewer than 5,000 characters.
text
- The text to translate. The text string can be a maximum of 5,000 bytes long. Depending on your character
set, this may be fewer than 5,000 characters.public String getText()
The text to translate. The text string can be a maximum of 5,000 bytes long. Depending on your character set, this may be fewer than 5,000 characters.
public TranslateTextRequest withText(String text)
The text to translate. The text string can be a maximum of 5,000 bytes long. Depending on your character set, this may be fewer than 5,000 characters.
text
- The text to translate. The text string can be a maximum of 5,000 bytes long. Depending on your character
set, this may be fewer than 5,000 characters.public List<String> getTerminologyNames()
The TerminologyNames list that is taken as input to the TranslateText request. This has a minimum length of 0 and a maximum length of 1.
public void setTerminologyNames(Collection<String> terminologyNames)
The TerminologyNames list that is taken as input to the TranslateText request. This has a minimum length of 0 and a maximum length of 1.
terminologyNames
- The TerminologyNames list that is taken as input to the TranslateText request. This has a minimum length
of 0 and a maximum length of 1.public TranslateTextRequest withTerminologyNames(String... terminologyNames)
The TerminologyNames list that is taken as input to the TranslateText request. This has a minimum length of 0 and a maximum length of 1.
NOTE: This method appends the values to the existing list (if any). Use
setTerminologyNames(java.util.Collection)
or withTerminologyNames(java.util.Collection)
if you
want to override the existing values.
terminologyNames
- The TerminologyNames list that is taken as input to the TranslateText request. This has a minimum length
of 0 and a maximum length of 1.public TranslateTextRequest withTerminologyNames(Collection<String> terminologyNames)
The TerminologyNames list that is taken as input to the TranslateText request. This has a minimum length of 0 and a maximum length of 1.
terminologyNames
- The TerminologyNames list that is taken as input to the TranslateText request. This has a minimum length
of 0 and a maximum length of 1.public void setSourceLanguageCode(String sourceLanguageCode)
The language code for the language of the source text. The language must be a language supported by Amazon Translate.
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
- The language code for the language of the source text. The language must be a language supported by Amazon
Translate.
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()
The language code for the language of the source text. The language must be a language supported by Amazon Translate.
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.
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)
The language code for the language of the source text. The language must be a language supported by Amazon Translate.
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
- The language code for the language of the source text. The language must be a language supported by Amazon
Translate.
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)
The language code requested for the language of the target text. The language must be a language supported by Amazon Translate.
targetLanguageCode
- The language code requested for the language of the target text. The language must be a language supported
by Amazon Translate.public String getTargetLanguageCode()
The language code requested for the language of the target text. The language must be a language supported by Amazon Translate.
public TranslateTextRequest withTargetLanguageCode(String targetLanguageCode)
The language code requested for the language of the target text. The language must be a language supported by Amazon Translate.
targetLanguageCode
- The language code requested for the language of the target text. The language must be a language supported
by Amazon Translate.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.