public RuleGroupResponse withSnsTopic(String snsTopic) {
        setSnsTopic(snsTopic);
        return this;
    }
<p>
The Amazon resource name (ARN) of the Amazon Simple Notification Service SNS topic that's used to record changes
to the managed rule group. You can subscribe to the SNS topic to receive notifications when the managed rule
group is modified, such as for new versions and for version expiration. For more information, see the <a
href="https://docs.aws.amazon.com/sns/latest/dg/welcome.html">Amazon Simple Notification Service Developer
Guide.</a>.
</p>

@param snsTopic
       The Amazon resource name (ARN) of the Amazon Simple Notification Service SNS topic that's used to record
       changes to the managed rule group. You can subscribe to the SNS topic to receive notifications when the
       managed rule group is modified, such as for new versions and for version expiration. For more information,
       see the <a href="https://docs.aws.amazon.com/sns/latest/dg/welcome.html">Amazon Simple Notification
       Service Developer Guide.</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkfirewall/src/main/java/com/amazonaws/services/networkfirewall/model/RuleGroupResponse.java