Interface SizeConstraintSetUpdate.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SizeConstraintSetUpdate.Builder,
,SizeConstraintSetUpdate> SdkBuilder<SizeConstraintSetUpdate.Builder,
,SizeConstraintSetUpdate> SdkPojo
- Enclosing class:
SizeConstraintSetUpdate
-
Method Summary
Modifier and TypeMethodDescriptionaction
(ChangeAction action) default SizeConstraintSetUpdate.Builder
sizeConstraint
(Consumer<SizeConstraint.Builder> sizeConstraint) Specifies a constraint on the size of a part of the web request.sizeConstraint
(SizeConstraint sizeConstraint) Specifies a constraint on the size of a part of the web request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
action
Specify
INSERT
to add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETE
to remove aSizeConstraintSetUpdate
from aSizeConstraintSet
.- Parameters:
action
- SpecifyINSERT
to add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETE
to remove aSizeConstraintSetUpdate
from aSizeConstraintSet
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
action
Specify
INSERT
to add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETE
to remove aSizeConstraintSetUpdate
from aSizeConstraintSet
.- Parameters:
action
- SpecifyINSERT
to add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETE
to remove aSizeConstraintSetUpdate
from aSizeConstraintSet
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sizeConstraint
Specifies a constraint on the size of a part of the web request. AWS WAF uses the
Size
,ComparisonOperator
, andFieldToMatch
to build an expression in the form of "Size
ComparisonOperator
size in bytes ofFieldToMatch
". If that expression is true, theSizeConstraint
is considered to match.- Parameters:
sizeConstraint
- Specifies a constraint on the size of a part of the web request. AWS WAF uses theSize
,ComparisonOperator
, andFieldToMatch
to build an expression in the form of "Size
ComparisonOperator
size in bytes ofFieldToMatch
". If that expression is true, theSizeConstraint
is considered to match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sizeConstraint
default SizeConstraintSetUpdate.Builder sizeConstraint(Consumer<SizeConstraint.Builder> sizeConstraint) Specifies a constraint on the size of a part of the web request. AWS WAF uses the
This is a convenience method that creates an instance of theSize
,ComparisonOperator
, andFieldToMatch
to build an expression in the form of "Size
ComparisonOperator
size in bytes ofFieldToMatch
". If that expression is true, theSizeConstraint
is considered to match.SizeConstraint.Builder
avoiding the need to create one manually viaSizeConstraint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosizeConstraint(SizeConstraint)
.- Parameters:
sizeConstraint
- a consumer that will call methods onSizeConstraint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-