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/WAF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/waf/model/WafAction.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/waf/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 WAF
25{
26namespace Model
27{
28
51 class WebACL
52 {
53 public:
54 AWS_WAF_API WebACL();
55 AWS_WAF_API WebACL(Aws::Utils::Json::JsonView jsonValue);
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 WAF
177} // namespace Aws
void SetWebACLArn(Aws::String &&value)
Definition WebACL.h:148
const Aws::String & GetName() const
Definition WebACL.h:83
bool NameHasBeenSet() const
Definition WebACL.h:84
WebACL & WithWebACLArn(const Aws::String &value)
Definition WebACL.h:150
AWS_WAF_API WebACL & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
Definition WebACL.h:86
WebACL & WithName(const char *value)
Definition WebACL.h:90
WebACL & WithDefaultAction(WafAction &&value)
Definition WebACL.h:122
void SetWebACLId(Aws::String &&value)
Definition WebACL.h:71
WebACL & WithName(const Aws::String &value)
Definition WebACL.h:88
WebACL & WithWebACLArn(Aws::String &&value)
Definition WebACL.h:151
bool WebACLIdHasBeenSet() const
Definition WebACL.h:69
WebACL & WithWebACLId(Aws::String &&value)
Definition WebACL.h:74
void SetName(const char *value)
Definition WebACL.h:87
const WafAction & GetDefaultAction() const
Definition WebACL.h:117
void SetWebACLId(const char *value)
Definition WebACL.h:72
const Aws::String & GetWebACLArn() const
Definition WebACL.h:145
WebACL & WithRules(Aws::Vector< ActivatedRule > &&value)
Definition WebACL.h:136
WebACL & WithMetricName(const char *value)
Definition WebACL.h:108
WebACL & WithMetricName(Aws::String &&value)
Definition WebACL.h:107
WebACL & WithWebACLId(const char *value)
Definition WebACL.h:75
bool RulesHasBeenSet() const
Definition WebACL.h:132
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
WebACL & WithDefaultAction(const WafAction &value)
Definition WebACL.h:121
void SetWebACLArn(const char *value)
Definition WebACL.h:149
void SetDefaultAction(WafAction &&value)
Definition WebACL.h:120
void SetRules(const Aws::Vector< ActivatedRule > &value)
Definition WebACL.h:133
void SetRules(Aws::Vector< ActivatedRule > &&value)
Definition WebACL.h:134
bool WebACLArnHasBeenSet() const
Definition WebACL.h:146
void SetName(const Aws::String &value)
Definition WebACL.h:85
bool DefaultActionHasBeenSet() const
Definition WebACL.h:118
const Aws::String & GetMetricName() const
Definition WebACL.h:101
void SetMetricName(const Aws::String &value)
Definition WebACL.h:103
bool MetricNameHasBeenSet() const
Definition WebACL.h:102
WebACL & WithMetricName(const Aws::String &value)
Definition WebACL.h:106
void SetWebACLId(const Aws::String &value)
Definition WebACL.h:70
WebACL & WithName(Aws::String &&value)
Definition WebACL.h:89
WebACL & WithWebACLId(const Aws::String &value)
Definition WebACL.h:73
WebACL & WithWebACLArn(const char *value)
Definition WebACL.h:152
const Aws::String & GetWebACLId() const
Definition WebACL.h:68
WebACL & AddRules(ActivatedRule &&value)
Definition WebACL.h:138
void SetWebACLArn(const Aws::String &value)
Definition WebACL.h:147
const Aws::Vector< ActivatedRule > & GetRules() const
Definition WebACL.h:131
void SetDefaultAction(const WafAction &value)
Definition WebACL.h:119
void SetMetricName(Aws::String &&value)
Definition WebACL.h:104
void SetMetricName(const char *value)
Definition WebACL.h:105
WebACL & WithRules(const Aws::Vector< ActivatedRule > &value)
Definition WebACL.h:135
AWS_WAF_API WebACL(Aws::Utils::Json::JsonView jsonValue)
WebACL & AddRules(const ActivatedRule &value)
Definition WebACL.h:137
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue