// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`TranslateDocument`](crate::operation::translate_document::builders::TranslateDocumentFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`document(Document)`](crate::operation::translate_document::builders::TranslateDocumentFluentBuilder::document) / [`set_document(Option<Document>)`](crate::operation::translate_document::builders::TranslateDocumentFluentBuilder::set_document): <p>The content and content type for the document to be translated. The document size must not exceed 100 KB.</p>
/// - [`terminology_names(impl Into<String>)`](crate::operation::translate_document::builders::TranslateDocumentFluentBuilder::terminology_names) / [`set_terminology_names(Option<Vec<String>>)`](crate::operation::translate_document::builders::TranslateDocumentFluentBuilder::set_terminology_names): <p>The name of a terminology list file to add to the translation job. This file provides source terms and the desired translation for each term. A terminology list can contain a maximum of 256 terms. You can use one custom terminology resource in your translation request.</p> <p>Use the <code>ListTerminologies</code> operation to get the available terminology lists.</p> <p>For more information about custom terminology lists, see <a href="https://docs.aws.amazon.com/translate/latest/dg/how-custom-terminology.html">Custom terminology</a>.</p>
/// - [`source_language_code(impl Into<String>)`](crate::operation::translate_document::builders::TranslateDocumentFluentBuilder::source_language_code) / [`set_source_language_code(Option<String>)`](crate::operation::translate_document::builders::TranslateDocumentFluentBuilder::set_source_language_code): <p>The language code for the language of the source text. Do not use <code>auto</code>, because <code>TranslateDocument</code> does not support language auto-detection. For a list of supported language codes, see <a href="https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html">Supported languages</a>.</p>
/// - [`target_language_code(impl Into<String>)`](crate::operation::translate_document::builders::TranslateDocumentFluentBuilder::target_language_code) / [`set_target_language_code(Option<String>)`](crate::operation::translate_document::builders::TranslateDocumentFluentBuilder::set_target_language_code): <p>The language code requested for the translated document. For a list of supported language codes, see <a href="https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html">Supported languages</a>.</p>
/// - [`settings(TranslationSettings)`](crate::operation::translate_document::builders::TranslateDocumentFluentBuilder::settings) / [`set_settings(Option<TranslationSettings>)`](crate::operation::translate_document::builders::TranslateDocumentFluentBuilder::set_settings): <p>Settings to configure your translation output, including the option to set the formality level of the output text and the option to mask profane words and phrases.</p>
/// - On success, responds with [`TranslateDocumentOutput`](crate::operation::translate_document::TranslateDocumentOutput) with field(s):
/// - [`translated_document(Option<TranslatedDocument>)`](crate::operation::translate_document::TranslateDocumentOutput::translated_document): <p>The document containing the translated content. The document format matches the source document format.</p>
/// - [`source_language_code(Option<String>)`](crate::operation::translate_document::TranslateDocumentOutput::source_language_code): <p>The language code of the source document.</p>
/// - [`target_language_code(Option<String>)`](crate::operation::translate_document::TranslateDocumentOutput::target_language_code): <p>The language code of the translated document. </p>
/// - [`applied_terminologies(Option<Vec<AppliedTerminology>>)`](crate::operation::translate_document::TranslateDocumentOutput::applied_terminologies): <p>The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.</p>
/// - [`applied_settings(Option<TranslationSettings>)`](crate::operation::translate_document::TranslateDocumentOutput::applied_settings): <p>Settings to configure your translation output, including the option to set the formality level of the output text and the option to mask profane words and phrases.</p>
/// - On failure, responds with [`SdkError<TranslateDocumentError>`](crate::operation::translate_document::TranslateDocumentError)
pub fn translate_document(&self) -> crate::operation::translate_document::builders::TranslateDocumentFluentBuilder {
crate::operation::translate_document::builders::TranslateDocumentFluentBuilder::new(self.handle.clone())
}
}