code: public BucketInfo withBuckets(Bucket... buckets) {
          if (this.buckets == null) {
              setBuckets(new com.amazonaws.internal.SdkInternalList<Bucket>(buckets.length));
          }
          for (Bucket ele : buckets) {
              this.buckets.add(ele);
          }
          return this;
      }
docs: <p>
  A list of the calculated facet values and counts.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setBuckets(java.util.Collection)} or {@link #withBuckets(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param buckets
  A list of the calculated facet values and counts.
  @return Returns a reference to this object so that method calls can be chained together.