public AnalysisError withViolatedEntities(Entity... violatedEntities) {
        if (this.violatedEntities == null) {
            setViolatedEntities(new java.util.ArrayList<Entity>(violatedEntities.length));
        }
        for (Entity ele : violatedEntities) {
            this.violatedEntities.add(ele);
        }
        return this;
    }
<p>
Lists the violated entities that caused the analysis error
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setViolatedEntities(java.util.Collection)} or {@link #withViolatedEntities(java.util.Collection)} if you
want to override the existing values.
</p>

@param violatedEntities
       Lists the violated entities that caused the analysis error
@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/AnalysisError.java