public CreateAggregateConfiguration withAggregates(String... aggregates) {
        if (this.aggregates == null) {
            setAggregates(new java.util.ArrayList<String>(aggregates.length));
        }
        for (String ele : aggregates) {
            this.aggregates.add(ele);
        }
        return this;
    }
<p>
Used to specify the names of aggregates on which the volume will be created.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAggregates(java.util.Collection)} or {@link #withAggregates(java.util.Collection)} if you want to
override the existing values.
</p>

@param aggregates
       Used to specify the names of aggregates on which the volume will be created.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/CreateAggregateConfiguration.java