Class CfnWebACL.RegexMatchStatementProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.RegexMatchStatementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.RegexMatchStatementProperty>
- Enclosing interface:
CfnWebACL.RegexMatchStatementProperty
@Stability(Stable)
public static final class CfnWebACL.RegexMatchStatementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.RegexMatchStatementProperty>
A builder for
CfnWebACL.RegexMatchStatementProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.fieldToMatch
(IResolvable fieldToMatch) Sets the value ofCfnWebACL.RegexMatchStatementProperty.getFieldToMatch()
fieldToMatch
(CfnWebACL.FieldToMatchProperty fieldToMatch) Sets the value ofCfnWebACL.RegexMatchStatementProperty.getFieldToMatch()
regexString
(String regexString) Sets the value ofCfnWebACL.RegexMatchStatementProperty.getRegexString()
textTransformations
(List<? extends Object> textTransformations) Sets the value ofCfnWebACL.RegexMatchStatementProperty.getTextTransformations()
textTransformations
(IResolvable textTransformations) Sets the value ofCfnWebACL.RegexMatchStatementProperty.getTextTransformations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fieldToMatch
@Stability(Stable) public CfnWebACL.RegexMatchStatementProperty.Builder fieldToMatch(IResolvable fieldToMatch) Sets the value ofCfnWebACL.RegexMatchStatementProperty.getFieldToMatch()
- Parameters:
fieldToMatch
- The part of the web request that you want AWS WAF to inspect. This parameter is required.- Returns:
this
-
fieldToMatch
@Stability(Stable) public CfnWebACL.RegexMatchStatementProperty.Builder fieldToMatch(CfnWebACL.FieldToMatchProperty fieldToMatch) Sets the value ofCfnWebACL.RegexMatchStatementProperty.getFieldToMatch()
- Parameters:
fieldToMatch
- The part of the web request that you want AWS WAF to inspect. This parameter is required.- Returns:
this
-
regexString
@Stability(Stable) public CfnWebACL.RegexMatchStatementProperty.Builder regexString(String regexString) Sets the value ofCfnWebACL.RegexMatchStatementProperty.getRegexString()
- Parameters:
regexString
- The string representing the regular expression. This parameter is required.- Returns:
this
-
textTransformations
@Stability(Stable) public CfnWebACL.RegexMatchStatementProperty.Builder textTransformations(IResolvable textTransformations) Sets the value ofCfnWebACL.RegexMatchStatementProperty.getTextTransformations()
- Parameters:
textTransformations
- Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. This parameter is required. 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 CfnWebACL.RegexMatchStatementProperty.Builder textTransformations(List<? extends Object> textTransformations) Sets the value ofCfnWebACL.RegexMatchStatementProperty.getTextTransformations()
- Parameters:
textTransformations
- Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. This parameter is required. 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebACL.RegexMatchStatementProperty>
- Returns:
- a new instance of
CfnWebACL.RegexMatchStatementProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-