/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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. See Also:
AWS
* API Reference
An array of two-character country codes, for example, [ "US", "CN"
* ], from the alpha-2 country ISO codes of the ISO 3166 international
* standard.
An array of two-character country codes, for example, [ "US", "CN"
* ], from the alpha-2 country ISO codes of the ISO 3166 international
* standard.
An array of two-character country codes, for example, [ "US", "CN"
* ], from the alpha-2 country ISO codes of the ISO 3166 international
* standard.
An array of two-character country codes, for example, [ "US", "CN"
* ], from the alpha-2 country ISO codes of the ISO 3166 international
* standard.
An array of two-character country codes, for example, [ "US", "CN"
* ], from the alpha-2 country ISO codes of the ISO 3166 international
* standard.
An array of two-character country codes, for example, [ "US", "CN"
* ], from the alpha-2 country ISO codes of the ISO 3166 international
* standard.
An array of two-character country codes, for example, [ "US", "CN"
* ], from the alpha-2 country ISO codes of the ISO 3166 international
* standard.
An array of two-character country codes, for example, [ "US", "CN"
* ], from the alpha-2 country ISO codes of the ISO 3166 international
* standard.
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.
*/ inline const ForwardedIPConfig& GetForwardedIPConfig() const{ return m_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.
*/ inline bool ForwardedIPConfigHasBeenSet() const { return m_forwardedIPConfigHasBeenSet; } /** *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.
*/ inline void SetForwardedIPConfig(const ForwardedIPConfig& value) { m_forwardedIPConfigHasBeenSet = true; m_forwardedIPConfig = value; } /** *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.
*/ inline void SetForwardedIPConfig(ForwardedIPConfig&& value) { m_forwardedIPConfigHasBeenSet = true; m_forwardedIPConfig = std::move(value); } /** *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.
*/ inline GeoMatchStatement& WithForwardedIPConfig(const ForwardedIPConfig& value) { SetForwardedIPConfig(value); return *this;} /** *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.
*/ inline GeoMatchStatement& WithForwardedIPConfig(ForwardedIPConfig&& value) { SetForwardedIPConfig(std::move(value)); return *this;} private: Aws::Vector