public DescribeAffectedEntitiesForOrganizationResult withEntities(AffectedEntity... entities) {
        if (this.entities == null) {
            setEntities(new java.util.ArrayList<AffectedEntity>(entities.length));
        }
        for (AffectedEntity ele : entities) {
            this.entities.add(ele);
        }
        return this;
    }
<p>
A JSON set of elements including the <code>awsAccountId</code> and its <code>entityArn</code>,
<code>entityValue</code> and its <code>entityArn</code>, <code>lastUpdatedTime</code>, and
<code>statusCode</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEntities(java.util.Collection)} or {@link #withEntities(java.util.Collection)} if you want to override
the existing values.
</p>

@param entities
       A JSON set of elements including the <code>awsAccountId</code> and its <code>entityArn</code>,
       <code>entityValue</code> and its <code>entityArn</code>, <code>lastUpdatedTime</code>, and
       <code>statusCode</code>.
@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/DescribeAffectedEntitiesForOrganizationResult.java