Class SizeConstraintSet
- All Implemented Interfaces:
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 a SizeConstraintSet
contains more than one
SizeConstraint
object, a request only needs to match one
constraint to be considered a match.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getName()
The name, if any, of theSizeConstraintSet
.Specifies the parts of web requests that you want to inspect the size of.A unique identifier for aSizeConstraintSet
.int
hashCode()
void
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
.toString()
Returns a string representation of this object; useful for testing and debugging.The name, if any, of theSizeConstraintSet
.withSizeConstraints
(SizeConstraint... sizeConstraints) Specifies the parts of web requests that you want to inspect the size of.withSizeConstraints
(Collection<SizeConstraint> sizeConstraints) Specifies the parts of web requests that you want to inspect the size of.withSizeConstraintSetId
(String sizeConstraintSetId) A unique identifier for aSizeConstraintSet
.
-
Constructor Details
-
SizeConstraintSet
public SizeConstraintSet()
-
-
Method Details
-
setSizeConstraintSetId
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
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
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
The name, if any, of the
SizeConstraintSet
.- Parameters:
name
- The name, if any, of theSizeConstraintSet
.
-
getName
The name, if any, of the
SizeConstraintSet
.- Returns:
- The name, if any, of the
SizeConstraintSet
.
-
withName
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-