public DescribeEntityAggregatesResult withEntityAggregates(EntityAggregate... entityAggregates) {
        if (this.entityAggregates == null) {
            setEntityAggregates(new java.util.ArrayList<EntityAggregate>(entityAggregates.length));
        }
        for (EntityAggregate ele : entityAggregates) {
            this.entityAggregates.add(ele);
        }
        return this;
    }
<p>
The number of entities that are affected by each of the specified events.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEntityAggregates(java.util.Collection)} or {@link #withEntityAggregates(java.util.Collection)} if you
want to override the existing values.
</p>

@param entityAggregates
       The number of entities that are affected by each of the specified events.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-health/src/main/java/com/amazonaws/services/health/model/DescribeEntityAggregatesResult.java