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 SizeConstraintSetUpdateclone()booleanequals(Object obj)StringgetAction()SizeConstraintgetSizeConstraint()Specifies a constraint on the size of a part of the web request.inthashCode()voidsetAction(ChangeAction action)voidsetAction(String action)voidsetSizeConstraint(SizeConstraint sizeConstraint)Specifies a constraint on the size of a part of the web request.StringtoString()Returns a string representation of this object; useful for testing and debugging.SizeConstraintSetUpdatewithAction(ChangeAction action)SizeConstraintSetUpdatewithAction(String action)SizeConstraintSetUpdatewithSizeConstraint(SizeConstraint sizeConstraint)Specifies a constraint on the size of a part of the web request.
-
-
-
Method Detail
-
setAction
public void setAction(String action)
Specify
INSERTto add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETEto remove aSizeConstraintSetUpdatefrom aSizeConstraintSet.- Parameters:
action- SpecifyINSERTto add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETEto remove aSizeConstraintSetUpdatefrom aSizeConstraintSet.- See Also:
ChangeAction
-
getAction
public String getAction()
Specify
INSERTto add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETEto remove aSizeConstraintSetUpdatefrom aSizeConstraintSet.- Returns:
- Specify
INSERTto add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETEto remove aSizeConstraintSetUpdatefrom aSizeConstraintSet. - See Also:
ChangeAction
-
withAction
public SizeConstraintSetUpdate withAction(String action)
Specify
INSERTto add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETEto remove aSizeConstraintSetUpdatefrom aSizeConstraintSet.- Parameters:
action- SpecifyINSERTto add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETEto remove aSizeConstraintSetUpdatefrom 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
INSERTto add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETEto remove aSizeConstraintSetUpdatefrom aSizeConstraintSet.- Parameters:
action- SpecifyINSERTto add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETEto remove aSizeConstraintSetUpdatefrom aSizeConstraintSet.- See Also:
ChangeAction
-
withAction
public SizeConstraintSetUpdate withAction(ChangeAction action)
Specify
INSERTto add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETEto remove aSizeConstraintSetUpdatefrom aSizeConstraintSet.- Parameters:
action- SpecifyINSERTto add a SizeConstraintSetUpdate to a SizeConstraintSet. UseDELETEto remove aSizeConstraintSetUpdatefrom 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, andFieldToMatchto build an expression in the form of "SizeComparisonOperatorsize in bytes ofFieldToMatch". If that expression is true, theSizeConstraintis considered to match.- Parameters:
sizeConstraint- Specifies a constraint on the size of a part of the web request. AWS WAF uses theSize,ComparisonOperator, andFieldToMatchto build an expression in the form of "SizeComparisonOperatorsize in bytes ofFieldToMatch". If that expression is true, theSizeConstraintis 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, andFieldToMatchto build an expression in the form of "SizeComparisonOperatorsize in bytes ofFieldToMatch". If that expression is true, theSizeConstraintis considered to match.- Returns:
- Specifies a constraint on the size of a part of the web request.
AWS WAF uses the
Size,ComparisonOperator, andFieldToMatchto build an expression in the form of "SizeComparisonOperatorsize in bytes ofFieldToMatch". If that expression is true, theSizeConstraintis 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, andFieldToMatchto build an expression in the form of "SizeComparisonOperatorsize in bytes ofFieldToMatch". If that expression is true, theSizeConstraintis considered to match.- Parameters:
sizeConstraint- Specifies a constraint on the size of a part of the web request. AWS WAF uses theSize,ComparisonOperator, andFieldToMatchto build an expression in the form of "SizeComparisonOperatorsize in bytes ofFieldToMatch". If that expression is true, theSizeConstraintis 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SizeConstraintSetUpdate clone()
-
-