AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
33 AWS_WAFV2_API DescribeManagedRuleGroupResult() = default;
36
37
39
42 inline const Aws::String& GetVersionName() const { return m_versionName; }
43 template<typename VersionNameT = Aws::String>
44 void SetVersionName(VersionNameT&& value) { m_versionNameHasBeenSet = true; m_versionName = std::forward<VersionNameT>(value); }
45 template<typename VersionNameT = Aws::String>
46 DescribeManagedRuleGroupResult& WithVersionName(VersionNameT&& value) { SetVersionName(std::forward<VersionNameT>(value)); return *this;}
48
50
59 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
60 template<typename SnsTopicArnT = Aws::String>
61 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
62 template<typename SnsTopicArnT = Aws::String>
63 DescribeManagedRuleGroupResult& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
65
67
79 inline long long GetCapacity() const { return m_capacity; }
80 inline void SetCapacity(long long value) { m_capacityHasBeenSet = true; m_capacity = value; }
81 inline DescribeManagedRuleGroupResult& WithCapacity(long long value) { SetCapacity(value); return *this;}
83
85
88 inline const Aws::Vector<RuleSummary>& GetRules() const { return m_rules; }
89 template<typename RulesT = Aws::Vector<RuleSummary>>
90 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
91 template<typename RulesT = Aws::Vector<RuleSummary>>
92 DescribeManagedRuleGroupResult& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
93 template<typename RulesT = RuleSummary>
94 DescribeManagedRuleGroupResult& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
96
98
109 inline const Aws::String& GetLabelNamespace() const { return m_labelNamespace; }
110 template<typename LabelNamespaceT = Aws::String>
111 void SetLabelNamespace(LabelNamespaceT&& value) { m_labelNamespaceHasBeenSet = true; m_labelNamespace = std::forward<LabelNamespaceT>(value); }
112 template<typename LabelNamespaceT = Aws::String>
113 DescribeManagedRuleGroupResult& WithLabelNamespace(LabelNamespaceT&& value) { SetLabelNamespace(std::forward<LabelNamespaceT>(value)); return *this;}
115
117
122 inline const Aws::Vector<LabelSummary>& GetAvailableLabels() const { return m_availableLabels; }
123 template<typename AvailableLabelsT = Aws::Vector<LabelSummary>>
124 void SetAvailableLabels(AvailableLabelsT&& value) { m_availableLabelsHasBeenSet = true; m_availableLabels = std::forward<AvailableLabelsT>(value); }
125 template<typename AvailableLabelsT = Aws::Vector<LabelSummary>>
126 DescribeManagedRuleGroupResult& WithAvailableLabels(AvailableLabelsT&& value) { SetAvailableLabels(std::forward<AvailableLabelsT>(value)); return *this;}
127 template<typename AvailableLabelsT = LabelSummary>
128 DescribeManagedRuleGroupResult& AddAvailableLabels(AvailableLabelsT&& value) { m_availableLabelsHasBeenSet = true; m_availableLabels.emplace_back(std::forward<AvailableLabelsT>(value)); return *this; }
130
132
137 inline const Aws::Vector<LabelSummary>& GetConsumedLabels() const { return m_consumedLabels; }
138 template<typename ConsumedLabelsT = Aws::Vector<LabelSummary>>
139 void SetConsumedLabels(ConsumedLabelsT&& value) { m_consumedLabelsHasBeenSet = true; m_consumedLabels = std::forward<ConsumedLabelsT>(value); }
140 template<typename ConsumedLabelsT = Aws::Vector<LabelSummary>>
141 DescribeManagedRuleGroupResult& WithConsumedLabels(ConsumedLabelsT&& value) { SetConsumedLabels(std::forward<ConsumedLabelsT>(value)); return *this;}
142 template<typename ConsumedLabelsT = LabelSummary>
143 DescribeManagedRuleGroupResult& AddConsumedLabels(ConsumedLabelsT&& value) { m_consumedLabelsHasBeenSet = true; m_consumedLabels.emplace_back(std::forward<ConsumedLabelsT>(value)); return *this; }
145
147
148 inline const Aws::String& GetRequestId() const { return m_requestId; }
149 template<typename RequestIdT = Aws::String>
150 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
151 template<typename RequestIdT = Aws::String>
152 DescribeManagedRuleGroupResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
154 private:
155
156 Aws::String m_versionName;
157 bool m_versionNameHasBeenSet = false;
158
159 Aws::String m_snsTopicArn;
160 bool m_snsTopicArnHasBeenSet = false;
161
162 long long m_capacity{0};
163 bool m_capacityHasBeenSet = false;
164
166 bool m_rulesHasBeenSet = false;
167
168 Aws::String m_labelNamespace;
169 bool m_labelNamespaceHasBeenSet = false;
170
171 Aws::Vector<LabelSummary> m_availableLabels;
172 bool m_availableLabelsHasBeenSet = false;
173
174 Aws::Vector<LabelSummary> m_consumedLabels;
175 bool m_consumedLabelsHasBeenSet = false;
176
177 Aws::String m_requestId;
178 bool m_requestIdHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace WAFV2
183} // namespace Aws
AWS_WAFV2_API DescribeManagedRuleGroupResult()=default
AWS_WAFV2_API DescribeManagedRuleGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeManagedRuleGroupResult & WithVersionName(VersionNameT &&value)
const Aws::Vector< LabelSummary > & GetConsumedLabels() const
AWS_WAFV2_API DescribeManagedRuleGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeManagedRuleGroupResult & AddAvailableLabels(AvailableLabelsT &&value)
DescribeManagedRuleGroupResult & WithSnsTopicArn(SnsTopicArnT &&value)
DescribeManagedRuleGroupResult & WithLabelNamespace(LabelNamespaceT &&value)
DescribeManagedRuleGroupResult & WithRequestId(RequestIdT &&value)
DescribeManagedRuleGroupResult & AddRules(RulesT &&value)
DescribeManagedRuleGroupResult & WithCapacity(long long value)
DescribeManagedRuleGroupResult & WithAvailableLabels(AvailableLabelsT &&value)
const Aws::Vector< LabelSummary > & GetAvailableLabels() const
DescribeManagedRuleGroupResult & WithRules(RulesT &&value)
DescribeManagedRuleGroupResult & AddConsumedLabels(ConsumedLabelsT &&value)
DescribeManagedRuleGroupResult & WithConsumedLabels(ConsumedLabelsT &&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