@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) |
TranslationSettings |
getAppliedSettings()
Settings that configure the translation output.
|
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 translated text.
|
int |
hashCode() |
void |
setAppliedSettings(TranslationSettings appliedSettings)
Settings that configure the translation output.
|
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 translated text.
|
String |
toString()
Returns a string representation of this object.
|
TranslateTextResult |
withAppliedSettings(TranslationSettings appliedSettings)
Settings that configure the translation output.
|
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 translated text.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setTranslatedText(String translatedText)
The translated text.
translatedText
- The translated text.public String getTranslatedText()
The translated text.
public TranslateTextResult withTranslatedText(String translatedText)
The translated text.
translatedText
- The translated text.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 void setAppliedSettings(TranslationSettings appliedSettings)
Settings that configure the translation output.
appliedSettings
- Settings that configure the translation output.public TranslationSettings getAppliedSettings()
Settings that configure the translation output.
public TranslateTextResult withAppliedSettings(TranslationSettings appliedSettings)
Settings that configure the translation output.
appliedSettings
- Settings that configure the translation output.public String toString()
toString
in class Object
Object.toString()
public TranslateTextResult clone()