public Aggregate withAggs(AggregateOperation... aggs) {
        if (this.aggs == null) {
            setAggs(new java.util.ArrayList<AggregateOperation>(aggs.length));
        }
        for (AggregateOperation ele : aggs) {
            this.aggs.add(ele);
        }
        return this;
    }
<p>
Specifies the aggregate functions to be performed on specified fields.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAggs(java.util.Collection)} or {@link #withAggs(java.util.Collection)} if you want to override the
existing values.
</p>

@param aggs
       Specifies the aggregate functions to be performed on specified fields.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/Aggregate.java