AWS SDK for C++  1.9.108
AWS SDK for C++
RuleGroup.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace WAF
22 {
23 namespace Model
24 {
25 
44  {
45  public:
50 
51 
62  inline const Aws::String& GetRuleGroupId() const{ return m_ruleGroupId; }
63 
74  inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
75 
86  inline void SetRuleGroupId(const Aws::String& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = value; }
87 
98  inline void SetRuleGroupId(Aws::String&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::move(value); }
99 
110  inline void SetRuleGroupId(const char* value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId.assign(value); }
111 
122  inline RuleGroup& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;}
123 
134  inline RuleGroup& WithRuleGroupId(Aws::String&& value) { SetRuleGroupId(std::move(value)); return *this;}
135 
146  inline RuleGroup& WithRuleGroupId(const char* value) { SetRuleGroupId(value); return *this;}
147 
148 
153  inline const Aws::String& GetName() const{ return m_name; }
154 
159  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
160 
165  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
166 
171  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
172 
177  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
178 
183  inline RuleGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
184 
189  inline RuleGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
190 
195  inline RuleGroup& WithName(const char* value) { SetName(value); return *this;}
196 
197 
206  inline const Aws::String& GetMetricName() const{ return m_metricName; }
207 
216  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
217 
226  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
227 
236  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
237 
246  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
247 
256  inline RuleGroup& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
257 
266  inline RuleGroup& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
267 
276  inline RuleGroup& WithMetricName(const char* value) { SetMetricName(value); return *this;}
277 
278  private:
279 
280  Aws::String m_ruleGroupId;
281  bool m_ruleGroupIdHasBeenSet;
282 
283  Aws::String m_name;
284  bool m_nameHasBeenSet;
285 
286  Aws::String m_metricName;
287  bool m_metricNameHasBeenSet;
288  };
289 
290 } // namespace Model
291 } // namespace WAF
292 } // namespace Aws
Aws::WAF::Model::RuleGroup::GetName
const Aws::String & GetName() const
Definition: RuleGroup.h:153
Aws::WAF::Model::RuleGroup::SetName
void SetName(const Aws::String &value)
Definition: RuleGroup.h:165
Aws::WAF::Model::RuleGroup::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: RuleGroup.h:216
Aws::WAF::Model::RuleGroup::RuleGroupIdHasBeenSet
bool RuleGroupIdHasBeenSet() const
Definition: RuleGroup.h:74
Aws::WAF::Model::RuleGroup::WithName
RuleGroup & WithName(Aws::String &&value)
Definition: RuleGroup.h:189
Aws::WAF::Model::RuleGroup::SetRuleGroupId
void SetRuleGroupId(Aws::String &&value)
Definition: RuleGroup.h:98
Aws::WAF::Model::RuleGroup::WithRuleGroupId
RuleGroup & WithRuleGroupId(Aws::String &&value)
Definition: RuleGroup.h:134
Aws::WAF::Model::RuleGroup::operator=
RuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::RuleGroup
Definition: RuleGroup.h:44
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::RuleGroup::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: RuleGroup.h:236
Aws::WAF::Model::RuleGroup::NameHasBeenSet
bool NameHasBeenSet() const
Definition: RuleGroup.h:159
Aws::WAF::Model::RuleGroup::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAF::Model::RuleGroup::SetMetricName
void SetMetricName(const char *value)
Definition: RuleGroup.h:246
Aws::WAF::Model::RuleGroup::SetName
void SetName(const char *value)
Definition: RuleGroup.h:177
Aws::WAF::Model::RuleGroup::RuleGroup
RuleGroup()
Aws::WAF::Model::RuleGroup::WithName
RuleGroup & WithName(const char *value)
Definition: RuleGroup.h:195
Aws::WAF::Model::RuleGroup::SetName
void SetName(Aws::String &&value)
Definition: RuleGroup.h:171
Aws::WAF::Model::RuleGroup::GetMetricName
const Aws::String & GetMetricName() const
Definition: RuleGroup.h:206
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAF::Model::RuleGroup::WithMetricName
RuleGroup & WithMetricName(const Aws::String &value)
Definition: RuleGroup.h:256
WAF_EXPORTS.h
Aws::WAF::Model::RuleGroup::SetRuleGroupId
void SetRuleGroupId(const Aws::String &value)
Definition: RuleGroup.h:86
Aws::WAF::Model::RuleGroup::WithRuleGroupId
RuleGroup & WithRuleGroupId(const Aws::String &value)
Definition: RuleGroup.h:122
Aws::WAF::Model::RuleGroup::WithRuleGroupId
RuleGroup & WithRuleGroupId(const char *value)
Definition: RuleGroup.h:146
Aws
Definition: AccessManagementClient.h:15
Aws::WAF::Model::RuleGroup::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: RuleGroup.h:226
Aws::WAF::Model::RuleGroup::WithName
RuleGroup & WithName(const Aws::String &value)
Definition: RuleGroup.h:183
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAF::Model::RuleGroup::WithMetricName
RuleGroup & WithMetricName(Aws::String &&value)
Definition: RuleGroup.h:266
Aws::WAF::Model::RuleGroup::RuleGroup
RuleGroup(Aws::Utils::Json::JsonView jsonValue)
Aws::WAF::Model::RuleGroup::SetRuleGroupId
void SetRuleGroupId(const char *value)
Definition: RuleGroup.h:110
Aws::WAF::Model::RuleGroup::WithMetricName
RuleGroup & WithMetricName(const char *value)
Definition: RuleGroup.h:276
Aws::WAF::Model::RuleGroup::GetRuleGroupId
const Aws::String & GetRuleGroupId() const
Definition: RuleGroup.h:62