public DifferentialPrivacyPrivacyImpact withAggregations(DifferentialPrivacyPreviewAggregation... aggregations) {
        if (this.aggregations == null) {
            setAggregations(new java.util.ArrayList<DifferentialPrivacyPreviewAggregation>(aggregations.length));
        }
        for (DifferentialPrivacyPreviewAggregation ele : aggregations) {
            this.aggregations.add(ele);
        }
        return this;
    }
<p>
The number of aggregation functions that you can perform.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAggregations(java.util.Collection)} or {@link #withAggregations(java.util.Collection)} if you want to
override the existing values.
</p>

@param aggregations
       The number of aggregation functions that you can perform.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cleanrooms/src/main/java/com/amazonaws/services/cleanrooms/model/DifferentialPrivacyPrivacyImpact.java