AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GeoMatchStatement.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/model/ForwardedIPConfig.h>
10#include <aws/wafv2/model/CountryCode.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WAFV2
24{
25namespace Model
26{
27
57 {
58 public:
59 AWS_WAFV2_API GeoMatchStatement() = default;
62 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
63
64
66
77 inline const Aws::Vector<CountryCode>& GetCountryCodes() const { return m_countryCodes; }
78 inline bool CountryCodesHasBeenSet() const { return m_countryCodesHasBeenSet; }
79 template<typename CountryCodesT = Aws::Vector<CountryCode>>
80 void SetCountryCodes(CountryCodesT&& value) { m_countryCodesHasBeenSet = true; m_countryCodes = std::forward<CountryCodesT>(value); }
81 template<typename CountryCodesT = Aws::Vector<CountryCode>>
82 GeoMatchStatement& WithCountryCodes(CountryCodesT&& value) { SetCountryCodes(std::forward<CountryCodesT>(value)); return *this;}
83 inline GeoMatchStatement& AddCountryCodes(CountryCode value) { m_countryCodesHasBeenSet = true; m_countryCodes.push_back(value); return *this; }
85
87
94 inline const ForwardedIPConfig& GetForwardedIPConfig() const { return m_forwardedIPConfig; }
95 inline bool ForwardedIPConfigHasBeenSet() const { return m_forwardedIPConfigHasBeenSet; }
96 template<typename ForwardedIPConfigT = ForwardedIPConfig>
97 void SetForwardedIPConfig(ForwardedIPConfigT&& value) { m_forwardedIPConfigHasBeenSet = true; m_forwardedIPConfig = std::forward<ForwardedIPConfigT>(value); }
98 template<typename ForwardedIPConfigT = ForwardedIPConfig>
99 GeoMatchStatement& WithForwardedIPConfig(ForwardedIPConfigT&& value) { SetForwardedIPConfig(std::forward<ForwardedIPConfigT>(value)); return *this;}
101 private:
102
103 Aws::Vector<CountryCode> m_countryCodes;
104 bool m_countryCodesHasBeenSet = false;
105
106 ForwardedIPConfig m_forwardedIPConfig;
107 bool m_forwardedIPConfigHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace WAFV2
112} // 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