* The document containing the translated content. The document format matches the source document format. *
*/ private TranslatedDocument translatedDocument; /** ** The language code of the source document. *
*/ private String sourceLanguageCode; /** ** The language code of the translated document. *
*/ private String targetLanguageCode; /** ** The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated * text document. *
*/ private java.util.List* The document containing the translated content. The document format matches the source document format. *
* * @param translatedDocument * The document containing the translated content. The document format matches the source document format. */ public void setTranslatedDocument(TranslatedDocument translatedDocument) { this.translatedDocument = translatedDocument; } /** ** The document containing the translated content. The document format matches the source document format. *
* * @return The document containing the translated content. The document format matches the source document format. */ public TranslatedDocument getTranslatedDocument() { return this.translatedDocument; } /** ** The document containing the translated content. The document format matches the source document format. *
* * @param translatedDocument * The document containing the translated content. The document format matches the source document format. * @return Returns a reference to this object so that method calls can be chained together. */ public TranslateDocumentResult withTranslatedDocument(TranslatedDocument translatedDocument) { setTranslatedDocument(translatedDocument); return this; } /** ** The language code of the source document. *
* * @param sourceLanguageCode * The language code of the source document. */ public void setSourceLanguageCode(String sourceLanguageCode) { this.sourceLanguageCode = sourceLanguageCode; } /** ** The language code of the source document. *
* * @return The language code of the source document. */ public String getSourceLanguageCode() { return this.sourceLanguageCode; } /** ** The language code of the source document. *
* * @param sourceLanguageCode * The language code of the source document. * @return Returns a reference to this object so that method calls can be chained together. */ public TranslateDocumentResult withSourceLanguageCode(String sourceLanguageCode) { setSourceLanguageCode(sourceLanguageCode); return this; } /** ** The language code of the translated document. *
* * @param targetLanguageCode * The language code of the translated document. */ public void setTargetLanguageCode(String targetLanguageCode) { this.targetLanguageCode = targetLanguageCode; } /** ** The language code of the translated document. *
* * @return The language code of the translated document. */ public String getTargetLanguageCode() { return this.targetLanguageCode; } /** ** The language code of the translated document. *
* * @param targetLanguageCode * The language code of the translated document. * @return Returns a reference to this object so that method calls can be chained together. */ public TranslateDocumentResult withTargetLanguageCode(String targetLanguageCode) { setTargetLanguageCode(targetLanguageCode); return this; } /** ** The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated * text document. *
* * @return The names of the custom terminologies applied to the input text by Amazon Translate to produce the * translated text document. */ public java.util.List* The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated * text document. *
* * @param appliedTerminologies * The names of the custom terminologies applied to the input text by Amazon Translate to produce the * translated text document. */ public void setAppliedTerminologies(java.util.Collection* The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated * text document. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAppliedTerminologies(java.util.Collection)} or {@link #withAppliedTerminologies(java.util.Collection)} * if you want to override the existing values. *
* * @param appliedTerminologies * The names of the custom terminologies applied to the input text by Amazon Translate to produce the * translated text document. * @return Returns a reference to this object so that method calls can be chained together. */ public TranslateDocumentResult withAppliedTerminologies(AppliedTerminology... appliedTerminologies) { if (this.appliedTerminologies == null) { setAppliedTerminologies(new java.util.ArrayList* The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated * text document. *
* * @param appliedTerminologies * The names of the custom terminologies applied to the input text by Amazon Translate to produce the * translated text document. * @return Returns a reference to this object so that method calls can be chained together. */ public TranslateDocumentResult withAppliedTerminologies(java.util.Collection