@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GeoMatchStatement extends Object implements Serializable, Cloneable, StructuredPojo
This is the latest version of AWS WAF, named AWS WAFV2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF Developer Guide.
A rule statement used to identify web requests based on country of origin.
| Constructor and Description |
|---|
GeoMatchStatement() |
| Modifier and Type | Method and Description |
|---|---|
GeoMatchStatement |
clone() |
boolean |
equals(Object obj) |
List<String> |
getCountryCodes()
An array of two-character country codes, for example,
[ "US", "CN" ], from the alpha-2 country ISO
codes of the ISO 3166 international standard. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setCountryCodes(Collection<String> countryCodes)
An array of two-character country codes, for example,
[ "US", "CN" ], from the alpha-2 country ISO
codes of the ISO 3166 international standard. |
String |
toString()
Returns a string representation of this object.
|
GeoMatchStatement |
withCountryCodes(Collection<String> countryCodes)
An array of two-character country codes, for example,
[ "US", "CN" ], from the alpha-2 country ISO
codes of the ISO 3166 international standard. |
GeoMatchStatement |
withCountryCodes(CountryCode... countryCodes)
An array of two-character country codes, for example,
[ "US", "CN" ], from the alpha-2 country ISO
codes of the ISO 3166 international standard. |
GeoMatchStatement |
withCountryCodes(String... countryCodes)
An array of two-character country codes, for example,
[ "US", "CN" ], from the alpha-2 country ISO
codes of the ISO 3166 international standard. |
public List<String> getCountryCodes()
An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO
codes of the ISO 3166 international standard.
[ "US", "CN" ], from the alpha-2
country ISO codes of the ISO 3166 international standard.CountryCodepublic void setCountryCodes(Collection<String> countryCodes)
An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO
codes of the ISO 3166 international standard.
countryCodes - An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2
country ISO codes of the ISO 3166 international standard.CountryCodepublic GeoMatchStatement withCountryCodes(String... countryCodes)
An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO
codes of the ISO 3166 international standard.
NOTE: This method appends the values to the existing list (if any). Use
setCountryCodes(java.util.Collection) or withCountryCodes(java.util.Collection) if you want to
override the existing values.
countryCodes - An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2
country ISO codes of the ISO 3166 international standard.CountryCodepublic GeoMatchStatement withCountryCodes(Collection<String> countryCodes)
An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO
codes of the ISO 3166 international standard.
countryCodes - An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2
country ISO codes of the ISO 3166 international standard.CountryCodepublic GeoMatchStatement withCountryCodes(CountryCode... countryCodes)
An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO
codes of the ISO 3166 international standard.
countryCodes - An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2
country ISO codes of the ISO 3166 international standard.CountryCodepublic String toString()
toString in class ObjectObject.toString()public GeoMatchStatement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.