code: public GetPartitionsResult withPartitions(Partition... partitions) {
          if (this.partitions == null) {
              setPartitions(new java.util.ArrayList<Partition>(partitions.length));
          }
          for (Partition ele : partitions) {
              this.partitions.add(ele);
          }
          return this;
      }
docs: <p>
  A list of requested partitions.
  </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 requested partitions.
  @return Returns a reference to this object so that method calls can be chained together.