public SynthesizeSpeechRequest withLexiconNames(String... lexiconNames) {
        if (this.lexiconNames == null) {
            setLexiconNames(new java.util.ArrayList<String>(lexiconNames.length));
        }
        for (String ele : lexiconNames) {
            this.lexiconNames.add(ele);
        }
        return this;
    }
<p>
List of one or more pronunciation lexicon names you want the service to apply during synthesis. Lexicons are
applied only if the language of the lexicon is the same as the language of the voice. For information about
storing lexicons, see <a href="https://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html">PutLexicon</a>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLexiconNames(java.util.Collection)} or {@link #withLexiconNames(java.util.Collection)} if you want to
override the existing values.
</p>

@param lexiconNames
       List of one or more pronunciation lexicon names you want the service to apply during synthesis. Lexicons
       are applied only if the language of the lexicon is the same as the language of the voice. For information
       about storing lexicons, see <a
       href="https://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html">PutLexicon</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-polly/src/main/java/com/amazonaws/services/polly/model/SynthesizeSpeechRequest.java