public static final class CfnWebACL.SizeConstraintStatementProperty.Builder
extends java.lang.Object
CfnWebACL.SizeConstraintStatementProperty
Constructor and Description |
---|
Builder() |
public CfnWebACL.SizeConstraintStatementProperty.Builder comparisonOperator(java.lang.String comparisonOperator)
CfnWebACL.SizeConstraintStatementProperty.getComparisonOperator()
comparisonOperator
- The operator to use to compare the request part to the size setting. This parameter is required.this
public CfnWebACL.SizeConstraintStatementProperty.Builder fieldToMatch(IResolvable fieldToMatch)
CfnWebACL.SizeConstraintStatementProperty.getFieldToMatch()
fieldToMatch
- The part of the web request that you want AWS WAF to inspect. This parameter is required.this
public CfnWebACL.SizeConstraintStatementProperty.Builder fieldToMatch(CfnWebACL.FieldToMatchProperty fieldToMatch)
CfnWebACL.SizeConstraintStatementProperty.getFieldToMatch()
fieldToMatch
- The part of the web request that you want AWS WAF to inspect. This parameter is required.this
public CfnWebACL.SizeConstraintStatementProperty.Builder size(java.lang.Number size)
CfnWebACL.SizeConstraintStatementProperty.getSize()
size
- The size, in byte, to compare to the request part, after any transformations. This parameter is required.this
public CfnWebACL.SizeConstraintStatementProperty.Builder textTransformations(IResolvable textTransformations)
CfnWebACL.SizeConstraintStatementProperty.getTextTransformations()
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 by FieldToMatch
, starting from the lowest priority setting, before inspecting the content for a match.this
public CfnWebACL.SizeConstraintStatementProperty.Builder textTransformations(java.util.List<? extends java.lang.Object> textTransformations)
CfnWebACL.SizeConstraintStatementProperty.getTextTransformations()
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 by FieldToMatch
, starting from the lowest priority setting, before inspecting the content for a match.this
public CfnWebACL.SizeConstraintStatementProperty build()
CfnWebACL.SizeConstraintStatementProperty
java.lang.NullPointerException
- if any required attribute was not provided