AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRuleGroupId(const Aws::String& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = value; }
55 inline void SetRuleGroupId(Aws::String&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::move(value); }
56 inline void SetRuleGroupId(const char* value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId.assign(value); }
57 inline SubscribedRuleGroupSummary& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;}
58 inline SubscribedRuleGroupSummary& WithRuleGroupId(Aws::String&& value) { SetRuleGroupId(std::move(value)); return *this;}
59 inline SubscribedRuleGroupSummary& WithRuleGroupId(const char* value) { SetRuleGroupId(value); return *this;}
61
63
67 inline const Aws::String& GetName() const{ return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
70 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
71 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
72 inline SubscribedRuleGroupSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
73 inline SubscribedRuleGroupSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74 inline SubscribedRuleGroupSummary& WithName(const char* value) { SetName(value); return *this;}
76
78
86 inline const Aws::String& GetMetricName() const{ return m_metricName; }
87 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
88 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
89 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
90 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
91 inline SubscribedRuleGroupSummary& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
92 inline SubscribedRuleGroupSummary& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
93 inline SubscribedRuleGroupSummary& WithMetricName(const char* value) { SetMetricName(value); return *this;}
95 private:
96
97 Aws::String m_ruleGroupId;
98 bool m_ruleGroupIdHasBeenSet = false;
99
100 Aws::String m_name;
101 bool m_nameHasBeenSet = false;
102
103 Aws::String m_metricName;
104 bool m_metricNameHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace WAFRegional
109} // namespace Aws
SubscribedRuleGroupSummary & WithRuleGroupId(const Aws::String &value)
AWS_WAFREGIONAL_API SubscribedRuleGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SubscribedRuleGroupSummary & WithMetricName(const Aws::String &value)
AWS_WAFREGIONAL_API SubscribedRuleGroupSummary(Aws::Utils::Json::JsonView jsonValue)
SubscribedRuleGroupSummary & WithMetricName(Aws::String &&value)
SubscribedRuleGroupSummary & WithName(const Aws::String &value)
SubscribedRuleGroupSummary & WithRuleGroupId(Aws::String &&value)
SubscribedRuleGroupSummary & WithName(Aws::String &&value)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
SubscribedRuleGroupSummary & WithMetricName(const char *value)
SubscribedRuleGroupSummary & WithName(const char *value)
SubscribedRuleGroupSummary & WithRuleGroupId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue