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 a SizeConstraintSet
contains more than one
SizeConstraint
object, a request only needs to match one
constraint to be considered a match.
Constructor and Description |
---|
SizeConstraintSet() |
Modifier and Type | Method and Description |
---|---|
SizeConstraintSet |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name, if any, of the
SizeConstraintSet . |
List<SizeConstraint> |
getSizeConstraints()
Specifies the parts of web requests that you want to inspect the size of.
|
String |
getSizeConstraintSetId()
A unique identifier for a
SizeConstraintSet . |
int |
hashCode() |
void |
setName(String name)
The name, if any, of the
SizeConstraintSet . |
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 a
SizeConstraintSet . |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SizeConstraintSet |
withName(String name)
The name, if any, of the
SizeConstraintSet . |
SizeConstraintSet |
withSizeConstraints(Collection<SizeConstraint> sizeConstraints)
Specifies the parts of web requests that you want to inspect the size of.
|
SizeConstraintSet |
withSizeConstraints(SizeConstraint... sizeConstraints)
Specifies the parts of web requests that you want to inspect the size of.
|
SizeConstraintSet |
withSizeConstraintSetId(String sizeConstraintSetId)
A unique identifier for a
SizeConstraintSet . |
public void setSizeConstraintSetId(String sizeConstraintSetId)
A unique identifier for a SizeConstraintSet
. You use
SizeConstraintSetId
to get information about a
SizeConstraintSet
(see GetSizeConstraintSet), update
a SizeConstraintSet
(see UpdateSizeConstraintSet),
insert a SizeConstraintSet
into a Rule
or
delete one from a Rule
(see UpdateRule), and delete a
SizeConstraintSet
from AWS WAF (see
DeleteSizeConstraintSet).
SizeConstraintSetId
is returned by
CreateSizeConstraintSet and by ListSizeConstraintSets.
sizeConstraintSetId
- A unique identifier for a SizeConstraintSet
. You use
SizeConstraintSetId
to get information about a
SizeConstraintSet
(see GetSizeConstraintSet),
update a SizeConstraintSet
(see
UpdateSizeConstraintSet), insert a
SizeConstraintSet
into a Rule
or delete
one from a Rule
(see UpdateRule), and delete a
SizeConstraintSet
from AWS WAF (see
DeleteSizeConstraintSet).
SizeConstraintSetId
is returned by
CreateSizeConstraintSet and by
ListSizeConstraintSets.
public String getSizeConstraintSetId()
A unique identifier for a SizeConstraintSet
. You use
SizeConstraintSetId
to get information about a
SizeConstraintSet
(see GetSizeConstraintSet), update
a SizeConstraintSet
(see UpdateSizeConstraintSet),
insert a SizeConstraintSet
into a Rule
or
delete one from a Rule
(see UpdateRule), and delete a
SizeConstraintSet
from AWS WAF (see
DeleteSizeConstraintSet).
SizeConstraintSetId
is returned by
CreateSizeConstraintSet and by ListSizeConstraintSets.
SizeConstraintSet
. You use
SizeConstraintSetId
to get information about a
SizeConstraintSet
(see GetSizeConstraintSet),
update a SizeConstraintSet
(see
UpdateSizeConstraintSet), insert a
SizeConstraintSet
into a Rule
or delete
one from a Rule
(see UpdateRule), and delete
a SizeConstraintSet
from AWS WAF (see
DeleteSizeConstraintSet).
SizeConstraintSetId
is returned by
CreateSizeConstraintSet and by
ListSizeConstraintSets.
public SizeConstraintSet withSizeConstraintSetId(String sizeConstraintSetId)
A unique identifier for a SizeConstraintSet
. You use
SizeConstraintSetId
to get information about a
SizeConstraintSet
(see GetSizeConstraintSet), update
a SizeConstraintSet
(see UpdateSizeConstraintSet),
insert a SizeConstraintSet
into a Rule
or
delete one from a Rule
(see UpdateRule), and delete a
SizeConstraintSet
from AWS WAF (see
DeleteSizeConstraintSet).
SizeConstraintSetId
is returned by
CreateSizeConstraintSet and by ListSizeConstraintSets.
sizeConstraintSetId
- A unique identifier for a SizeConstraintSet
. You use
SizeConstraintSetId
to get information about a
SizeConstraintSet
(see GetSizeConstraintSet),
update a SizeConstraintSet
(see
UpdateSizeConstraintSet), insert a
SizeConstraintSet
into a Rule
or delete
one from a Rule
(see UpdateRule), and delete a
SizeConstraintSet
from AWS WAF (see
DeleteSizeConstraintSet).
SizeConstraintSetId
is returned by
CreateSizeConstraintSet and by
ListSizeConstraintSets.
public void setName(String name)
The name, if any, of the SizeConstraintSet
.
name
- The name, if any, of the SizeConstraintSet
.public String getName()
The name, if any, of the SizeConstraintSet
.
SizeConstraintSet
.public SizeConstraintSet withName(String name)
The name, if any, of the SizeConstraintSet
.
name
- The name, if any, of the SizeConstraintSet
.public List<SizeConstraint> getSizeConstraints()
Specifies the parts of web requests that you want to inspect the size of.
public void setSizeConstraints(Collection<SizeConstraint> sizeConstraints)
Specifies the parts of web requests that you want to inspect the size of.
sizeConstraints
- Specifies the parts of web requests that you want to inspect the
size of.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)
or
withSizeConstraints(java.util.Collection)
if you want to
override the existing values.
sizeConstraints
- Specifies the parts of web requests that you want to inspect the
size of.public SizeConstraintSet withSizeConstraints(Collection<SizeConstraint> sizeConstraints)
Specifies the parts of web requests that you want to inspect the size of.
sizeConstraints
- Specifies the parts of web requests that you want to inspect the
size of.public String toString()
toString
in class Object
Object.toString()
public SizeConstraintSet clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.