@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GeoMatchSet extends Object implements Serializable, Cloneable, StructuredPojo
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
Contains one or more countries that AWS WAF will search for.
Constructor and Description |
---|
GeoMatchSet() |
Modifier and Type | Method and Description |
---|---|
GeoMatchSet |
clone() |
boolean |
equals(Object obj) |
List<GeoMatchConstraint> |
getGeoMatchConstraints()
An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for.
|
String |
getGeoMatchSetId()
The
GeoMatchSetId for an GeoMatchSet . |
String |
getName()
A friendly name or description of the GeoMatchSet.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setGeoMatchConstraints(Collection<GeoMatchConstraint> geoMatchConstraints)
An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for.
|
void |
setGeoMatchSetId(String geoMatchSetId)
The
GeoMatchSetId for an GeoMatchSet . |
void |
setName(String name)
A friendly name or description of the GeoMatchSet.
|
String |
toString()
Returns a string representation of this object.
|
GeoMatchSet |
withGeoMatchConstraints(Collection<GeoMatchConstraint> geoMatchConstraints)
An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for.
|
GeoMatchSet |
withGeoMatchConstraints(GeoMatchConstraint... geoMatchConstraints)
An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for.
|
GeoMatchSet |
withGeoMatchSetId(String geoMatchSetId)
The
GeoMatchSetId for an GeoMatchSet . |
GeoMatchSet |
withName(String name)
A friendly name or description of the GeoMatchSet.
|
public void setGeoMatchSetId(String geoMatchSetId)
The GeoMatchSetId
for an GeoMatchSet
. You use GeoMatchSetId
to get
information about a GeoMatchSet
(see GeoMatchSet), update a GeoMatchSet
(see
UpdateGeoMatchSet), insert a GeoMatchSet
into a Rule
or delete one from a
Rule
(see UpdateRule), and delete a GeoMatchSet
from AWS WAF (see
DeleteGeoMatchSet).
GeoMatchSetId
is returned by CreateGeoMatchSet and by ListGeoMatchSets.
geoMatchSetId
- The GeoMatchSetId
for an GeoMatchSet
. You use GeoMatchSetId
to get
information about a GeoMatchSet
(see GeoMatchSet), update a GeoMatchSet
(see UpdateGeoMatchSet), insert a GeoMatchSet
into a Rule
or delete one
from a Rule
(see UpdateRule), and delete a GeoMatchSet
from AWS WAF (see
DeleteGeoMatchSet).
GeoMatchSetId
is returned by CreateGeoMatchSet and by ListGeoMatchSets.
public String getGeoMatchSetId()
The GeoMatchSetId
for an GeoMatchSet
. You use GeoMatchSetId
to get
information about a GeoMatchSet
(see GeoMatchSet), update a GeoMatchSet
(see
UpdateGeoMatchSet), insert a GeoMatchSet
into a Rule
or delete one from a
Rule
(see UpdateRule), and delete a GeoMatchSet
from AWS WAF (see
DeleteGeoMatchSet).
GeoMatchSetId
is returned by CreateGeoMatchSet and by ListGeoMatchSets.
GeoMatchSetId
for an GeoMatchSet
. You use GeoMatchSetId
to get
information about a GeoMatchSet
(see GeoMatchSet), update a GeoMatchSet
(see UpdateGeoMatchSet), insert a GeoMatchSet
into a Rule
or delete one
from a Rule
(see UpdateRule), and delete a GeoMatchSet
from AWS WAF (see
DeleteGeoMatchSet).
GeoMatchSetId
is returned by CreateGeoMatchSet and by ListGeoMatchSets.
public GeoMatchSet withGeoMatchSetId(String geoMatchSetId)
The GeoMatchSetId
for an GeoMatchSet
. You use GeoMatchSetId
to get
information about a GeoMatchSet
(see GeoMatchSet), update a GeoMatchSet
(see
UpdateGeoMatchSet), insert a GeoMatchSet
into a Rule
or delete one from a
Rule
(see UpdateRule), and delete a GeoMatchSet
from AWS WAF (see
DeleteGeoMatchSet).
GeoMatchSetId
is returned by CreateGeoMatchSet and by ListGeoMatchSets.
geoMatchSetId
- The GeoMatchSetId
for an GeoMatchSet
. You use GeoMatchSetId
to get
information about a GeoMatchSet
(see GeoMatchSet), update a GeoMatchSet
(see UpdateGeoMatchSet), insert a GeoMatchSet
into a Rule
or delete one
from a Rule
(see UpdateRule), and delete a GeoMatchSet
from AWS WAF (see
DeleteGeoMatchSet).
GeoMatchSetId
is returned by CreateGeoMatchSet and by ListGeoMatchSets.
public void setName(String name)
A friendly name or description of the GeoMatchSet. You can't change the name of an
GeoMatchSet
after you create it.
name
- A friendly name or description of the GeoMatchSet. You can't change the name of an
GeoMatchSet
after you create it.public String getName()
A friendly name or description of the GeoMatchSet. You can't change the name of an
GeoMatchSet
after you create it.
GeoMatchSet
after you create it.public GeoMatchSet withName(String name)
A friendly name or description of the GeoMatchSet. You can't change the name of an
GeoMatchSet
after you create it.
name
- A friendly name or description of the GeoMatchSet. You can't change the name of an
GeoMatchSet
after you create it.public List<GeoMatchConstraint> getGeoMatchConstraints()
An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for.
public void setGeoMatchConstraints(Collection<GeoMatchConstraint> geoMatchConstraints)
An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for.
geoMatchConstraints
- An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search
for.public GeoMatchSet withGeoMatchConstraints(GeoMatchConstraint... geoMatchConstraints)
An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for.
NOTE: This method appends the values to the existing list (if any). Use
setGeoMatchConstraints(java.util.Collection)
or withGeoMatchConstraints(java.util.Collection)
if you want to override the existing values.
geoMatchConstraints
- An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search
for.public GeoMatchSet withGeoMatchConstraints(Collection<GeoMatchConstraint> geoMatchConstraints)
An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for.
geoMatchConstraints
- An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search
for.public String toString()
toString
in class Object
Object.toString()
public GeoMatchSet clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.