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
SizeConstraint
objects, which specify the parts of web requests that you want AWS WAF to inspect the size of. If aSizeConstraintSet
contains more than oneSizeConstraint
object, 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 SizeConstraintSet
clone()
boolean
equals(Object obj)
String
getName()
The name, if any, of theSizeConstraintSet
.List<SizeConstraint>
getSizeConstraints()
Specifies the parts of web requests that you want to inspect the size of.String
getSizeConstraintSetId()
A unique identifier for aSizeConstraintSet
.int
hashCode()
void
setName(String name)
The name, if any, of theSizeConstraintSet
.void
setSizeConstraints(Collection<SizeConstraint> sizeConstraints)
Specifies the parts of web requests that you want to inspect the size of.void
setSizeConstraintSetId(String sizeConstraintSetId)
A unique identifier for aSizeConstraintSet
.String
toString()
Returns a string representation of this object; useful for testing and debugging.SizeConstraintSet
withName(String name)
The name, if any, of theSizeConstraintSet
.SizeConstraintSet
withSizeConstraints(SizeConstraint... sizeConstraints)
Specifies the parts of web requests that you want to inspect the size of.SizeConstraintSet
withSizeConstraints(Collection<SizeConstraint> sizeConstraints)
Specifies the parts of web requests that you want to inspect the size of.SizeConstraintSet
withSizeConstraintSetId(String sizeConstraintSetId)
A unique identifier for aSizeConstraintSet
.
-
-
-
Method Detail
-
setSizeConstraintSetId
public void setSizeConstraintSetId(String sizeConstraintSetId)
A unique identifier for a
SizeConstraintSet
. You useSizeConstraintSetId
to get information about aSizeConstraintSet
(see GetSizeConstraintSet), update aSizeConstraintSet
(see UpdateSizeConstraintSet), insert aSizeConstraintSet
into aRule
or delete one from aRule
(see UpdateRule), and delete aSizeConstraintSet
from AWS WAF (see DeleteSizeConstraintSet).SizeConstraintSetId
is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.- Parameters:
sizeConstraintSetId
- A unique identifier for aSizeConstraintSet
. You useSizeConstraintSetId
to get information about aSizeConstraintSet
(see GetSizeConstraintSet), update aSizeConstraintSet
(see UpdateSizeConstraintSet), insert aSizeConstraintSet
into aRule
or delete one from aRule
(see UpdateRule), and delete aSizeConstraintSet
from AWS WAF (see DeleteSizeConstraintSet).SizeConstraintSetId
is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.
-
getSizeConstraintSetId
public String getSizeConstraintSetId()
A unique identifier for a
SizeConstraintSet
. You useSizeConstraintSetId
to get information about aSizeConstraintSet
(see GetSizeConstraintSet), update aSizeConstraintSet
(see UpdateSizeConstraintSet), insert aSizeConstraintSet
into aRule
or delete one from aRule
(see UpdateRule), and delete aSizeConstraintSet
from AWS WAF (see DeleteSizeConstraintSet).SizeConstraintSetId
is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.- Returns:
- A unique identifier for a
SizeConstraintSet
. You useSizeConstraintSetId
to get information about aSizeConstraintSet
(see GetSizeConstraintSet), update aSizeConstraintSet
(see UpdateSizeConstraintSet), insert aSizeConstraintSet
into aRule
or delete one from aRule
(see UpdateRule), and delete aSizeConstraintSet
from AWS WAF (see DeleteSizeConstraintSet).SizeConstraintSetId
is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.
-
withSizeConstraintSetId
public SizeConstraintSet withSizeConstraintSetId(String sizeConstraintSetId)
A unique identifier for a
SizeConstraintSet
. You useSizeConstraintSetId
to get information about aSizeConstraintSet
(see GetSizeConstraintSet), update aSizeConstraintSet
(see UpdateSizeConstraintSet), insert aSizeConstraintSet
into aRule
or delete one from aRule
(see UpdateRule), and delete aSizeConstraintSet
from AWS WAF (see DeleteSizeConstraintSet).SizeConstraintSetId
is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.- Parameters:
sizeConstraintSetId
- A unique identifier for aSizeConstraintSet
. You useSizeConstraintSetId
to get information about aSizeConstraintSet
(see GetSizeConstraintSet), update aSizeConstraintSet
(see UpdateSizeConstraintSet), insert aSizeConstraintSet
into aRule
or delete one from aRule
(see UpdateRule), and delete aSizeConstraintSet
from AWS WAF (see DeleteSizeConstraintSet).SizeConstraintSetId
is 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SizeConstraintSet clone()
-
-