AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RuleGroup.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_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 WAFRegional
22{
23namespace Model
24{
25
44 {
45 public:
46 AWS_WAFREGIONAL_API RuleGroup() = default;
47 AWS_WAFREGIONAL_API RuleGroup(Aws::Utils::Json::JsonView jsonValue);
48 AWS_WAFREGIONAL_API RuleGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
63 inline const Aws::String& GetRuleGroupId() const { return m_ruleGroupId; }
64 inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
65 template<typename RuleGroupIdT = Aws::String>
66 void SetRuleGroupId(RuleGroupIdT&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::forward<RuleGroupIdT>(value); }
67 template<typename RuleGroupIdT = Aws::String>
68 RuleGroup& WithRuleGroupId(RuleGroupIdT&& value) { SetRuleGroupId(std::forward<RuleGroupIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
80 template<typename NameT = Aws::String>
81 RuleGroup& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
83
85
93 inline const Aws::String& GetMetricName() const { return m_metricName; }
94 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
95 template<typename MetricNameT = Aws::String>
96 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
97 template<typename MetricNameT = Aws::String>
98 RuleGroup& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
100 private:
101
102 Aws::String m_ruleGroupId;
103 bool m_ruleGroupIdHasBeenSet = false;
104
105 Aws::String m_name;
106 bool m_nameHasBeenSet = false;
107
108 Aws::String m_metricName;
109 bool m_metricNameHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace WAFRegional
114} // namespace Aws
RuleGroup & WithName(NameT &&value)
Definition RuleGroup.h:81
RuleGroup & WithRuleGroupId(RuleGroupIdT &&value)
Definition RuleGroup.h:68
void SetRuleGroupId(RuleGroupIdT &&value)
Definition RuleGroup.h:66
void SetMetricName(MetricNameT &&value)
Definition RuleGroup.h:96
AWS_WAFREGIONAL_API RuleGroup()=default
RuleGroup & WithMetricName(MetricNameT &&value)
Definition RuleGroup.h:98
const Aws::String & GetRuleGroupId() const
Definition RuleGroup.h:63
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition RuleGroup.h:76
AWS_WAFREGIONAL_API RuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMetricName() const
Definition RuleGroup.h:93
AWS_WAFREGIONAL_API RuleGroup(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition RuleGroup.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue