public void setTermsAggregation(TermsAggregation termsAggregation) {
        this.termsAggregation = termsAggregation;
    }
<p>
Performs an aggregation that will return a list of buckets. The list of buckets is a ranked list of the number of
occurrences of an aggregation field value.
</p>

@param termsAggregation
       Performs an aggregation that will return a list of buckets. The list of buckets is a ranked list of the
       number of occurrences of an aggregation field value.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/BucketsAggregationType.java