Class SizeConstraintSetUpdate
- java.lang.Object
-
- com.amazonaws.services.waf.model.SizeConstraintSetUpdate
-
- All Implemented Interfaces:
Serializable
,Cloneable
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
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SizeConstraintSetUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setAction
public void setAction(String 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
.- See Also:
ChangeAction
-
getAction
public String getAction()
Specify
INSERT
to add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETE
to remove aSizeConstraintSetUpdate
from aSizeConstraintSet
.- Returns:
- Specify
INSERT
to add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETE
to remove aSizeConstraintSetUpdate
from aSizeConstraintSet
. - See Also:
ChangeAction
-
withAction
public SizeConstraintSetUpdate withAction(String 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:
ChangeAction
-
setAction
public void setAction(ChangeAction 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
.- See Also:
ChangeAction
-
withAction
public SizeConstraintSetUpdate withAction(ChangeAction 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:
ChangeAction
-
setSizeConstraint
public void setSizeConstraint(SizeConstraint 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.
-
getSizeConstraint
public SizeConstraint getSizeConstraint()
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.- Returns:
- 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.
-
withSizeConstraint
public SizeConstraintSetUpdate withSizeConstraint(SizeConstraint 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.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SizeConstraintSetUpdate clone()
-
-