AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeManagedRuleGroupResult.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wafv2/model/RuleSummary.h>
11#include <aws/wafv2/model/LabelSummary.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace WAFV2
27{
28namespace Model
29{
31 {
32 public:
36
37
39
42 inline const Aws::String& GetVersionName() const{ return m_versionName; }
43 inline void SetVersionName(const Aws::String& value) { m_versionName = value; }
44 inline void SetVersionName(Aws::String&& value) { m_versionName = std::move(value); }
45 inline void SetVersionName(const char* value) { m_versionName.assign(value); }
46 inline DescribeManagedRuleGroupResult& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
47 inline DescribeManagedRuleGroupResult& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
48 inline DescribeManagedRuleGroupResult& WithVersionName(const char* value) { SetVersionName(value); return *this;}
50
52
61 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
62 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArn = value; }
63 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArn = std::move(value); }
64 inline void SetSnsTopicArn(const char* value) { m_snsTopicArn.assign(value); }
65 inline DescribeManagedRuleGroupResult& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
66 inline DescribeManagedRuleGroupResult& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
67 inline DescribeManagedRuleGroupResult& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
69
71
83 inline long long GetCapacity() const{ return m_capacity; }
84 inline void SetCapacity(long long value) { m_capacity = value; }
85 inline DescribeManagedRuleGroupResult& WithCapacity(long long value) { SetCapacity(value); return *this;}
87
89
92 inline const Aws::Vector<RuleSummary>& GetRules() const{ return m_rules; }
93 inline void SetRules(const Aws::Vector<RuleSummary>& value) { m_rules = value; }
94 inline void SetRules(Aws::Vector<RuleSummary>&& value) { m_rules = std::move(value); }
95 inline DescribeManagedRuleGroupResult& WithRules(const Aws::Vector<RuleSummary>& value) { SetRules(value); return *this;}
96 inline DescribeManagedRuleGroupResult& WithRules(Aws::Vector<RuleSummary>&& value) { SetRules(std::move(value)); return *this;}
97 inline DescribeManagedRuleGroupResult& AddRules(const RuleSummary& value) { m_rules.push_back(value); return *this; }
98 inline DescribeManagedRuleGroupResult& AddRules(RuleSummary&& value) { m_rules.push_back(std::move(value)); return *this; }
100
102
113 inline const Aws::String& GetLabelNamespace() const{ return m_labelNamespace; }
114 inline void SetLabelNamespace(const Aws::String& value) { m_labelNamespace = value; }
115 inline void SetLabelNamespace(Aws::String&& value) { m_labelNamespace = std::move(value); }
116 inline void SetLabelNamespace(const char* value) { m_labelNamespace.assign(value); }
118 inline DescribeManagedRuleGroupResult& WithLabelNamespace(Aws::String&& value) { SetLabelNamespace(std::move(value)); return *this;}
119 inline DescribeManagedRuleGroupResult& WithLabelNamespace(const char* value) { SetLabelNamespace(value); return *this;}
121
123
128 inline const Aws::Vector<LabelSummary>& GetAvailableLabels() const{ return m_availableLabels; }
129 inline void SetAvailableLabels(const Aws::Vector<LabelSummary>& value) { m_availableLabels = value; }
130 inline void SetAvailableLabels(Aws::Vector<LabelSummary>&& value) { m_availableLabels = std::move(value); }
133 inline DescribeManagedRuleGroupResult& AddAvailableLabels(const LabelSummary& value) { m_availableLabels.push_back(value); return *this; }
134 inline DescribeManagedRuleGroupResult& AddAvailableLabels(LabelSummary&& value) { m_availableLabels.push_back(std::move(value)); return *this; }
136
138
143 inline const Aws::Vector<LabelSummary>& GetConsumedLabels() const{ return m_consumedLabels; }
144 inline void SetConsumedLabels(const Aws::Vector<LabelSummary>& value) { m_consumedLabels = value; }
145 inline void SetConsumedLabels(Aws::Vector<LabelSummary>&& value) { m_consumedLabels = std::move(value); }
148 inline DescribeManagedRuleGroupResult& AddConsumedLabels(const LabelSummary& value) { m_consumedLabels.push_back(value); return *this; }
149 inline DescribeManagedRuleGroupResult& AddConsumedLabels(LabelSummary&& value) { m_consumedLabels.push_back(std::move(value)); return *this; }
151
153
154 inline const Aws::String& GetRequestId() const{ return m_requestId; }
155 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
156 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
157 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
158 inline DescribeManagedRuleGroupResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
159 inline DescribeManagedRuleGroupResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
160 inline DescribeManagedRuleGroupResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
162 private:
163
164 Aws::String m_versionName;
165
166 Aws::String m_snsTopicArn;
167
168 long long m_capacity;
169
171
172 Aws::String m_labelNamespace;
173
174 Aws::Vector<LabelSummary> m_availableLabels;
175
176 Aws::Vector<LabelSummary> m_consumedLabels;
177
178 Aws::String m_requestId;
179 };
180
181} // namespace Model
182} // namespace WAFV2
183} // namespace Aws
DescribeManagedRuleGroupResult & WithLabelNamespace(const char *value)
void SetConsumedLabels(Aws::Vector< LabelSummary > &&value)
DescribeManagedRuleGroupResult & WithAvailableLabels(Aws::Vector< LabelSummary > &&value)
DescribeManagedRuleGroupResult & WithVersionName(Aws::String &&value)
DescribeManagedRuleGroupResult & WithSnsTopicArn(const char *value)
DescribeManagedRuleGroupResult & AddRules(RuleSummary &&value)
void SetAvailableLabels(const Aws::Vector< LabelSummary > &value)
AWS_WAFV2_API DescribeManagedRuleGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeManagedRuleGroupResult & WithLabelNamespace(Aws::String &&value)
void SetRules(const Aws::Vector< RuleSummary > &value)
DescribeManagedRuleGroupResult & WithConsumedLabels(Aws::Vector< LabelSummary > &&value)
const Aws::Vector< LabelSummary > & GetConsumedLabels() const
AWS_WAFV2_API DescribeManagedRuleGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeManagedRuleGroupResult & WithConsumedLabels(const Aws::Vector< LabelSummary > &value)
DescribeManagedRuleGroupResult & WithVersionName(const char *value)
DescribeManagedRuleGroupResult & AddConsumedLabels(const LabelSummary &value)
DescribeManagedRuleGroupResult & WithRequestId(const Aws::String &value)
DescribeManagedRuleGroupResult & WithCapacity(long long value)
DescribeManagedRuleGroupResult & WithRules(const Aws::Vector< RuleSummary > &value)
DescribeManagedRuleGroupResult & WithRequestId(const char *value)
void SetAvailableLabels(Aws::Vector< LabelSummary > &&value)
DescribeManagedRuleGroupResult & AddAvailableLabels(const LabelSummary &value)
DescribeManagedRuleGroupResult & WithSnsTopicArn(Aws::String &&value)
DescribeManagedRuleGroupResult & WithRules(Aws::Vector< RuleSummary > &&value)
void SetConsumedLabels(const Aws::Vector< LabelSummary > &value)
const Aws::Vector< LabelSummary > & GetAvailableLabels() const
DescribeManagedRuleGroupResult & WithSnsTopicArn(const Aws::String &value)
DescribeManagedRuleGroupResult & AddConsumedLabels(LabelSummary &&value)
DescribeManagedRuleGroupResult & WithLabelNamespace(const Aws::String &value)
DescribeManagedRuleGroupResult & WithVersionName(const Aws::String &value)
DescribeManagedRuleGroupResult & WithRequestId(Aws::String &&value)
DescribeManagedRuleGroupResult & WithAvailableLabels(const Aws::Vector< LabelSummary > &value)
DescribeManagedRuleGroupResult & AddAvailableLabels(LabelSummary &&value)
DescribeManagedRuleGroupResult & AddRules(const RuleSummary &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue