public TranslateDocumentRequest withSourceLanguageCode(String sourceLanguageCode) {
        setSourceLanguageCode(sourceLanguageCode);
        return this;
    }
<p>
The language code for the language of the source text. 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>
<p>
To have Amazon Translate determine the source language of your text, you can specify <code>auto</code> in the
<code>SourceLanguageCode</code> field. If you specify <code>auto</code>, Amazon Translate will call <a
href="https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html">Amazon Comprehend</a> to
determine the source language.
</p>
<note>
<p>
If you specify <code>auto</code>, you must send the <code>TranslateDocument</code> request in a region that
supports Amazon Comprehend. Otherwise, the request returns an error indicating that autodetect is not supported.
</p>
</note>

@param sourceLanguageCode
       The language code for the language of the source text. 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>
       <p>
       To have Amazon Translate determine the source language of your text, you can specify <code>auto</code> in
       the <code>SourceLanguageCode</code> field. If you specify <code>auto</code>, Amazon Translate will call <a
       href="https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html">Amazon Comprehend</a> to
       determine the source language.
       </p>
       <note>
       <p>
       If you specify <code>auto</code>, you must send the <code>TranslateDocument</code> request in a region
       that supports Amazon Comprehend. Otherwise, the request returns an error indicating that autodetect is not
       supported.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslateDocumentRequest.java