@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GeoMatchStatement extends Object implements Serializable, Cloneable, StructuredPojo
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. |
ForwardedIPConfig |
getForwardedIPConfig()
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address
that's reported by the web request origin.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
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. |
void |
setForwardedIPConfig(ForwardedIPConfig forwardedIPConfig)
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address
that's reported by the web request origin.
|
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. |
GeoMatchStatement |
withForwardedIPConfig(ForwardedIPConfig forwardedIPConfig)
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address
that's reported by the web request origin.
|
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.CountryCode
public 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.CountryCode
public 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.CountryCode
public 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.CountryCode
public 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.CountryCode
public void setForwardedIPConfig(ForwardedIPConfig forwardedIPConfig)
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
forwardedIPConfig
- The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP
address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but
you can specify any header name. If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
public ForwardedIPConfig getForwardedIPConfig()
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
public GeoMatchStatement withForwardedIPConfig(ForwardedIPConfig forwardedIPConfig)
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
forwardedIPConfig
- The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP
address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but
you can specify any header name. If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
public String toString()
toString
in class Object
Object.toString()
public GeoMatchStatement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.