public Statement withRegexPatternSetReferenceStatement(RegexPatternSetReferenceStatement regexPatternSetReferenceStatement) {
        setRegexPatternSetReferenceStatement(regexPatternSetReferenceStatement);
        return this;
    }
<p>
A rule statement used to search web request components for matches with regular expressions. To use this, create
a <a>RegexPatternSet</a> that specifies the expressions that you want to detect, then use the ARN of that set in
this statement. A web request matches the pattern set rule statement if the request component matches any of the
patterns in the set. To create a regex pattern set, see <a>CreateRegexPatternSet</a>.
</p>
<p>
Each regex pattern set rule statement references a regex pattern set. You create and maintain the set independent
of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, WAF
automatically updates all rules that reference it.
</p>

@param regexPatternSetReferenceStatement
       A rule statement used to search web request components for matches with regular expressions. To use this,
       create a <a>RegexPatternSet</a> that specifies the expressions that you want to detect, then use the ARN
       of that set in this statement. A web request matches the pattern set rule statement if the request
       component matches any of the patterns in the set. To create a regex pattern set, see
       <a>CreateRegexPatternSet</a>.</p>
       <p>
       Each regex pattern set rule statement references a regex pattern set. You create and maintain the set
       independent of your rules. This allows you to use the single set in multiple rules. When you update the
       referenced set, WAF automatically updates all rules that reference it.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-wafv2/src/main/java/com/amazonaws/services/wafv2/model/Statement.java