public class TranslateTextResult extends Object implements Serializable
| Constructor and Description |
|---|
TranslateTextResult() |
| Modifier and Type | Method and Description |
|---|---|
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; useful for testing and
debugging.
|
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.
|
public String getTranslatedText()
The the translated text. The maximum length of this text is 5kb.
Constraints:
Length: - 10000
Pattern: [\P{M}\p{M}]{0,10000}
The the translated text. The maximum length of this text is 5kb.
public void setTranslatedText(String translatedText)
The the translated text. The maximum length of this text is 5kb.
Constraints:
Length: - 10000
Pattern: [\P{M}\p{M}]{0,10000}
translatedText - 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 10000
Pattern: [\P{M}\p{M}]{0,10000}
translatedText - The the translated text. The maximum length of this text is 5kb.
public String getSourceLanguageCode()
The language code for the language of the source text.
Constraints:
Length: 2 - 5
The language code for the language of the source text.
public void setSourceLanguageCode(String sourceLanguageCode)
The language code for the language of the source text.
Constraints:
Length: 2 - 5
sourceLanguageCode - 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 2 - 5
sourceLanguageCode - The language code for the language of the source text.
public String getTargetLanguageCode()
The language code for the language of the target text.
Constraints:
Length: 2 - 5
The language code for the language of the target text.
public void setTargetLanguageCode(String targetLanguageCode)
The language code for the language of the target text.
Constraints:
Length: 2 - 5
targetLanguageCode - 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 2 - 5
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.
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.
Returns a reference to this object so that method calls can be chained together.
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.
Returns a reference to this object so that method calls can be chained together.
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 ObjectObject.toString()Copyright © 2019. All rights reserved.