public AwsS3BucketNotificationConfigurationDetail withFilter(AwsS3BucketNotificationConfigurationFilter filter) {
        setFilter(filter);
        return this;
    }
<p>
The filters that determine which S3 buckets generate notifications.
</p>

@param filter
       The filters that determine which S3 buckets generate notifications.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsS3BucketNotificationConfigurationDetail.java