AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
RuleGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/waf/WAF_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace WAF {
20namespace Model {
21
39class RuleGroup {
40 public:
41 AWS_WAF_API RuleGroup() = default;
42 AWS_WAF_API RuleGroup(Aws::Utils::Json::JsonView jsonValue);
45
47
57 inline const Aws::String& GetRuleGroupId() const { return m_ruleGroupId; }
58 inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
59 template <typename RuleGroupIdT = Aws::String>
60 void SetRuleGroupId(RuleGroupIdT&& value) {
61 m_ruleGroupIdHasBeenSet = true;
62 m_ruleGroupId = std::forward<RuleGroupIdT>(value);
63 }
64 template <typename RuleGroupIdT = Aws::String>
65 RuleGroup& WithRuleGroupId(RuleGroupIdT&& value) {
66 SetRuleGroupId(std::forward<RuleGroupIdT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
84 RuleGroup& WithName(NameT&& value) {
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
99 inline const Aws::String& GetMetricName() const { return m_metricName; }
100 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
101 template <typename MetricNameT = Aws::String>
102 void SetMetricName(MetricNameT&& value) {
103 m_metricNameHasBeenSet = true;
104 m_metricName = std::forward<MetricNameT>(value);
105 }
106 template <typename MetricNameT = Aws::String>
107 RuleGroup& WithMetricName(MetricNameT&& value) {
108 SetMetricName(std::forward<MetricNameT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_ruleGroupId;
114
115 Aws::String m_name;
116
117 Aws::String m_metricName;
118 bool m_ruleGroupIdHasBeenSet = false;
119 bool m_nameHasBeenSet = false;
120 bool m_metricNameHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace WAF
125} // namespace Aws
const Aws::String & GetRuleGroupId() const
Definition RuleGroup.h:57
RuleGroup & WithName(NameT &&value)
Definition RuleGroup.h:84
RuleGroup & WithMetricName(MetricNameT &&value)
Definition RuleGroup.h:107
AWS_WAF_API RuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RuleGroupIdHasBeenSet() const
Definition RuleGroup.h:58
AWS_WAF_API RuleGroup()=default
void SetRuleGroupId(RuleGroupIdT &&value)
Definition RuleGroup.h:60
void SetMetricName(MetricNameT &&value)
Definition RuleGroup.h:102
bool MetricNameHasBeenSet() const
Definition RuleGroup.h:100
RuleGroup & WithRuleGroupId(RuleGroupIdT &&value)
Definition RuleGroup.h:65
const Aws::String & GetMetricName() const
Definition RuleGroup.h:99
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition RuleGroup.h:76
AWS_WAF_API RuleGroup(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition RuleGroup.h:79
bool NameHasBeenSet() const
Definition RuleGroup.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue