public void setBuckets(java.util.Collection<Bucket> buckets) {
        if (buckets == null) {
            this.buckets = null;
            return;
        }

        this.buckets = new java.util.ArrayList<Bucket>(buckets);
    }
<p>
The main part of the response with a list of buckets. Each bucket contains a <code>keyValue</code> and a
<code>count</code>.
</p>
<p>
<code>keyValue</code>: The aggregation field value counted for the particular bucket.
</p>
<p>
<code>count</code>: The number of documents that have that value.
</p>

@param buckets
       The main part of the response with a list of buckets. Each bucket contains a <code>keyValue</code> and a
       <code>count</code>.</p>
       <p>
       <code>keyValue</code>: The aggregation field value counted for the particular bucket.
       </p>
       <p>
       <code>count</code>: The number of documents that have that value.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/GetBucketsAggregationResult.java