public AwsS3BucketNotificationConfigurationS3KeyFilterRule withName(AwsS3BucketNotificationConfigurationS3KeyFilterRuleName name) {
        this.name = name.toString();
        return this;
    }
<p>
Indicates whether the filter is based on the prefix or suffix of the Amazon S3 key.
</p>

@param name
       Indicates whether the filter is based on the prefix or suffix of the Amazon S3 key.
@return Returns a reference to this object so that method calls can be chained together.
@see AwsS3BucketNotificationConfigurationS3KeyFilterRuleName
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsS3BucketNotificationConfigurationS3KeyFilterRule.java