public void setBucketNames(java.util.Collection<String> bucketNames) {
        if (bucketNames == null) {
            this.bucketNames = null;
            return;
        }

        this.bucketNames = new java.util.ArrayList<String>(bucketNames);
    }
<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.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/S3ClassificationScopeExclusion.java