public S3ClassificationScopeExclusion withBucketNames(java.util.Collection<String> bucketNames) {
        setBucketNames(bucketNames);
        return this;
    }
<p>
An array of strings, one for each S3 bucket that is excluded. Each string is the full name of an excluded bucket.
</p>

@param bucketNames
       An array of strings, one for each S3 bucket that is excluded. Each string is the full name of an excluded
       bucket.
@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/S3ClassificationScopeExclusion.java