AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
GeoMatchStatement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9#include <aws/wafv2/model/CountryCode.h>
10#include <aws/wafv2/model/ForwardedIPConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAFV2 {
22namespace Model {
23
53 public:
54 AWS_WAFV2_API GeoMatchStatement() = default;
57 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
58
60
71 inline const Aws::Vector<CountryCode>& GetCountryCodes() const { return m_countryCodes; }
72 inline bool CountryCodesHasBeenSet() const { return m_countryCodesHasBeenSet; }
73 template <typename CountryCodesT = Aws::Vector<CountryCode>>
74 void SetCountryCodes(CountryCodesT&& value) {
75 m_countryCodesHasBeenSet = true;
76 m_countryCodes = std::forward<CountryCodesT>(value);
77 }
78 template <typename CountryCodesT = Aws::Vector<CountryCode>>
79 GeoMatchStatement& WithCountryCodes(CountryCodesT&& value) {
80 SetCountryCodes(std::forward<CountryCodesT>(value));
81 return *this;
82 }
84 m_countryCodesHasBeenSet = true;
85 m_countryCodes.push_back(value);
86 return *this;
87 }
89
91
98 inline const ForwardedIPConfig& GetForwardedIPConfig() const { return m_forwardedIPConfig; }
99 inline bool ForwardedIPConfigHasBeenSet() const { return m_forwardedIPConfigHasBeenSet; }
100 template <typename ForwardedIPConfigT = ForwardedIPConfig>
101 void SetForwardedIPConfig(ForwardedIPConfigT&& value) {
102 m_forwardedIPConfigHasBeenSet = true;
103 m_forwardedIPConfig = std::forward<ForwardedIPConfigT>(value);
104 }
105 template <typename ForwardedIPConfigT = ForwardedIPConfig>
106 GeoMatchStatement& WithForwardedIPConfig(ForwardedIPConfigT&& value) {
107 SetForwardedIPConfig(std::forward<ForwardedIPConfigT>(value));
108 return *this;
109 }
111 private:
112 Aws::Vector<CountryCode> m_countryCodes;
113
114 ForwardedIPConfig m_forwardedIPConfig;
115 bool m_countryCodesHasBeenSet = false;
116 bool m_forwardedIPConfigHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace WAFV2
121} // namespace Aws
AWS_WAFV2_API GeoMatchStatement()=default
void SetForwardedIPConfig(ForwardedIPConfigT &&value)
GeoMatchStatement & WithCountryCodes(CountryCodesT &&value)
const Aws::Vector< CountryCode > & GetCountryCodes() const
AWS_WAFV2_API GeoMatchStatement(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API GeoMatchStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
GeoMatchStatement & AddCountryCodes(CountryCode value)
const ForwardedIPConfig & GetForwardedIPConfig() const
GeoMatchStatement & WithForwardedIPConfig(ForwardedIPConfigT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCountryCodes(CountryCodesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue