AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SubscribedRuleGroupSummary.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
40 {
41 public:
42 AWS_WAFREGIONAL_API SubscribedRuleGroupSummary() = default;
45 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetRuleGroupId() const { return m_ruleGroupId; }
53 inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
54 template<typename RuleGroupIdT = Aws::String>
55 void SetRuleGroupId(RuleGroupIdT&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::forward<RuleGroupIdT>(value); }
56 template<typename RuleGroupIdT = Aws::String>
57 SubscribedRuleGroupSummary& WithRuleGroupId(RuleGroupIdT&& value) { SetRuleGroupId(std::forward<RuleGroupIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
69 template<typename NameT = Aws::String>
70 SubscribedRuleGroupSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
72
74
82 inline const Aws::String& GetMetricName() const { return m_metricName; }
83 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
84 template<typename MetricNameT = Aws::String>
85 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
86 template<typename MetricNameT = Aws::String>
87 SubscribedRuleGroupSummary& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
89 private:
90
91 Aws::String m_ruleGroupId;
92 bool m_ruleGroupIdHasBeenSet = false;
93
94 Aws::String m_name;
95 bool m_nameHasBeenSet = false;
96
97 Aws::String m_metricName;
98 bool m_metricNameHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace WAFRegional
103} // namespace Aws
AWS_WAFREGIONAL_API SubscribedRuleGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFREGIONAL_API SubscribedRuleGroupSummary(Aws::Utils::Json::JsonView jsonValue)
SubscribedRuleGroupSummary & WithRuleGroupId(RuleGroupIdT &&value)
SubscribedRuleGroupSummary & WithMetricName(MetricNameT &&value)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFREGIONAL_API SubscribedRuleGroupSummary()=default
SubscribedRuleGroupSummary & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue