public BatchDetectDominantLanguageItemResult withLanguages(DominantLanguage... languages) {
        if (this.languages == null) {
            setLanguages(new java.util.ArrayList<DominantLanguage>(languages.length));
        }
        for (DominantLanguage ele : languages) {
            this.languages.add(ele);
        }
        return this;
    }
<p>
One or more <a>DominantLanguage</a> objects describing the dominant languages in the document.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLanguages(java.util.Collection)} or {@link #withLanguages(java.util.Collection)} if you want to
override the existing values.
</p>

@param languages
       One or more <a>DominantLanguage</a> objects describing the dominant languages in the document.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/BatchDetectDominantLanguageItemResult.java