@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TranslateDocumentResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
TranslateDocumentResult() |
Modifier and Type | Method and Description |
---|---|
TranslateDocumentResult |
clone() |
boolean |
equals(Object obj) |
TranslationSettings |
getAppliedSettings() |
List<AppliedTerminology> |
getAppliedTerminologies()
The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated
text document.
|
String |
getSourceLanguageCode()
The language code of the source document.
|
String |
getTargetLanguageCode()
The language code of the translated document.
|
TranslatedDocument |
getTranslatedDocument()
The document containing the translated content.
|
int |
hashCode() |
void |
setAppliedSettings(TranslationSettings appliedSettings) |
void |
setAppliedTerminologies(Collection<AppliedTerminology> appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated
text document.
|
void |
setSourceLanguageCode(String sourceLanguageCode)
The language code of the source document.
|
void |
setTargetLanguageCode(String targetLanguageCode)
The language code of the translated document.
|
void |
setTranslatedDocument(TranslatedDocument translatedDocument)
The document containing the translated content.
|
String |
toString()
Returns a string representation of this object.
|
TranslateDocumentResult |
withAppliedSettings(TranslationSettings appliedSettings) |
TranslateDocumentResult |
withAppliedTerminologies(AppliedTerminology... appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated
text document.
|
TranslateDocumentResult |
withAppliedTerminologies(Collection<AppliedTerminology> appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated
text document.
|
TranslateDocumentResult |
withSourceLanguageCode(String sourceLanguageCode)
The language code of the source document.
|
TranslateDocumentResult |
withTargetLanguageCode(String targetLanguageCode)
The language code of the translated document.
|
TranslateDocumentResult |
withTranslatedDocument(TranslatedDocument translatedDocument)
The document containing the translated content.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setTranslatedDocument(TranslatedDocument translatedDocument)
The document containing the translated content. The document format matches the source document format.
translatedDocument
- The document containing the translated content. The document format matches the source document format.public TranslatedDocument getTranslatedDocument()
The document containing the translated content. The document format matches the source document format.
public TranslateDocumentResult withTranslatedDocument(TranslatedDocument translatedDocument)
The document containing the translated content. The document format matches the source document format.
translatedDocument
- The document containing the translated content. The document format matches the source document format.public void setSourceLanguageCode(String sourceLanguageCode)
The language code of the source document.
sourceLanguageCode
- The language code of the source document.public String getSourceLanguageCode()
The language code of the source document.
public TranslateDocumentResult withSourceLanguageCode(String sourceLanguageCode)
The language code of the source document.
sourceLanguageCode
- The language code of the source document.public void setTargetLanguageCode(String targetLanguageCode)
The language code of the translated document.
targetLanguageCode
- The language code of the translated document.public String getTargetLanguageCode()
The language code of the translated document.
public TranslateDocumentResult withTargetLanguageCode(String targetLanguageCode)
The language code of the translated document.
targetLanguageCode
- The language code of the translated document.public List<AppliedTerminology> getAppliedTerminologies()
The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.
public void setAppliedTerminologies(Collection<AppliedTerminology> appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.
appliedTerminologies
- The names of the custom terminologies applied to the input text by Amazon Translate to produce the
translated text document.public TranslateDocumentResult withAppliedTerminologies(AppliedTerminology... appliedTerminologies)
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
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 to produce the
translated text document.public TranslateDocumentResult withAppliedTerminologies(Collection<AppliedTerminology> appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.
appliedTerminologies
- The names of the custom terminologies applied to the input text by Amazon Translate to produce the
translated text document.public void setAppliedSettings(TranslationSettings appliedSettings)
appliedSettings
- public TranslationSettings getAppliedSettings()
public TranslateDocumentResult withAppliedSettings(TranslationSettings appliedSettings)
appliedSettings
- public String toString()
toString
in class Object
Object.toString()
public TranslateDocumentResult clone()