public void setMaxBuckets(Integer maxBuckets) {
        this.maxBuckets = maxBuckets;
    }
Sets the maximum number of buckets to be returned in response. When the number is more than the count of buckets that
are owned by an AWS account, return all the buckets in response.

@param maxBuckets The new maxBuckets value.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ListBucketsPaginatedRequest.java