docs: 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;
      }