Class CfnRuleGroupPropsMixin.RegexMatchStatementProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wafv2.CfnRuleGroupPropsMixin.RegexMatchStatementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroupPropsMixin.RegexMatchStatementProperty>
- Enclosing interface:
CfnRuleGroupPropsMixin.RegexMatchStatementProperty
@Stability(Stable)
public static final class CfnRuleGroupPropsMixin.RegexMatchStatementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroupPropsMixin.RegexMatchStatementProperty>
A builder for
CfnRuleGroupPropsMixin.RegexMatchStatementProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.fieldToMatch(CfnRuleGroupPropsMixin.FieldToMatchProperty fieldToMatch) Sets the value ofCfnRuleGroupPropsMixin.RegexMatchStatementProperty.getFieldToMatch()fieldToMatch(IResolvable fieldToMatch) Sets the value ofCfnRuleGroupPropsMixin.RegexMatchStatementProperty.getFieldToMatch()regexString(String regexString) Sets the value ofCfnRuleGroupPropsMixin.RegexMatchStatementProperty.getRegexString()textTransformations(List<? extends Object> textTransformations) textTransformations(IResolvable textTransformations)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fieldToMatch
@Stability(Stable) public CfnRuleGroupPropsMixin.RegexMatchStatementProperty.Builder fieldToMatch(IResolvable fieldToMatch) Sets the value ofCfnRuleGroupPropsMixin.RegexMatchStatementProperty.getFieldToMatch()- Parameters:
fieldToMatch- The part of the web request that you want AWS WAF to inspect.- Returns:
this
-
fieldToMatch
@Stability(Stable) public CfnRuleGroupPropsMixin.RegexMatchStatementProperty.Builder fieldToMatch(CfnRuleGroupPropsMixin.FieldToMatchProperty fieldToMatch) Sets the value ofCfnRuleGroupPropsMixin.RegexMatchStatementProperty.getFieldToMatch()- Parameters:
fieldToMatch- The part of the web request that you want AWS WAF to inspect.- Returns:
this
-
regexString
@Stability(Stable) public CfnRuleGroupPropsMixin.RegexMatchStatementProperty.Builder regexString(String regexString) Sets the value ofCfnRuleGroupPropsMixin.RegexMatchStatementProperty.getRegexString()- Parameters:
regexString- The string representing the regular expression.- Returns:
this
-
textTransformations
@Stability(Stable) public CfnRuleGroupPropsMixin.RegexMatchStatementProperty.Builder textTransformations(IResolvable textTransformations) - Parameters:
textTransformations- Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified byFieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.- Returns:
this
-
textTransformations
@Stability(Stable) public CfnRuleGroupPropsMixin.RegexMatchStatementProperty.Builder textTransformations(List<? extends Object> textTransformations) - Parameters:
textTransformations- Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified byFieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroupPropsMixin.RegexMatchStatementProperty>- Returns:
- a new instance of
CfnRuleGroupPropsMixin.RegexMatchStatementProperty - Throws:
NullPointerException- if any required attribute was not provided
-