AWS SDK for C++  1.9.108
AWS SDK for C++
GeoMatchStatement.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace WAFV2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
48  inline const Aws::Vector<CountryCode>& GetCountryCodes() const{ return m_countryCodes; }
49 
55  inline bool CountryCodesHasBeenSet() const { return m_countryCodesHasBeenSet; }
56 
62  inline void SetCountryCodes(const Aws::Vector<CountryCode>& value) { m_countryCodesHasBeenSet = true; m_countryCodes = value; }
63 
69  inline void SetCountryCodes(Aws::Vector<CountryCode>&& value) { m_countryCodesHasBeenSet = true; m_countryCodes = std::move(value); }
70 
76  inline GeoMatchStatement& WithCountryCodes(const Aws::Vector<CountryCode>& value) { SetCountryCodes(value); return *this;}
77 
83  inline GeoMatchStatement& WithCountryCodes(Aws::Vector<CountryCode>&& value) { SetCountryCodes(std::move(value)); return *this;}
84 
90  inline GeoMatchStatement& AddCountryCodes(const CountryCode& value) { m_countryCodesHasBeenSet = true; m_countryCodes.push_back(value); return *this; }
91 
97  inline GeoMatchStatement& AddCountryCodes(CountryCode&& value) { m_countryCodesHasBeenSet = true; m_countryCodes.push_back(std::move(value)); return *this; }
98 
99 
107  inline const ForwardedIPConfig& GetForwardedIPConfig() const{ return m_forwardedIPConfig; }
108 
116  inline bool ForwardedIPConfigHasBeenSet() const { return m_forwardedIPConfigHasBeenSet; }
117 
125  inline void SetForwardedIPConfig(const ForwardedIPConfig& value) { m_forwardedIPConfigHasBeenSet = true; m_forwardedIPConfig = value; }
126 
134  inline void SetForwardedIPConfig(ForwardedIPConfig&& value) { m_forwardedIPConfigHasBeenSet = true; m_forwardedIPConfig = std::move(value); }
135 
143  inline GeoMatchStatement& WithForwardedIPConfig(const ForwardedIPConfig& value) { SetForwardedIPConfig(value); return *this;}
144 
152  inline GeoMatchStatement& WithForwardedIPConfig(ForwardedIPConfig&& value) { SetForwardedIPConfig(std::move(value)); return *this;}
153 
154  private:
155 
156  Aws::Vector<CountryCode> m_countryCodes;
157  bool m_countryCodesHasBeenSet;
158 
159  ForwardedIPConfig m_forwardedIPConfig;
160  bool m_forwardedIPConfigHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace WAFV2
165 } // namespace Aws
Aws::WAFV2::Model::GeoMatchStatement::SetCountryCodes
void SetCountryCodes(const Aws::Vector< CountryCode > &value)
Definition: GeoMatchStatement.h:62
Aws::WAFV2::Model::CountryCode
CountryCode
Definition: CountryCode.h:17
Aws::WAFV2::Model::GeoMatchStatement::WithCountryCodes
GeoMatchStatement & WithCountryCodes(Aws::Vector< CountryCode > &&value)
Definition: GeoMatchStatement.h:83
Aws::WAFV2::Model::GeoMatchStatement::GeoMatchStatement
GeoMatchStatement(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::GeoMatchStatement::SetForwardedIPConfig
void SetForwardedIPConfig(const ForwardedIPConfig &value)
Definition: GeoMatchStatement.h:125
Aws::WAFV2::Model::GeoMatchStatement::ForwardedIPConfigHasBeenSet
bool ForwardedIPConfigHasBeenSet() const
Definition: GeoMatchStatement.h:116
ForwardedIPConfig.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAFV2::Model::GeoMatchStatement::WithForwardedIPConfig
GeoMatchStatement & WithForwardedIPConfig(const ForwardedIPConfig &value)
Definition: GeoMatchStatement.h:143
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::GeoMatchStatement
Definition: GeoMatchStatement.h:35
Aws::WAFV2::Model::GeoMatchStatement::GetForwardedIPConfig
const ForwardedIPConfig & GetForwardedIPConfig() const
Definition: GeoMatchStatement.h:107
AWSVector.h
WAFV2_EXPORTS.h
Aws::WAFV2::Model::ForwardedIPConfig
Definition: ForwardedIPConfig.h:41
Aws::WAFV2::Model::GeoMatchStatement::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::GeoMatchStatement::GeoMatchStatement
GeoMatchStatement()
Aws::WAFV2::Model::GeoMatchStatement::WithCountryCodes
GeoMatchStatement & WithCountryCodes(const Aws::Vector< CountryCode > &value)
Definition: GeoMatchStatement.h:76
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::WAFV2::Model::GeoMatchStatement::SetForwardedIPConfig
void SetForwardedIPConfig(ForwardedIPConfig &&value)
Definition: GeoMatchStatement.h:134
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::GeoMatchStatement::GetCountryCodes
const Aws::Vector< CountryCode > & GetCountryCodes() const
Definition: GeoMatchStatement.h:48
Aws::WAFV2::Model::GeoMatchStatement::operator=
GeoMatchStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
CountryCode.h
Aws::WAFV2::Model::GeoMatchStatement::SetCountryCodes
void SetCountryCodes(Aws::Vector< CountryCode > &&value)
Definition: GeoMatchStatement.h:69
Aws::WAFV2::Model::GeoMatchStatement::CountryCodesHasBeenSet
bool CountryCodesHasBeenSet() const
Definition: GeoMatchStatement.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::GeoMatchStatement::AddCountryCodes
GeoMatchStatement & AddCountryCodes(CountryCode &&value)
Definition: GeoMatchStatement.h:97
Aws::WAFV2::Model::GeoMatchStatement::WithForwardedIPConfig
GeoMatchStatement & WithForwardedIPConfig(ForwardedIPConfig &&value)
Definition: GeoMatchStatement.h:152
Aws::WAFV2::Model::GeoMatchStatement::AddCountryCodes
GeoMatchStatement & AddCountryCodes(const CountryCode &value)
Definition: GeoMatchStatement.h:90