public DatasetMetadata withNamedEntities(TopicNamedEntity... namedEntities) {
        if (this.namedEntities == null) {
            setNamedEntities(new java.util.ArrayList<TopicNamedEntity>(namedEntities.length));
        }
        for (TopicNamedEntity ele : namedEntities) {
            this.namedEntities.add(ele);
        }
        return this;
    }
<p>
The list of named entities definitions.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setNamedEntities(java.util.Collection)} or {@link #withNamedEntities(java.util.Collection)} if you want
to override the existing values.
</p>

@param namedEntities
       The list of named entities definitions.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/DatasetMetadata.java