public class SizeConstraintSetUpdate
extends java.lang.Object
implements java.io.Serializable, java.lang.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
.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
action
|
private SizeConstraint |
sizeConstraint
Specifies a constraint on the size of a part of the web request.
|
Constructor and Description |
---|
SizeConstraintSetUpdate() |
Modifier and Type | Method and Description |
---|---|
SizeConstraintSetUpdate |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.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(java.lang.String action)
|
void |
setSizeConstraint(SizeConstraint sizeConstraint)
Specifies a constraint on the size of a part of the web request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SizeConstraintSetUpdate |
withAction(ChangeAction action)
|
SizeConstraintSetUpdate |
withAction(java.lang.String action)
|
SizeConstraintSetUpdate |
withSizeConstraint(SizeConstraint sizeConstraint)
Specifies a constraint on the size of a part of the web request.
|
private java.lang.String action
Specify INSERT
to add a SizeConstraintSetUpdate to a
SizeConstraintSet. Use DELETE
to remove a
SizeConstraintSetUpdate
from a
SizeConstraintSet
.
private 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.
public void setAction(java.lang.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
.ChangeAction
public java.lang.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
.ChangeAction
public SizeConstraintSetUpdate withAction(java.lang.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
.ChangeAction
public 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
.ChangeAction
public 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
.ChangeAction
public 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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SizeConstraintSetUpdate clone()
clone
in class java.lang.Object