public class TranslateTextResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
TranslateTextResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<AppliedTerminology> |
getAppliedTerminologies()
The names of the custom terminologies applied to the input text by Amazon
Translate for the translated text response.
|
java.lang.String |
getSourceLanguageCode()
The language code for the language of the source text.
|
java.lang.String |
getTargetLanguageCode()
The language code for the language of the target text.
|
java.lang.String |
getTranslatedText()
The translated text.
|
int |
hashCode() |
void |
setAppliedTerminologies(java.util.Collection<AppliedTerminology> appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon
Translate for the translated text response.
|
void |
setSourceLanguageCode(java.lang.String sourceLanguageCode)
The language code for the language of the source text.
|
void |
setTargetLanguageCode(java.lang.String targetLanguageCode)
The language code for the language of the target text.
|
void |
setTranslatedText(java.lang.String translatedText)
The translated text.
|
java.lang.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(java.util.Collection<AppliedTerminology> appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon
Translate for the translated text response.
|
TranslateTextResult |
withSourceLanguageCode(java.lang.String sourceLanguageCode)
The language code for the language of the source text.
|
TranslateTextResult |
withTargetLanguageCode(java.lang.String targetLanguageCode)
The language code for the language of the target text.
|
TranslateTextResult |
withTranslatedText(java.lang.String translatedText)
The translated text.
|
public java.lang.String getTranslatedText()
The translated text.
Constraints:
Length: - 10000
Pattern: [\P{M}\p{M}]{0,10000}
The translated text.
public void setTranslatedText(java.lang.String translatedText)
The translated text.
Constraints:
Length: - 10000
Pattern: [\P{M}\p{M}]{0,10000}
translatedText
- The translated text.
public TranslateTextResult withTranslatedText(java.lang.String translatedText)
The translated text.
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 translated text.
public java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.util.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(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.