@Generated(value="software.amazon.awssdk:codegen") public final class GeoMatchStatement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GeoMatchStatement.Builder,GeoMatchStatement>
A rule statement used to identify web requests based on country of origin.
| Modifier and Type | Class and Description |
|---|---|
static interface |
GeoMatchStatement.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GeoMatchStatement.Builder |
builder() |
List<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. |
List<String> |
countryCodesAsStrings()
An array of two-character country codes, for example,
[ "US", "CN" ], from the alpha-2 country ISO
codes of the ISO 3166 international standard. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
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.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCountryCodes()
Returns true if the CountryCodes property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends GeoMatchStatement.Builder> |
serializableBuilderClass() |
GeoMatchStatement.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasCountryCodes() to see if a value was sent in this field.
[ "US", "CN" ], from the alpha-2
country ISO codes of the ISO 3166 international standard.public final boolean hasCountryCodes()
public final List<String> countryCodesAsStrings()
An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO
codes of the ISO 3166 international standard.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasCountryCodes() to see if a value was sent in this field.
[ "US", "CN" ], from the alpha-2
country ISO codes of the ISO 3166 international standard.public final 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, AWS WAF doesn't apply the rule to the web request at all.
If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
public GeoMatchStatement.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GeoMatchStatement.Builder,GeoMatchStatement>public static GeoMatchStatement.Builder builder()
public static Class<? extends GeoMatchStatement.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.