public SynthesisTask withLanguageCode(String languageCode) {
        setLanguageCode(languageCode);
        return this;
    }
<p>
Optional language code for a synthesis task. This is only necessary if using a bilingual voice, such as Aditi,
which can be used for either Indian English (en-IN) or Hindi (hi-IN).
</p>
<p>
If a bilingual voice is used and no language code is specified, Amazon Polly uses the default language of the
bilingual voice. The default language for any voice is the one returned by the <a
href="https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html">DescribeVoices</a> operation for the
<code>LanguageCode</code> parameter. For example, if no language code is specified, Aditi will use Indian English
rather than Hindi.
</p>

@param languageCode
       Optional language code for a synthesis task. This is only necessary if using a bilingual voice, such as
       Aditi, which can be used for either Indian English (en-IN) or Hindi (hi-IN). </p>
       <p>
       If a bilingual voice is used and no language code is specified, Amazon Polly uses the default language of
       the bilingual voice. The default language for any voice is the one returned by the <a
       href="https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html">DescribeVoices</a> operation
       for the <code>LanguageCode</code> parameter. For example, if no language code is specified, Aditi will use
       Indian English rather than Hindi.
@return Returns a reference to this object so that method calls can be chained together.
@see LanguageCode
aws-java-sdk-polly/src/main/java/com/amazonaws/services/polly/model/SynthesisTask.java