Class CfnWebACL.RegexPatternSetReferenceStatementProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.RegexPatternSetReferenceStatementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.RegexPatternSetReferenceStatementProperty>
- Enclosing interface:
- CfnWebACL.RegexPatternSetReferenceStatementProperty
@Stability(Stable)
public static final class CfnWebACL.RegexPatternSetReferenceStatementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebACL.RegexPatternSetReferenceStatementProperty>
A builder for
CfnWebACL.RegexPatternSetReferenceStatementProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnWebACL.RegexPatternSetReferenceStatementProperty.getArn()
build()
Builds the configured instance.fieldToMatch
(IResolvable fieldToMatch) Sets the value ofCfnWebACL.RegexPatternSetReferenceStatementProperty.getFieldToMatch()
fieldToMatch
(CfnWebACL.FieldToMatchProperty fieldToMatch) Sets the value ofCfnWebACL.RegexPatternSetReferenceStatementProperty.getFieldToMatch()
textTransformations
(List<? extends Object> textTransformations) textTransformations
(IResolvable textTransformations)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
@Stability(Stable) public CfnWebACL.RegexPatternSetReferenceStatementProperty.Builder arn(String arn) Sets the value ofCfnWebACL.RegexPatternSetReferenceStatementProperty.getArn()
- Parameters:
arn
- The Amazon Resource Name (ARN) of theRegexPatternSet
that this statement references. This parameter is required.- Returns:
this
-
fieldToMatch
@Stability(Stable) public CfnWebACL.RegexPatternSetReferenceStatementProperty.Builder fieldToMatch(IResolvable fieldToMatch) Sets the value ofCfnWebACL.RegexPatternSetReferenceStatementProperty.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.RegexPatternSetReferenceStatementProperty.Builder fieldToMatch(CfnWebACL.FieldToMatchProperty fieldToMatch) Sets the value ofCfnWebACL.RegexPatternSetReferenceStatementProperty.getFieldToMatch()
- Parameters:
fieldToMatch
- The part of the web request that you want AWS WAF to inspect. This parameter is required.- Returns:
this
-
textTransformations
@Stability(Stable) public CfnWebACL.RegexPatternSetReferenceStatementProperty.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. 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.RegexPatternSetReferenceStatementProperty.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. 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.RegexPatternSetReferenceStatementProperty>
- Returns:
- a new instance of
CfnWebACL.RegexPatternSetReferenceStatementProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-