Class SizeConstraintSet
- java.lang.Object
-
- com.amazonaws.services.waf.model.SizeConstraintSet
-
- All Implemented Interfaces:
Serializable,Cloneable
public class SizeConstraintSet extends Object implements Serializable, Cloneable
A complex type that contains
SizeConstraintobjects, which specify the parts of web requests that you want AWS WAF to inspect the size of. If aSizeConstraintSetcontains more than oneSizeConstraintobject, a request only needs to match one constraint to be considered a match.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SizeConstraintSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SizeConstraintSetclone()booleanequals(Object obj)StringgetName()The name, if any, of theSizeConstraintSet.List<SizeConstraint>getSizeConstraints()Specifies the parts of web requests that you want to inspect the size of.StringgetSizeConstraintSetId()A unique identifier for aSizeConstraintSet.inthashCode()voidsetName(String name)The name, if any, of theSizeConstraintSet.voidsetSizeConstraints(Collection<SizeConstraint> sizeConstraints)Specifies the parts of web requests that you want to inspect the size of.voidsetSizeConstraintSetId(String sizeConstraintSetId)A unique identifier for aSizeConstraintSet.StringtoString()Returns a string representation of this object; useful for testing and debugging.SizeConstraintSetwithName(String name)The name, if any, of theSizeConstraintSet.SizeConstraintSetwithSizeConstraints(SizeConstraint... sizeConstraints)Specifies the parts of web requests that you want to inspect the size of.SizeConstraintSetwithSizeConstraints(Collection<SizeConstraint> sizeConstraints)Specifies the parts of web requests that you want to inspect the size of.SizeConstraintSetwithSizeConstraintSetId(String sizeConstraintSetId)A unique identifier for aSizeConstraintSet.
-
-
-
Method Detail
-
setSizeConstraintSetId
public void setSizeConstraintSetId(String sizeConstraintSetId)
A unique identifier for a
SizeConstraintSet. You useSizeConstraintSetIdto get information about aSizeConstraintSet(see GetSizeConstraintSet), update aSizeConstraintSet(see UpdateSizeConstraintSet), insert aSizeConstraintSetinto aRuleor delete one from aRule(see UpdateRule), and delete aSizeConstraintSetfrom AWS WAF (see DeleteSizeConstraintSet).SizeConstraintSetIdis returned by CreateSizeConstraintSet and by ListSizeConstraintSets.- Parameters:
sizeConstraintSetId- A unique identifier for aSizeConstraintSet. You useSizeConstraintSetIdto get information about aSizeConstraintSet(see GetSizeConstraintSet), update aSizeConstraintSet(see UpdateSizeConstraintSet), insert aSizeConstraintSetinto aRuleor delete one from aRule(see UpdateRule), and delete aSizeConstraintSetfrom AWS WAF (see DeleteSizeConstraintSet).SizeConstraintSetIdis returned by CreateSizeConstraintSet and by ListSizeConstraintSets.
-
getSizeConstraintSetId
public String getSizeConstraintSetId()
A unique identifier for a
SizeConstraintSet. You useSizeConstraintSetIdto get information about aSizeConstraintSet(see GetSizeConstraintSet), update aSizeConstraintSet(see UpdateSizeConstraintSet), insert aSizeConstraintSetinto aRuleor delete one from aRule(see UpdateRule), and delete aSizeConstraintSetfrom AWS WAF (see DeleteSizeConstraintSet).SizeConstraintSetIdis returned by CreateSizeConstraintSet and by ListSizeConstraintSets.- Returns:
- A unique identifier for a
SizeConstraintSet. You useSizeConstraintSetIdto get information about aSizeConstraintSet(see GetSizeConstraintSet), update aSizeConstraintSet(see UpdateSizeConstraintSet), insert aSizeConstraintSetinto aRuleor delete one from aRule(see UpdateRule), and delete aSizeConstraintSetfrom AWS WAF (see DeleteSizeConstraintSet).SizeConstraintSetIdis returned by CreateSizeConstraintSet and by ListSizeConstraintSets.
-
withSizeConstraintSetId
public SizeConstraintSet withSizeConstraintSetId(String sizeConstraintSetId)
A unique identifier for a
SizeConstraintSet. You useSizeConstraintSetIdto get information about aSizeConstraintSet(see GetSizeConstraintSet), update aSizeConstraintSet(see UpdateSizeConstraintSet), insert aSizeConstraintSetinto aRuleor delete one from aRule(see UpdateRule), and delete aSizeConstraintSetfrom AWS WAF (see DeleteSizeConstraintSet).SizeConstraintSetIdis returned by CreateSizeConstraintSet and by ListSizeConstraintSets.- Parameters:
sizeConstraintSetId- A unique identifier for aSizeConstraintSet. You useSizeConstraintSetIdto get information about aSizeConstraintSet(see GetSizeConstraintSet), update aSizeConstraintSet(see UpdateSizeConstraintSet), insert aSizeConstraintSetinto aRuleor delete one from aRule(see UpdateRule), and delete aSizeConstraintSetfrom AWS WAF (see DeleteSizeConstraintSet).SizeConstraintSetIdis returned by CreateSizeConstraintSet and by ListSizeConstraintSets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
public void setName(String name)
The name, if any, of the
SizeConstraintSet.- Parameters:
name- The name, if any, of theSizeConstraintSet.
-
getName
public String getName()
The name, if any, of the
SizeConstraintSet.- Returns:
- The name, if any, of the
SizeConstraintSet.
-
withName
public SizeConstraintSet withName(String name)
The name, if any, of the
SizeConstraintSet.- Parameters:
name- The name, if any, of theSizeConstraintSet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSizeConstraints
public List<SizeConstraint> getSizeConstraints()
Specifies the parts of web requests that you want to inspect the size of.
- Returns:
- Specifies the parts of web requests that you want to inspect the size of.
-
setSizeConstraints
public void setSizeConstraints(Collection<SizeConstraint> sizeConstraints)
Specifies the parts of web requests that you want to inspect the size of.
- Parameters:
sizeConstraints- Specifies the parts of web requests that you want to inspect the size of.
-
withSizeConstraints
public SizeConstraintSet withSizeConstraints(SizeConstraint... sizeConstraints)
Specifies the parts of web requests that you want to inspect the size of.
NOTE: This method appends the values to the existing list (if any). Use
setSizeConstraints(java.util.Collection)orwithSizeConstraints(java.util.Collection)if you want to override the existing values.- Parameters:
sizeConstraints- Specifies the parts of web requests that you want to inspect the size of.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSizeConstraints
public SizeConstraintSet withSizeConstraints(Collection<SizeConstraint> sizeConstraints)
Specifies the parts of web requests that you want to inspect the size of.
- Parameters:
sizeConstraints- Specifies the parts of web requests that you want to inspect the size of.- 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 SizeConstraintSet clone()
-
-