AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
SubscribedRuleGroupSummary.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
36 public:
37 AWS_WAF_API SubscribedRuleGroupSummary() = default;
41
43
46 inline const Aws::String& GetRuleGroupId() const { return m_ruleGroupId; }
47 inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
48 template <typename RuleGroupIdT = Aws::String>
49 void SetRuleGroupId(RuleGroupIdT&& value) {
50 m_ruleGroupIdHasBeenSet = true;
51 m_ruleGroupId = std::forward<RuleGroupIdT>(value);
52 }
53 template <typename RuleGroupIdT = Aws::String>
55 SetRuleGroupId(std::forward<RuleGroupIdT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template <typename NameT = Aws::String>
68 void SetName(NameT&& value) {
69 m_nameHasBeenSet = true;
70 m_name = std::forward<NameT>(value);
71 }
72 template <typename NameT = Aws::String>
74 SetName(std::forward<NameT>(value));
75 return *this;
76 }
78
80
88 inline const Aws::String& GetMetricName() const { return m_metricName; }
89 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
90 template <typename MetricNameT = Aws::String>
91 void SetMetricName(MetricNameT&& value) {
92 m_metricNameHasBeenSet = true;
93 m_metricName = std::forward<MetricNameT>(value);
94 }
95 template <typename MetricNameT = Aws::String>
97 SetMetricName(std::forward<MetricNameT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_ruleGroupId;
103
104 Aws::String m_name;
105
106 Aws::String m_metricName;
107 bool m_ruleGroupIdHasBeenSet = false;
108 bool m_nameHasBeenSet = false;
109 bool m_metricNameHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace WAF
114} // namespace Aws
SubscribedRuleGroupSummary & WithMetricName(MetricNameT &&value)
AWS_WAF_API SubscribedRuleGroupSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API SubscribedRuleGroupSummary()=default
AWS_WAF_API SubscribedRuleGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SubscribedRuleGroupSummary & WithRuleGroupId(RuleGroupIdT &&value)
SubscribedRuleGroupSummary & WithName(NameT &&value)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue