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