public S3BucketDefinitionForJob withBuckets(java.util.Collection<String> buckets) {
        setBuckets(buckets);
        return this;
    }
<p>
An array that lists the names of the buckets.
</p>

@param buckets
       An array that lists the names of the buckets.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/S3BucketDefinitionForJob.java