AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WebACL.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/waf-regional/model/WafAction.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/waf-regional/model/ActivatedRule.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WAFRegional
25{
26namespace Model
27{
28
51 class WebACL
52 {
53 public:
54 AWS_WAFREGIONAL_API WebACL();
55 AWS_WAFREGIONAL_API WebACL(Aws::Utils::Json::JsonView jsonValue);
56 AWS_WAFREGIONAL_API WebACL& operator=(Aws::Utils::Json::JsonView jsonValue);
57 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
58
59
61
68 inline const Aws::String& GetWebACLId() const{ return m_webACLId; }
69 inline bool WebACLIdHasBeenSet() const { return m_webACLIdHasBeenSet; }
70 inline void SetWebACLId(const Aws::String& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; }
71 inline void SetWebACLId(Aws::String&& value) { m_webACLIdHasBeenSet = true; m_webACLId = std::move(value); }
72 inline void SetWebACLId(const char* value) { m_webACLIdHasBeenSet = true; m_webACLId.assign(value); }
73 inline WebACL& WithWebACLId(const Aws::String& value) { SetWebACLId(value); return *this;}
74 inline WebACL& WithWebACLId(Aws::String&& value) { SetWebACLId(std::move(value)); return *this;}
75 inline WebACL& WithWebACLId(const char* value) { SetWebACLId(value); return *this;}
77
79
83 inline const Aws::String& GetName() const{ return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
86 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
87 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
88 inline WebACL& WithName(const Aws::String& value) { SetName(value); return *this;}
89 inline WebACL& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
90 inline WebACL& WithName(const char* value) { SetName(value); return *this;}
92
94
101 inline const Aws::String& GetMetricName() const{ return m_metricName; }
102 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
103 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
104 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
105 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
106 inline WebACL& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
107 inline WebACL& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
108 inline WebACL& WithMetricName(const char* value) { SetMetricName(value); return *this;}
110
112
117 inline const WafAction& GetDefaultAction() const{ return m_defaultAction; }
118 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
119 inline void SetDefaultAction(const WafAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
120 inline void SetDefaultAction(WafAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
121 inline WebACL& WithDefaultAction(const WafAction& value) { SetDefaultAction(value); return *this;}
122 inline WebACL& WithDefaultAction(WafAction&& value) { SetDefaultAction(std::move(value)); return *this;}
124
126
131 inline const Aws::Vector<ActivatedRule>& GetRules() const{ return m_rules; }
132 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
133 inline void SetRules(const Aws::Vector<ActivatedRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
134 inline void SetRules(Aws::Vector<ActivatedRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
135 inline WebACL& WithRules(const Aws::Vector<ActivatedRule>& value) { SetRules(value); return *this;}
136 inline WebACL& WithRules(Aws::Vector<ActivatedRule>&& value) { SetRules(std::move(value)); return *this;}
137 inline WebACL& AddRules(const ActivatedRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
138 inline WebACL& AddRules(ActivatedRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
140
142
145 inline const Aws::String& GetWebACLArn() const{ return m_webACLArn; }
146 inline bool WebACLArnHasBeenSet() const { return m_webACLArnHasBeenSet; }
147 inline void SetWebACLArn(const Aws::String& value) { m_webACLArnHasBeenSet = true; m_webACLArn = value; }
148 inline void SetWebACLArn(Aws::String&& value) { m_webACLArnHasBeenSet = true; m_webACLArn = std::move(value); }
149 inline void SetWebACLArn(const char* value) { m_webACLArnHasBeenSet = true; m_webACLArn.assign(value); }
150 inline WebACL& WithWebACLArn(const Aws::String& value) { SetWebACLArn(value); return *this;}
151 inline WebACL& WithWebACLArn(Aws::String&& value) { SetWebACLArn(std::move(value)); return *this;}
152 inline WebACL& WithWebACLArn(const char* value) { SetWebACLArn(value); return *this;}
154 private:
155
156 Aws::String m_webACLId;
157 bool m_webACLIdHasBeenSet = false;
158
159 Aws::String m_name;
160 bool m_nameHasBeenSet = false;
161
162 Aws::String m_metricName;
163 bool m_metricNameHasBeenSet = false;
164
165 WafAction m_defaultAction;
166 bool m_defaultActionHasBeenSet = false;
167
169 bool m_rulesHasBeenSet = false;
170
171 Aws::String m_webACLArn;
172 bool m_webACLArnHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace WAFRegional
177} // namespace Aws
bool MetricNameHasBeenSet() const
Definition WebACL.h:102
WebACL & WithName(const char *value)
Definition WebACL.h:90
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
WebACL & WithName(const Aws::String &value)
Definition WebACL.h:88
WebACL & WithMetricName(const char *value)
Definition WebACL.h:108
void SetWebACLId(Aws::String &&value)
Definition WebACL.h:71
void SetWebACLArn(Aws::String &&value)
Definition WebACL.h:148
void SetMetricName(const char *value)
Definition WebACL.h:105
WebACL & WithWebACLId(Aws::String &&value)
Definition WebACL.h:74
const Aws::String & GetWebACLId() const
Definition WebACL.h:68
AWS_WAFREGIONAL_API WebACL()
void SetWebACLArn(const Aws::String &value)
Definition WebACL.h:147
WebACL & WithDefaultAction(WafAction &&value)
Definition WebACL.h:122
void SetMetricName(const Aws::String &value)
Definition WebACL.h:103
WebACL & WithWebACLArn(const char *value)
Definition WebACL.h:152
WebACL & WithMetricName(const Aws::String &value)
Definition WebACL.h:106
WebACL & WithName(Aws::String &&value)
Definition WebACL.h:89
void SetRules(const Aws::Vector< ActivatedRule > &value)
Definition WebACL.h:133
WebACL & WithMetricName(Aws::String &&value)
Definition WebACL.h:107
const Aws::String & GetMetricName() const
Definition WebACL.h:101
const WafAction & GetDefaultAction() const
Definition WebACL.h:117
WebACL & WithWebACLId(const char *value)
Definition WebACL.h:75
void SetWebACLArn(const char *value)
Definition WebACL.h:149
AWS_WAFREGIONAL_API WebACL & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetWebACLArn() const
Definition WebACL.h:145
void SetWebACLId(const char *value)
Definition WebACL.h:72
WebACL & AddRules(const ActivatedRule &value)
Definition WebACL.h:137
const Aws::Vector< ActivatedRule > & GetRules() const
Definition WebACL.h:131
WebACL & WithWebACLArn(const Aws::String &value)
Definition WebACL.h:150
void SetRules(Aws::Vector< ActivatedRule > &&value)
Definition WebACL.h:134
AWS_WAFREGIONAL_API WebACL(Aws::Utils::Json::JsonView jsonValue)
void SetWebACLId(const Aws::String &value)
Definition WebACL.h:70
WebACL & WithWebACLId(const Aws::String &value)
Definition WebACL.h:73
WebACL & WithDefaultAction(const WafAction &value)
Definition WebACL.h:121
void SetName(Aws::String &&value)
Definition WebACL.h:86
void SetDefaultAction(WafAction &&value)
Definition WebACL.h:120
bool DefaultActionHasBeenSet() const
Definition WebACL.h:118
WebACL & WithWebACLArn(Aws::String &&value)
Definition WebACL.h:151
void SetName(const char *value)
Definition WebACL.h:87
void SetName(const Aws::String &value)
Definition WebACL.h:85
WebACL & WithRules(const Aws::Vector< ActivatedRule > &value)
Definition WebACL.h:135
bool WebACLIdHasBeenSet() const
Definition WebACL.h:69
bool WebACLArnHasBeenSet() const
Definition WebACL.h:146
const Aws::String & GetName() const
Definition WebACL.h:83
void SetDefaultAction(const WafAction &value)
Definition WebACL.h:119
void SetMetricName(Aws::String &&value)
Definition WebACL.h:104
WebACL & WithRules(Aws::Vector< ActivatedRule > &&value)
Definition WebACL.h:136
WebACL & AddRules(ActivatedRule &&value)
Definition WebACL.h:138
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue