@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TranslateTextResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
TranslateTextResult() |
Modifier and Type | Method and Description |
---|---|
TranslateTextResult |
clone() |
boolean |
equals(Object obj) |
List<AppliedTerminology> |
getAppliedTerminologies()
The names of the custom terminologies applied to the input text by Amazon Translate for the translated text
response.
|
String |
getSourceLanguageCode()
The language code for the language of the source text.
|
String |
getTargetLanguageCode()
The language code for the language of the target text.
|
String |
getTranslatedText()
The the translated text.
|
int |
hashCode() |
void |
setAppliedTerminologies(Collection<AppliedTerminology> appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate for the translated text
response.
|
void |
setSourceLanguageCode(String sourceLanguageCode)
The language code for the language of the source text.
|
void |
setTargetLanguageCode(String targetLanguageCode)
The language code for the language of the target text.
|
void |
setTranslatedText(String translatedText)
The the translated text.
|
String |
toString()
Returns a string representation of this object.
|
TranslateTextResult |
withAppliedTerminologies(AppliedTerminology... appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate for the translated text
response.
|
TranslateTextResult |
withAppliedTerminologies(Collection<AppliedTerminology> appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate for the translated text
response.
|
TranslateTextResult |
withSourceLanguageCode(String sourceLanguageCode)
The language code for the language of the source text.
|
TranslateTextResult |
withTargetLanguageCode(String targetLanguageCode)
The language code for the language of the target text.
|
TranslateTextResult |
withTranslatedText(String translatedText)
The the translated text.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setTranslatedText(String translatedText)
The the translated text. The maximum length of this text is 5kb.
translatedText
- The the translated text. The maximum length of this text is 5kb.public String getTranslatedText()
The the translated text. The maximum length of this text is 5kb.
public TranslateTextResult withTranslatedText(String translatedText)
The the translated text. The maximum length of this text is 5kb.
translatedText
- The the translated text. The maximum length of this text is 5kb.public void setSourceLanguageCode(String sourceLanguageCode)
The language code for the language of the source text.
sourceLanguageCode
- The language code for the language of the source text.public String getSourceLanguageCode()
The language code for the language of the source text.
public TranslateTextResult withSourceLanguageCode(String sourceLanguageCode)
The language code for the language of the source text.
sourceLanguageCode
- The language code for the language of the source text.public void setTargetLanguageCode(String targetLanguageCode)
The language code for the language of the target text.
targetLanguageCode
- The language code for the language of the target text.public String getTargetLanguageCode()
The language code for the language of the target text.
public TranslateTextResult withTargetLanguageCode(String targetLanguageCode)
The language code for the language of the target text.
targetLanguageCode
- The language code for the language of the target text.public List<AppliedTerminology> getAppliedTerminologies()
The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.
public void setAppliedTerminologies(Collection<AppliedTerminology> appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.
appliedTerminologies
- The names of the custom terminologies applied to the input text by Amazon Translate for the translated
text response.public TranslateTextResult withAppliedTerminologies(AppliedTerminology... appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.
NOTE: This method appends the values to the existing list (if any). Use
setAppliedTerminologies(java.util.Collection)
or withAppliedTerminologies(java.util.Collection)
if you want to override the existing values.
appliedTerminologies
- The names of the custom terminologies applied to the input text by Amazon Translate for the translated
text response.public TranslateTextResult withAppliedTerminologies(Collection<AppliedTerminology> appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.
appliedTerminologies
- The names of the custom terminologies applied to the input text by Amazon Translate for the translated
text response.public String toString()
toString
in class Object
Object.toString()
public TranslateTextResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.