AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
RuleGroupResponse.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
12#include <aws/network-firewall/model/AnalysisResult.h>
13#include <aws/network-firewall/model/EncryptionConfiguration.h>
14#include <aws/network-firewall/model/ResourceStatus.h>
15#include <aws/network-firewall/model/RuleGroupType.h>
16#include <aws/network-firewall/model/SourceMetadata.h>
17#include <aws/network-firewall/model/SummaryConfiguration.h>
18#include <aws/network-firewall/model/Tag.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Cbor {
25class CborValue;
26} // namespace Cbor
27} // namespace Utils
28namespace NetworkFirewall {
29namespace Model {
30
39 public:
40 AWS_NETWORKFIREWALL_API RuleGroupResponse() = default;
41 AWS_NETWORKFIREWALL_API RuleGroupResponse(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
42 AWS_NETWORKFIREWALL_API RuleGroupResponse& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
43 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
44
46
52 inline const Aws::String& GetRuleGroupArn() const { return m_ruleGroupArn; }
53 inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; }
54 template <typename RuleGroupArnT = Aws::String>
55 void SetRuleGroupArn(RuleGroupArnT&& value) {
56 m_ruleGroupArnHasBeenSet = true;
57 m_ruleGroupArn = std::forward<RuleGroupArnT>(value);
58 }
59 template <typename RuleGroupArnT = Aws::String>
60 RuleGroupResponse& WithRuleGroupArn(RuleGroupArnT&& value) {
61 SetRuleGroupArn(std::forward<RuleGroupArnT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::String& GetRuleGroupName() const { return m_ruleGroupName; }
72 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
73 template <typename RuleGroupNameT = Aws::String>
74 void SetRuleGroupName(RuleGroupNameT&& value) {
75 m_ruleGroupNameHasBeenSet = true;
76 m_ruleGroupName = std::forward<RuleGroupNameT>(value);
77 }
78 template <typename RuleGroupNameT = Aws::String>
79 RuleGroupResponse& WithRuleGroupName(RuleGroupNameT&& value) {
80 SetRuleGroupName(std::forward<RuleGroupNameT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetRuleGroupId() const { return m_ruleGroupId; }
90 inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
91 template <typename RuleGroupIdT = Aws::String>
92 void SetRuleGroupId(RuleGroupIdT&& value) {
93 m_ruleGroupIdHasBeenSet = true;
94 m_ruleGroupId = std::forward<RuleGroupIdT>(value);
95 }
96 template <typename RuleGroupIdT = Aws::String>
97 RuleGroupResponse& WithRuleGroupId(RuleGroupIdT&& value) {
98 SetRuleGroupId(std::forward<RuleGroupIdT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetDescription() const { return m_description; }
108 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
109 template <typename DescriptionT = Aws::String>
110 void SetDescription(DescriptionT&& value) {
111 m_descriptionHasBeenSet = true;
112 m_description = std::forward<DescriptionT>(value);
113 }
114 template <typename DescriptionT = Aws::String>
115 RuleGroupResponse& WithDescription(DescriptionT&& value) {
116 SetDescription(std::forward<DescriptionT>(value));
117 return *this;
118 }
120
122
131 inline RuleGroupType GetType() const { return m_type; }
132 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
133 inline void SetType(RuleGroupType value) {
134 m_typeHasBeenSet = true;
135 m_type = value;
136 }
138 SetType(value);
139 return *this;
140 }
142
144
153 inline int64_t GetCapacity() const { return m_capacity; }
154 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
155 inline void SetCapacity(int64_t value) {
156 m_capacityHasBeenSet = true;
157 m_capacity = value;
158 }
159 inline RuleGroupResponse& WithCapacity(int64_t value) {
160 SetCapacity(value);
161 return *this;
162 }
164
166
169 inline ResourceStatus GetRuleGroupStatus() const { return m_ruleGroupStatus; }
170 inline bool RuleGroupStatusHasBeenSet() const { return m_ruleGroupStatusHasBeenSet; }
172 m_ruleGroupStatusHasBeenSet = true;
173 m_ruleGroupStatus = value;
174 }
176 SetRuleGroupStatus(value);
177 return *this;
178 }
180
182
185 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
186 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
187 template <typename TagsT = Aws::Vector<Tag>>
188 void SetTags(TagsT&& value) {
189 m_tagsHasBeenSet = true;
190 m_tags = std::forward<TagsT>(value);
191 }
192 template <typename TagsT = Aws::Vector<Tag>>
193 RuleGroupResponse& WithTags(TagsT&& value) {
194 SetTags(std::forward<TagsT>(value));
195 return *this;
196 }
197 template <typename TagsT = Tag>
198 RuleGroupResponse& AddTags(TagsT&& value) {
199 m_tagsHasBeenSet = true;
200 m_tags.emplace_back(std::forward<TagsT>(value));
201 return *this;
202 }
204
206
209 inline int64_t GetConsumedCapacity() const { return m_consumedCapacity; }
210 inline bool ConsumedCapacityHasBeenSet() const { return m_consumedCapacityHasBeenSet; }
211 inline void SetConsumedCapacity(int64_t value) {
212 m_consumedCapacityHasBeenSet = true;
213 m_consumedCapacity = value;
214 }
216 SetConsumedCapacity(value);
217 return *this;
218 }
220
222
225 inline int64_t GetNumberOfAssociations() const { return m_numberOfAssociations; }
226 inline bool NumberOfAssociationsHasBeenSet() const { return m_numberOfAssociationsHasBeenSet; }
227 inline void SetNumberOfAssociations(int64_t value) {
228 m_numberOfAssociationsHasBeenSet = true;
229 m_numberOfAssociations = value;
230 }
233 return *this;
234 }
236
238
242 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
243 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
244 template <typename EncryptionConfigurationT = EncryptionConfiguration>
245 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
246 m_encryptionConfigurationHasBeenSet = true;
247 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
248 }
249 template <typename EncryptionConfigurationT = EncryptionConfiguration>
250 RuleGroupResponse& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
251 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
252 return *this;
253 }
255
257
262 inline const SourceMetadata& GetSourceMetadata() const { return m_sourceMetadata; }
263 inline bool SourceMetadataHasBeenSet() const { return m_sourceMetadataHasBeenSet; }
264 template <typename SourceMetadataT = SourceMetadata>
265 void SetSourceMetadata(SourceMetadataT&& value) {
266 m_sourceMetadataHasBeenSet = true;
267 m_sourceMetadata = std::forward<SourceMetadataT>(value);
268 }
269 template <typename SourceMetadataT = SourceMetadata>
270 RuleGroupResponse& WithSourceMetadata(SourceMetadataT&& value) {
271 SetSourceMetadata(std::forward<SourceMetadataT>(value));
272 return *this;
273 }
275
277
286 inline const Aws::String& GetSnsTopic() const { return m_snsTopic; }
287 inline bool SnsTopicHasBeenSet() const { return m_snsTopicHasBeenSet; }
288 template <typename SnsTopicT = Aws::String>
289 void SetSnsTopic(SnsTopicT&& value) {
290 m_snsTopicHasBeenSet = true;
291 m_snsTopic = std::forward<SnsTopicT>(value);
292 }
293 template <typename SnsTopicT = Aws::String>
294 RuleGroupResponse& WithSnsTopic(SnsTopicT&& value) {
295 SetSnsTopic(std::forward<SnsTopicT>(value));
296 return *this;
297 }
299
301
304 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
305 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
306 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
307 void SetLastModifiedTime(LastModifiedTimeT&& value) {
308 m_lastModifiedTimeHasBeenSet = true;
309 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
310 }
311 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
312 RuleGroupResponse& WithLastModifiedTime(LastModifiedTimeT&& value) {
313 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
314 return *this;
315 }
317
319
329 inline const Aws::Vector<AnalysisResult>& GetAnalysisResults() const { return m_analysisResults; }
330 inline bool AnalysisResultsHasBeenSet() const { return m_analysisResultsHasBeenSet; }
331 template <typename AnalysisResultsT = Aws::Vector<AnalysisResult>>
332 void SetAnalysisResults(AnalysisResultsT&& value) {
333 m_analysisResultsHasBeenSet = true;
334 m_analysisResults = std::forward<AnalysisResultsT>(value);
335 }
336 template <typename AnalysisResultsT = Aws::Vector<AnalysisResult>>
337 RuleGroupResponse& WithAnalysisResults(AnalysisResultsT&& value) {
338 SetAnalysisResults(std::forward<AnalysisResultsT>(value));
339 return *this;
340 }
341 template <typename AnalysisResultsT = AnalysisResult>
342 RuleGroupResponse& AddAnalysisResults(AnalysisResultsT&& value) {
343 m_analysisResultsHasBeenSet = true;
344 m_analysisResults.emplace_back(std::forward<AnalysisResultsT>(value));
345 return *this;
346 }
348
350
357 inline const SummaryConfiguration& GetSummaryConfiguration() const { return m_summaryConfiguration; }
358 inline bool SummaryConfigurationHasBeenSet() const { return m_summaryConfigurationHasBeenSet; }
359 template <typename SummaryConfigurationT = SummaryConfiguration>
360 void SetSummaryConfiguration(SummaryConfigurationT&& value) {
361 m_summaryConfigurationHasBeenSet = true;
362 m_summaryConfiguration = std::forward<SummaryConfigurationT>(value);
363 }
364 template <typename SummaryConfigurationT = SummaryConfiguration>
365 RuleGroupResponse& WithSummaryConfiguration(SummaryConfigurationT&& value) {
366 SetSummaryConfiguration(std::forward<SummaryConfigurationT>(value));
367 return *this;
368 }
370 private:
371 Aws::String m_ruleGroupArn;
372
373 Aws::String m_ruleGroupName;
374
375 Aws::String m_ruleGroupId;
376
377 Aws::String m_description;
378
380
381 int64_t m_capacity{0};
382
383 ResourceStatus m_ruleGroupStatus{ResourceStatus::NOT_SET};
384
385 Aws::Vector<Tag> m_tags;
386
387 int64_t m_consumedCapacity{0};
388
389 int64_t m_numberOfAssociations{0};
390
391 EncryptionConfiguration m_encryptionConfiguration;
392
393 SourceMetadata m_sourceMetadata;
394
395 Aws::String m_snsTopic;
396
397 Aws::Utils::DateTime m_lastModifiedTime{};
398
399 Aws::Vector<AnalysisResult> m_analysisResults;
400
401 SummaryConfiguration m_summaryConfiguration;
402 bool m_ruleGroupArnHasBeenSet = false;
403 bool m_ruleGroupNameHasBeenSet = false;
404 bool m_ruleGroupIdHasBeenSet = false;
405 bool m_descriptionHasBeenSet = false;
406 bool m_typeHasBeenSet = false;
407 bool m_capacityHasBeenSet = false;
408 bool m_ruleGroupStatusHasBeenSet = false;
409 bool m_tagsHasBeenSet = false;
410 bool m_consumedCapacityHasBeenSet = false;
411 bool m_numberOfAssociationsHasBeenSet = false;
412 bool m_encryptionConfigurationHasBeenSet = false;
413 bool m_sourceMetadataHasBeenSet = false;
414 bool m_snsTopicHasBeenSet = false;
415 bool m_lastModifiedTimeHasBeenSet = false;
416 bool m_analysisResultsHasBeenSet = false;
417 bool m_summaryConfigurationHasBeenSet = false;
418};
419
420} // namespace Model
421} // namespace NetworkFirewall
422} // namespace Aws
RuleGroupResponse & WithRuleGroupArn(RuleGroupArnT &&value)
RuleGroupResponse & WithConsumedCapacity(int64_t value)
void SetSummaryConfiguration(SummaryConfigurationT &&value)
RuleGroupResponse & WithAnalysisResults(AnalysisResultsT &&value)
AWS_NETWORKFIREWALL_API RuleGroupResponse(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API RuleGroupResponse & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< AnalysisResult > & GetAnalysisResults() const
RuleGroupResponse & WithRuleGroupName(RuleGroupNameT &&value)
RuleGroupResponse & WithCapacity(int64_t value)
RuleGroupResponse & AddAnalysisResults(AnalysisResultsT &&value)
RuleGroupResponse & WithSnsTopic(SnsTopicT &&value)
RuleGroupResponse & WithSourceMetadata(SourceMetadataT &&value)
RuleGroupResponse & WithDescription(DescriptionT &&value)
const SourceMetadata & GetSourceMetadata() const
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
const SummaryConfiguration & GetSummaryConfiguration() const
RuleGroupResponse & AddTags(TagsT &&value)
RuleGroupResponse & WithNumberOfAssociations(int64_t value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const EncryptionConfiguration & GetEncryptionConfiguration() const
RuleGroupResponse & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
void SetAnalysisResults(AnalysisResultsT &&value)
RuleGroupResponse & WithRuleGroupStatus(ResourceStatus value)
RuleGroupResponse & WithLastModifiedTime(LastModifiedTimeT &&value)
RuleGroupResponse & WithRuleGroupId(RuleGroupIdT &&value)
RuleGroupResponse & WithSummaryConfiguration(SummaryConfigurationT &&value)
RuleGroupResponse & WithType(RuleGroupType value)
AWS_NETWORKFIREWALL_API RuleGroupResponse()=default
RuleGroupResponse & WithTags(TagsT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Vector< Tag > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector