AWS SDK for C++  1.9.106
AWS SDK for C++
DescribeManagedRuleGroupResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace WAFV2
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::String& GetVersionName() const{ return m_versionName; }
42 
46  inline void SetVersionName(const Aws::String& value) { m_versionName = value; }
47 
51  inline void SetVersionName(Aws::String&& value) { m_versionName = std::move(value); }
52 
56  inline void SetVersionName(const char* value) { m_versionName.assign(value); }
57 
61  inline DescribeManagedRuleGroupResult& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
62 
66  inline DescribeManagedRuleGroupResult& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
67 
71  inline DescribeManagedRuleGroupResult& WithVersionName(const char* value) { SetVersionName(value); return *this;}
72 
73 
83  inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
84 
94  inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArn = value; }
95 
105  inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArn = std::move(value); }
106 
116  inline void SetSnsTopicArn(const char* value) { m_snsTopicArn.assign(value); }
117 
127  inline DescribeManagedRuleGroupResult& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
128 
138  inline DescribeManagedRuleGroupResult& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
139 
149  inline DescribeManagedRuleGroupResult& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
150 
151 
160  inline long long GetCapacity() const{ return m_capacity; }
161 
170  inline void SetCapacity(long long value) { m_capacity = value; }
171 
180  inline DescribeManagedRuleGroupResult& WithCapacity(long long value) { SetCapacity(value); return *this;}
181 
182 
186  inline const Aws::Vector<RuleSummary>& GetRules() const{ return m_rules; }
187 
191  inline void SetRules(const Aws::Vector<RuleSummary>& value) { m_rules = value; }
192 
196  inline void SetRules(Aws::Vector<RuleSummary>&& value) { m_rules = std::move(value); }
197 
201  inline DescribeManagedRuleGroupResult& WithRules(const Aws::Vector<RuleSummary>& value) { SetRules(value); return *this;}
202 
206  inline DescribeManagedRuleGroupResult& WithRules(Aws::Vector<RuleSummary>&& value) { SetRules(std::move(value)); return *this;}
207 
211  inline DescribeManagedRuleGroupResult& AddRules(const RuleSummary& value) { m_rules.push_back(value); return *this; }
212 
216  inline DescribeManagedRuleGroupResult& AddRules(RuleSummary&& value) { m_rules.push_back(std::move(value)); return *this; }
217 
218 
230  inline const Aws::String& GetLabelNamespace() const{ return m_labelNamespace; }
231 
243  inline void SetLabelNamespace(const Aws::String& value) { m_labelNamespace = value; }
244 
256  inline void SetLabelNamespace(Aws::String&& value) { m_labelNamespace = std::move(value); }
257 
269  inline void SetLabelNamespace(const char* value) { m_labelNamespace.assign(value); }
270 
282  inline DescribeManagedRuleGroupResult& WithLabelNamespace(const Aws::String& value) { SetLabelNamespace(value); return *this;}
283 
295  inline DescribeManagedRuleGroupResult& WithLabelNamespace(Aws::String&& value) { SetLabelNamespace(std::move(value)); return *this;}
296 
308  inline DescribeManagedRuleGroupResult& WithLabelNamespace(const char* value) { SetLabelNamespace(value); return *this;}
309 
310 
316  inline const Aws::Vector<LabelSummary>& GetAvailableLabels() const{ return m_availableLabels; }
317 
323  inline void SetAvailableLabels(const Aws::Vector<LabelSummary>& value) { m_availableLabels = value; }
324 
330  inline void SetAvailableLabels(Aws::Vector<LabelSummary>&& value) { m_availableLabels = std::move(value); }
331 
337  inline DescribeManagedRuleGroupResult& WithAvailableLabels(const Aws::Vector<LabelSummary>& value) { SetAvailableLabels(value); return *this;}
338 
344  inline DescribeManagedRuleGroupResult& WithAvailableLabels(Aws::Vector<LabelSummary>&& value) { SetAvailableLabels(std::move(value)); return *this;}
345 
351  inline DescribeManagedRuleGroupResult& AddAvailableLabels(const LabelSummary& value) { m_availableLabels.push_back(value); return *this; }
352 
358  inline DescribeManagedRuleGroupResult& AddAvailableLabels(LabelSummary&& value) { m_availableLabels.push_back(std::move(value)); return *this; }
359 
360 
366  inline const Aws::Vector<LabelSummary>& GetConsumedLabels() const{ return m_consumedLabels; }
367 
373  inline void SetConsumedLabels(const Aws::Vector<LabelSummary>& value) { m_consumedLabels = value; }
374 
380  inline void SetConsumedLabels(Aws::Vector<LabelSummary>&& value) { m_consumedLabels = std::move(value); }
381 
387  inline DescribeManagedRuleGroupResult& WithConsumedLabels(const Aws::Vector<LabelSummary>& value) { SetConsumedLabels(value); return *this;}
388 
394  inline DescribeManagedRuleGroupResult& WithConsumedLabels(Aws::Vector<LabelSummary>&& value) { SetConsumedLabels(std::move(value)); return *this;}
395 
401  inline DescribeManagedRuleGroupResult& AddConsumedLabels(const LabelSummary& value) { m_consumedLabels.push_back(value); return *this; }
402 
408  inline DescribeManagedRuleGroupResult& AddConsumedLabels(LabelSummary&& value) { m_consumedLabels.push_back(std::move(value)); return *this; }
409 
410  private:
411 
412  Aws::String m_versionName;
413 
414  Aws::String m_snsTopicArn;
415 
416  long long m_capacity;
417 
418  Aws::Vector<RuleSummary> m_rules;
419 
420  Aws::String m_labelNamespace;
421 
422  Aws::Vector<LabelSummary> m_availableLabels;
423 
424  Aws::Vector<LabelSummary> m_consumedLabels;
425  };
426 
427 } // namespace Model
428 } // namespace WAFV2
429 } // namespace Aws
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetRules
void SetRules(const Aws::Vector< RuleSummary > &value)
Definition: DescribeManagedRuleGroupResult.h:191
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithConsumedLabels
DescribeManagedRuleGroupResult & WithConsumedLabels(const Aws::Vector< LabelSummary > &value)
Definition: DescribeManagedRuleGroupResult.h:387
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetConsumedLabels
void SetConsumedLabels(Aws::Vector< LabelSummary > &&value)
Definition: DescribeManagedRuleGroupResult.h:380
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetLabelNamespace
void SetLabelNamespace(const char *value)
Definition: DescribeManagedRuleGroupResult.h:269
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetCapacity
void SetCapacity(long long value)
Definition: DescribeManagedRuleGroupResult.h:170
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::AddRules
DescribeManagedRuleGroupResult & AddRules(const RuleSummary &value)
Definition: DescribeManagedRuleGroupResult.h:211
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithSnsTopicArn
DescribeManagedRuleGroupResult & WithSnsTopicArn(Aws::String &&value)
Definition: DescribeManagedRuleGroupResult.h:138
LabelSummary.h
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithRules
DescribeManagedRuleGroupResult & WithRules(Aws::Vector< RuleSummary > &&value)
Definition: DescribeManagedRuleGroupResult.h:206
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithLabelNamespace
DescribeManagedRuleGroupResult & WithLabelNamespace(const Aws::String &value)
Definition: DescribeManagedRuleGroupResult.h:282
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetAvailableLabels
void SetAvailableLabels(const Aws::Vector< LabelSummary > &value)
Definition: DescribeManagedRuleGroupResult.h:323
AWSVector.h
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::GetLabelNamespace
const Aws::String & GetLabelNamespace() const
Definition: DescribeManagedRuleGroupResult.h:230
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithLabelNamespace
DescribeManagedRuleGroupResult & WithLabelNamespace(Aws::String &&value)
Definition: DescribeManagedRuleGroupResult.h:295
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetVersionName
void SetVersionName(Aws::String &&value)
Definition: DescribeManagedRuleGroupResult.h:51
WAFV2_EXPORTS.h
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithLabelNamespace
DescribeManagedRuleGroupResult & WithLabelNamespace(const char *value)
Definition: DescribeManagedRuleGroupResult.h:308
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithAvailableLabels
DescribeManagedRuleGroupResult & WithAvailableLabels(Aws::Vector< LabelSummary > &&value)
Definition: DescribeManagedRuleGroupResult.h:344
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::AddAvailableLabels
DescribeManagedRuleGroupResult & AddAvailableLabels(LabelSummary &&value)
Definition: DescribeManagedRuleGroupResult.h:358
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::GetVersionName
const Aws::String & GetVersionName() const
Definition: DescribeManagedRuleGroupResult.h:41
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::operator=
DescribeManagedRuleGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::AddConsumedLabels
DescribeManagedRuleGroupResult & AddConsumedLabels(const LabelSummary &value)
Definition: DescribeManagedRuleGroupResult.h:401
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithSnsTopicArn
DescribeManagedRuleGroupResult & WithSnsTopicArn(const Aws::String &value)
Definition: DescribeManagedRuleGroupResult.h:127
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::AddConsumedLabels
DescribeManagedRuleGroupResult & AddConsumedLabels(LabelSummary &&value)
Definition: DescribeManagedRuleGroupResult.h:408
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetSnsTopicArn
void SetSnsTopicArn(Aws::String &&value)
Definition: DescribeManagedRuleGroupResult.h:105
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::DescribeManagedRuleGroupResult
DescribeManagedRuleGroupResult()
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithCapacity
DescribeManagedRuleGroupResult & WithCapacity(long long value)
Definition: DescribeManagedRuleGroupResult.h:180
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithVersionName
DescribeManagedRuleGroupResult & WithVersionName(const char *value)
Definition: DescribeManagedRuleGroupResult.h:71
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::AddAvailableLabels
DescribeManagedRuleGroupResult & AddAvailableLabels(const LabelSummary &value)
Definition: DescribeManagedRuleGroupResult.h:351
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithSnsTopicArn
DescribeManagedRuleGroupResult & WithSnsTopicArn(const char *value)
Definition: DescribeManagedRuleGroupResult.h:149
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetSnsTopicArn
void SetSnsTopicArn(const char *value)
Definition: DescribeManagedRuleGroupResult.h:116
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetLabelNamespace
void SetLabelNamespace(Aws::String &&value)
Definition: DescribeManagedRuleGroupResult.h:256
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::GetCapacity
long long GetCapacity() const
Definition: DescribeManagedRuleGroupResult.h:160
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetLabelNamespace
void SetLabelNamespace(const Aws::String &value)
Definition: DescribeManagedRuleGroupResult.h:243
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetConsumedLabels
void SetConsumedLabels(const Aws::Vector< LabelSummary > &value)
Definition: DescribeManagedRuleGroupResult.h:373
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetSnsTopicArn
void SetSnsTopicArn(const Aws::String &value)
Definition: DescribeManagedRuleGroupResult.h:94
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::GetConsumedLabels
const Aws::Vector< LabelSummary > & GetConsumedLabels() const
Definition: DescribeManagedRuleGroupResult.h:366
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::AddRules
DescribeManagedRuleGroupResult & AddRules(RuleSummary &&value)
Definition: DescribeManagedRuleGroupResult.h:216
AWSString.h
Aws::WAFV2::Model::RuleSummary
Definition: RuleSummary.h:37
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithVersionName
DescribeManagedRuleGroupResult & WithVersionName(const Aws::String &value)
Definition: DescribeManagedRuleGroupResult.h:61
RuleSummary.h
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithVersionName
DescribeManagedRuleGroupResult & WithVersionName(Aws::String &&value)
Definition: DescribeManagedRuleGroupResult.h:66
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetVersionName
void SetVersionName(const char *value)
Definition: DescribeManagedRuleGroupResult.h:56
Aws::WAFV2::Model::LabelSummary
Definition: LabelSummary.h:39
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetVersionName
void SetVersionName(const Aws::String &value)
Definition: DescribeManagedRuleGroupResult.h:46
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithAvailableLabels
DescribeManagedRuleGroupResult & WithAvailableLabels(const Aws::Vector< LabelSummary > &value)
Definition: DescribeManagedRuleGroupResult.h:337
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::GetSnsTopicArn
const Aws::String & GetSnsTopicArn() const
Definition: DescribeManagedRuleGroupResult.h:83
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetRules
void SetRules(Aws::Vector< RuleSummary > &&value)
Definition: DescribeManagedRuleGroupResult.h:196
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::GetRules
const Aws::Vector< RuleSummary > & GetRules() const
Definition: DescribeManagedRuleGroupResult.h:186
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithRules
DescribeManagedRuleGroupResult & WithRules(const Aws::Vector< RuleSummary > &value)
Definition: DescribeManagedRuleGroupResult.h:201
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::SetAvailableLabels
void SetAvailableLabels(Aws::Vector< LabelSummary > &&value)
Definition: DescribeManagedRuleGroupResult.h:330
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::DescribeManagedRuleGroupResult
DescribeManagedRuleGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WAFV2::Model::DescribeManagedRuleGroupResult
Definition: DescribeManagedRuleGroupResult.h:31
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::WithConsumedLabels
DescribeManagedRuleGroupResult & WithConsumedLabels(Aws::Vector< LabelSummary > &&value)
Definition: DescribeManagedRuleGroupResult.h:394
Aws::WAFV2::Model::DescribeManagedRuleGroupResult::GetAvailableLabels
const Aws::Vector< LabelSummary > & GetAvailableLabels() const
Definition: DescribeManagedRuleGroupResult.h:316