Class CfnRuleGroup.SizeConstraintStatementProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wafv2.CfnRuleGroup.SizeConstraintStatementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.SizeConstraintStatementProperty>
- Enclosing interface:
CfnRuleGroup.SizeConstraintStatementProperty
@Stability(Stable)
public static final class CfnRuleGroup.SizeConstraintStatementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.SizeConstraintStatementProperty>
A builder for
CfnRuleGroup.SizeConstraintStatementProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.comparisonOperator
(String comparisonOperator) Sets the value ofCfnRuleGroup.SizeConstraintStatementProperty.getComparisonOperator()
fieldToMatch
(IResolvable fieldToMatch) Sets the value ofCfnRuleGroup.SizeConstraintStatementProperty.getFieldToMatch()
fieldToMatch
(CfnRuleGroup.FieldToMatchProperty fieldToMatch) Sets the value ofCfnRuleGroup.SizeConstraintStatementProperty.getFieldToMatch()
Sets the value ofCfnRuleGroup.SizeConstraintStatementProperty.getSize()
textTransformations
(List<? extends Object> textTransformations) Sets the value ofCfnRuleGroup.SizeConstraintStatementProperty.getTextTransformations()
textTransformations
(IResolvable textTransformations) Sets the value ofCfnRuleGroup.SizeConstraintStatementProperty.getTextTransformations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
comparisonOperator
@Stability(Stable) public CfnRuleGroup.SizeConstraintStatementProperty.Builder comparisonOperator(String comparisonOperator) Sets the value ofCfnRuleGroup.SizeConstraintStatementProperty.getComparisonOperator()
- Parameters:
comparisonOperator
- The operator to use to compare the request part to the size setting. This parameter is required.- Returns:
this
-
fieldToMatch
@Stability(Stable) public CfnRuleGroup.SizeConstraintStatementProperty.Builder fieldToMatch(IResolvable fieldToMatch) Sets the value ofCfnRuleGroup.SizeConstraintStatementProperty.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 CfnRuleGroup.SizeConstraintStatementProperty.Builder fieldToMatch(CfnRuleGroup.FieldToMatchProperty fieldToMatch) Sets the value ofCfnRuleGroup.SizeConstraintStatementProperty.getFieldToMatch()
- Parameters:
fieldToMatch
- The part of the web request that you want AWS WAF to inspect. This parameter is required.- Returns:
this
-
size
Sets the value ofCfnRuleGroup.SizeConstraintStatementProperty.getSize()
- Parameters:
size
- The size, in byte, to compare to the request part, after any transformations. This parameter is required.- Returns:
this
-
textTransformations
@Stability(Stable) public CfnRuleGroup.SizeConstraintStatementProperty.Builder textTransformations(IResolvable textTransformations) Sets the value ofCfnRuleGroup.SizeConstraintStatementProperty.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 CfnRuleGroup.SizeConstraintStatementProperty.Builder textTransformations(List<? extends Object> textTransformations) Sets the value ofCfnRuleGroup.SizeConstraintStatementProperty.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<CfnRuleGroup.SizeConstraintStatementProperty>
- Returns:
- a new instance of
CfnRuleGroup.SizeConstraintStatementProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-