public DimensionKeyDescription withPartitions(java.util.Collection<Double> partitions) {
        setPartitions(partitions);
        return this;
    }
<p>
If <code>PartitionBy</code> was specified, <code>PartitionKeys</code> contains the dimensions that were.
</p>

@param partitions
       If <code>PartitionBy</code> was specified, <code>PartitionKeys</code> contains the dimensions that were.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pi/src/main/java/com/amazonaws/services/pi/model/DimensionKeyDescription.java