public GetBucketsResult withBuckets(java.util.Collection<Bucket> buckets) {
        setBuckets(buckets);
        return this;
    }
<p>
An array of objects that describe buckets.
</p>

@param buckets
       An array of objects that describe buckets.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetBucketsResult.java