AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleGroup.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAF
22{
23namespace Model
24{
25
44 {
45 public:
46 AWS_WAF_API RuleGroup();
47 AWS_WAF_API RuleGroup(Aws::Utils::Json::JsonView jsonValue);
50
51
53
63 inline const Aws::String& GetRuleGroupId() const{ return m_ruleGroupId; }
64 inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
65 inline void SetRuleGroupId(const Aws::String& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = value; }
66 inline void SetRuleGroupId(Aws::String&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::move(value); }
67 inline void SetRuleGroupId(const char* value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId.assign(value); }
68 inline RuleGroup& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;}
69 inline RuleGroup& WithRuleGroupId(Aws::String&& value) { SetRuleGroupId(std::move(value)); return *this;}
70 inline RuleGroup& WithRuleGroupId(const char* value) { SetRuleGroupId(value); return *this;}
72
74
78 inline const Aws::String& GetName() const{ return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
81 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
82 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
83 inline RuleGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
84 inline RuleGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 inline RuleGroup& WithName(const char* value) { SetName(value); return *this;}
87
89
97 inline const Aws::String& GetMetricName() const{ return m_metricName; }
98 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
99 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
100 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
101 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
102 inline RuleGroup& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
103 inline RuleGroup& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
104 inline RuleGroup& WithMetricName(const char* value) { SetMetricName(value); return *this;}
106 private:
107
108 Aws::String m_ruleGroupId;
109 bool m_ruleGroupIdHasBeenSet = false;
110
111 Aws::String m_name;
112 bool m_nameHasBeenSet = false;
113
114 Aws::String m_metricName;
115 bool m_metricNameHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace WAF
120} // namespace Aws
const Aws::String & GetRuleGroupId() const
Definition RuleGroup.h:63
void SetMetricName(const Aws::String &value)
Definition RuleGroup.h:99
void SetName(const char *value)
Definition RuleGroup.h:82
RuleGroup & WithName(Aws::String &&value)
Definition RuleGroup.h:84
AWS_WAF_API RuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RuleGroupIdHasBeenSet() const
Definition RuleGroup.h:64
RuleGroup & WithRuleGroupId(const char *value)
Definition RuleGroup.h:70
void SetRuleGroupId(const Aws::String &value)
Definition RuleGroup.h:65
RuleGroup & WithMetricName(const char *value)
Definition RuleGroup.h:104
RuleGroup & WithMetricName(const Aws::String &value)
Definition RuleGroup.h:102
RuleGroup & WithMetricName(Aws::String &&value)
Definition RuleGroup.h:103
bool MetricNameHasBeenSet() const
Definition RuleGroup.h:98
void SetMetricName(Aws::String &&value)
Definition RuleGroup.h:100
RuleGroup & WithRuleGroupId(Aws::String &&value)
Definition RuleGroup.h:69
RuleGroup & WithName(const char *value)
Definition RuleGroup.h:85
void SetName(const Aws::String &value)
Definition RuleGroup.h:80
void SetRuleGroupId(const char *value)
Definition RuleGroup.h:67
RuleGroup & WithRuleGroupId(const Aws::String &value)
Definition RuleGroup.h:68
void SetMetricName(const char *value)
Definition RuleGroup.h:101
const Aws::String & GetMetricName() const
Definition RuleGroup.h:97
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition RuleGroup.h:78
void SetRuleGroupId(Aws::String &&value)
Definition RuleGroup.h:66
RuleGroup & WithName(const Aws::String &value)
Definition RuleGroup.h:83
AWS_WAF_API RuleGroup(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
Definition RuleGroup.h:81
bool NameHasBeenSet() const
Definition RuleGroup.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue