public class SizeConstraintSet
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The name, if any, of the
SizeConstraintSet . |
private java.util.List<SizeConstraint> |
sizeConstraints
Specifies the parts of web requests that you want to inspect the size of.
|
private java.lang.String |
sizeConstraintSetId
A unique identifier for a
SizeConstraintSet . |
Constructor and Description |
---|
SizeConstraintSet() |
Modifier and Type | Method and Description |
---|---|
SizeConstraintSet |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name, if any, of the
SizeConstraintSet . |
java.util.List<SizeConstraint> |
getSizeConstraints()
Specifies the parts of web requests that you want to inspect the size of.
|
java.lang.String |
getSizeConstraintSetId()
A unique identifier for a
SizeConstraintSet . |
int |
hashCode() |
void |
setName(java.lang.String name)
The name, if any, of the
SizeConstraintSet . |
void |
setSizeConstraints(java.util.Collection<SizeConstraint> sizeConstraints)
Specifies the parts of web requests that you want to inspect the size of.
|
void |
setSizeConstraintSetId(java.lang.String sizeConstraintSetId)
A unique identifier for a
SizeConstraintSet . |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SizeConstraintSet |
withName(java.lang.String name)
The name, if any, of the
SizeConstraintSet . |
SizeConstraintSet |
withSizeConstraints(java.util.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(java.lang.String sizeConstraintSetId)
A unique identifier for a
SizeConstraintSet . |
private java.lang.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.
private java.lang.String name
The name, if any, of the SizeConstraintSet
.
private java.util.List<SizeConstraint> sizeConstraints
Specifies the parts of web requests that you want to inspect the size of.
public void setSizeConstraintSetId(java.lang.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 java.lang.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(java.lang.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(java.lang.String name)
The name, if any, of the SizeConstraintSet
.
name
- The name, if any, of the SizeConstraintSet
.public java.lang.String getName()
The name, if any, of the SizeConstraintSet
.
SizeConstraintSet
.public SizeConstraintSet withName(java.lang.String name)
The name, if any, of the SizeConstraintSet
.
name
- The name, if any, of the SizeConstraintSet
.public java.util.List<SizeConstraint> getSizeConstraints()
Specifies the parts of web requests that you want to inspect the size of.
public void setSizeConstraints(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SizeConstraintSet clone()
clone
in class java.lang.Object