AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCountryCodes(const Aws::Vector<CountryCode>& value) { m_countryCodesHasBeenSet = true; m_countryCodes = value; }
80 inline void SetCountryCodes(Aws::Vector<CountryCode>&& value) { m_countryCodesHasBeenSet = true; m_countryCodes = std::move(value); }
81 inline GeoMatchStatement& WithCountryCodes(const Aws::Vector<CountryCode>& value) { SetCountryCodes(value); return *this;}
82 inline GeoMatchStatement& WithCountryCodes(Aws::Vector<CountryCode>&& value) { SetCountryCodes(std::move(value)); return *this;}
83 inline GeoMatchStatement& AddCountryCodes(const CountryCode& value) { m_countryCodesHasBeenSet = true; m_countryCodes.push_back(value); return *this; }
84 inline GeoMatchStatement& AddCountryCodes(CountryCode&& value) { m_countryCodesHasBeenSet = true; m_countryCodes.push_back(std::move(value)); return *this; }
86
88
95 inline const ForwardedIPConfig& GetForwardedIPConfig() const{ return m_forwardedIPConfig; }
96 inline bool ForwardedIPConfigHasBeenSet() const { return m_forwardedIPConfigHasBeenSet; }
97 inline void SetForwardedIPConfig(const ForwardedIPConfig& value) { m_forwardedIPConfigHasBeenSet = true; m_forwardedIPConfig = value; }
98 inline void SetForwardedIPConfig(ForwardedIPConfig&& value) { m_forwardedIPConfigHasBeenSet = true; m_forwardedIPConfig = std::move(value); }
100 inline GeoMatchStatement& WithForwardedIPConfig(ForwardedIPConfig&& value) { SetForwardedIPConfig(std::move(value)); return *this;}
102 private:
103
104 Aws::Vector<CountryCode> m_countryCodes;
105 bool m_countryCodesHasBeenSet = false;
106
107 ForwardedIPConfig m_forwardedIPConfig;
108 bool m_forwardedIPConfigHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace WAFV2
113} // namespace Aws
GeoMatchStatement & WithForwardedIPConfig(ForwardedIPConfig &&value)
GeoMatchStatement & AddCountryCodes(const CountryCode &value)
GeoMatchStatement & WithForwardedIPConfig(const ForwardedIPConfig &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)
void SetForwardedIPConfig(const ForwardedIPConfig &value)
GeoMatchStatement & WithCountryCodes(Aws::Vector< CountryCode > &&value)
const ForwardedIPConfig & GetForwardedIPConfig() const
GeoMatchStatement & AddCountryCodes(CountryCode &&value)
void SetCountryCodes(Aws::Vector< CountryCode > &&value)
void SetCountryCodes(const Aws::Vector< CountryCode > &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetForwardedIPConfig(ForwardedIPConfig &&value)
GeoMatchStatement & WithCountryCodes(const Aws::Vector< CountryCode > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue