public DatastorePartitions withPartitions(DatastorePartition... partitions) {
        if (this.partitions == null) {
            setPartitions(new java.util.ArrayList<DatastorePartition>(partitions.length));
        }
        for (DatastorePartition ele : partitions) {
            this.partitions.add(ele);
        }
        return this;
    }
<p>
A list of partition dimensions in a data store.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPartitions(java.util.Collection)} or {@link #withPartitions(java.util.Collection)} if you want to
override the existing values.
</p>

@param partitions
       A list of partition dimensions in a data store.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/DatastorePartitions.java