public class SizeConstraintSetUpdate extends Object implements Serializable, Cloneable
Specifies the part of a web request that you want to inspect the size of and indicates whether you want to add the
specification to a SizeConstraintSet or delete it from a SizeConstraintSet.
| Constructor and Description |
|---|
SizeConstraintSetUpdate() |
| Modifier and Type | Method and Description |
|---|---|
SizeConstraintSetUpdate |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
|
SizeConstraint |
getSizeConstraint()
Specifies a constraint on the size of a part of the web request.
|
int |
hashCode() |
void |
setAction(ChangeAction action)
|
void |
setAction(String action)
|
void |
setSizeConstraint(SizeConstraint sizeConstraint)
Specifies a constraint on the size of a part of the web request.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SizeConstraintSetUpdate |
withAction(ChangeAction action)
|
SizeConstraintSetUpdate |
withAction(String action)
|
SizeConstraintSetUpdate |
withSizeConstraint(SizeConstraint sizeConstraint)
Specifies a constraint on the size of a part of the web request.
|
public void setAction(String action)
Specify INSERT to add a SizeConstraintSetUpdate to a SizeConstraintSet. Use
DELETE to remove a SizeConstraintSetUpdate from a SizeConstraintSet.
action - Specify INSERT to add a SizeConstraintSetUpdate to a SizeConstraintSet. Use
DELETE to remove a SizeConstraintSetUpdate from a SizeConstraintSet
.ChangeActionpublic String getAction()
Specify INSERT to add a SizeConstraintSetUpdate to a SizeConstraintSet. Use
DELETE to remove a SizeConstraintSetUpdate from a SizeConstraintSet.
INSERT to add a SizeConstraintSetUpdate to a SizeConstraintSet. Use
DELETE to remove a SizeConstraintSetUpdate from a
SizeConstraintSet.ChangeActionpublic SizeConstraintSetUpdate withAction(String action)
Specify INSERT to add a SizeConstraintSetUpdate to a SizeConstraintSet. Use
DELETE to remove a SizeConstraintSetUpdate from a SizeConstraintSet.
action - Specify INSERT to add a SizeConstraintSetUpdate to a SizeConstraintSet. Use
DELETE to remove a SizeConstraintSetUpdate from a SizeConstraintSet
.ChangeActionpublic void setAction(ChangeAction action)
Specify INSERT to add a SizeConstraintSetUpdate to a SizeConstraintSet. Use
DELETE to remove a SizeConstraintSetUpdate from a SizeConstraintSet.
action - Specify INSERT to add a SizeConstraintSetUpdate to a SizeConstraintSet. Use
DELETE to remove a SizeConstraintSetUpdate from a SizeConstraintSet
.ChangeActionpublic SizeConstraintSetUpdate withAction(ChangeAction action)
Specify INSERT to add a SizeConstraintSetUpdate to a SizeConstraintSet. Use
DELETE to remove a SizeConstraintSetUpdate from a SizeConstraintSet.
action - Specify INSERT to add a SizeConstraintSetUpdate to a SizeConstraintSet. Use
DELETE to remove a SizeConstraintSetUpdate from a SizeConstraintSet
.ChangeActionpublic void setSizeConstraint(SizeConstraint sizeConstraint)
Specifies a constraint on the size of a part of the web request. AWS WAF uses the Size,
ComparisonOperator, and FieldToMatch to build an expression in the form of "
Size ComparisonOperator size in bytes of FieldToMatch". If that expression
is true, the SizeConstraint is considered to match.
sizeConstraint - Specifies a constraint on the size of a part of the web request. AWS WAF uses the Size,
ComparisonOperator, and FieldToMatch to build an expression in the form of "
Size ComparisonOperator size in bytes of FieldToMatch". If that
expression is true, the SizeConstraint is considered to match.public SizeConstraint getSizeConstraint()
Specifies a constraint on the size of a part of the web request. AWS WAF uses the Size,
ComparisonOperator, and FieldToMatch to build an expression in the form of "
Size ComparisonOperator size in bytes of FieldToMatch". If that expression
is true, the SizeConstraint is considered to match.
Size,
ComparisonOperator, and FieldToMatch to build an expression in the form of "
Size ComparisonOperator size in bytes of FieldToMatch". If that
expression is true, the SizeConstraint is considered to match.public SizeConstraintSetUpdate withSizeConstraint(SizeConstraint sizeConstraint)
Specifies a constraint on the size of a part of the web request. AWS WAF uses the Size,
ComparisonOperator, and FieldToMatch to build an expression in the form of "
Size ComparisonOperator size in bytes of FieldToMatch". If that expression
is true, the SizeConstraint is considered to match.
sizeConstraint - Specifies a constraint on the size of a part of the web request. AWS WAF uses the Size,
ComparisonOperator, and FieldToMatch to build an expression in the form of "
Size ComparisonOperator size in bytes of FieldToMatch". If that
expression is true, the SizeConstraint is considered to match.public String toString()
toString in class ObjectObject.toString()public SizeConstraintSetUpdate clone()
Copyright © 2016. All rights reserved.