public BatchDeletePartitionRequest withPartitionsToDelete(PartitionValueList... partitionsToDelete) {
        if (this.partitionsToDelete == null) {
            setPartitionsToDelete(new java.util.ArrayList<PartitionValueList>(partitionsToDelete.length));
        }
        for (PartitionValueList ele : partitionsToDelete) {
            this.partitionsToDelete.add(ele);
        }
        return this;
    }
<p>
A list of <code>PartitionInput</code> structures that define the partitions to be deleted.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPartitionsToDelete(java.util.Collection)} or {@link #withPartitionsToDelete(java.util.Collection)} if
you want to override the existing values.
</p>

@param partitionsToDelete
       A list of <code>PartitionInput</code> structures that define the partitions to be deleted.
@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/BatchDeletePartitionRequest.java