AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RuleGroupResponse.h
Go to the documentation of this file.
1
6#pragma once
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace NetworkFirewall
29{
30namespace Model
31{
32
41 {
42 public:
47
48
55 inline const Aws::String& GetRuleGroupArn() const{ return m_ruleGroupArn; }
56
63 inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; }
64
71 inline void SetRuleGroupArn(const Aws::String& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = value; }
72
79 inline void SetRuleGroupArn(Aws::String&& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = std::move(value); }
80
87 inline void SetRuleGroupArn(const char* value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn.assign(value); }
88
95 inline RuleGroupResponse& WithRuleGroupArn(const Aws::String& value) { SetRuleGroupArn(value); return *this;}
96
103 inline RuleGroupResponse& WithRuleGroupArn(Aws::String&& value) { SetRuleGroupArn(std::move(value)); return *this;}
104
111 inline RuleGroupResponse& WithRuleGroupArn(const char* value) { SetRuleGroupArn(value); return *this;}
112
113
118 inline const Aws::String& GetRuleGroupName() const{ return m_ruleGroupName; }
119
124 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
125
130 inline void SetRuleGroupName(const Aws::String& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = value; }
131
136 inline void SetRuleGroupName(Aws::String&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::move(value); }
137
142 inline void SetRuleGroupName(const char* value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName.assign(value); }
143
148 inline RuleGroupResponse& WithRuleGroupName(const Aws::String& value) { SetRuleGroupName(value); return *this;}
149
154 inline RuleGroupResponse& WithRuleGroupName(Aws::String&& value) { SetRuleGroupName(std::move(value)); return *this;}
155
160 inline RuleGroupResponse& WithRuleGroupName(const char* value) { SetRuleGroupName(value); return *this;}
161
162
166 inline const Aws::String& GetRuleGroupId() const{ return m_ruleGroupId; }
167
171 inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
172
176 inline void SetRuleGroupId(const Aws::String& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = value; }
177
181 inline void SetRuleGroupId(Aws::String&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::move(value); }
182
186 inline void SetRuleGroupId(const char* value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId.assign(value); }
187
191 inline RuleGroupResponse& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;}
192
196 inline RuleGroupResponse& WithRuleGroupId(Aws::String&& value) { SetRuleGroupId(std::move(value)); return *this;}
197
201 inline RuleGroupResponse& WithRuleGroupId(const char* value) { SetRuleGroupId(value); return *this;}
202
203
207 inline const Aws::String& GetDescription() const{ return m_description; }
208
212 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
213
217 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
218
222 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
223
227 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
228
232 inline RuleGroupResponse& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
233
237 inline RuleGroupResponse& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
238
242 inline RuleGroupResponse& WithDescription(const char* value) { SetDescription(value); return *this;}
243
244
250 inline const RuleGroupType& GetType() const{ return m_type; }
251
257 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
258
264 inline void SetType(const RuleGroupType& value) { m_typeHasBeenSet = true; m_type = value; }
265
271 inline void SetType(RuleGroupType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
272
278 inline RuleGroupResponse& WithType(const RuleGroupType& value) { SetType(value); return *this;}
279
285 inline RuleGroupResponse& WithType(RuleGroupType&& value) { SetType(std::move(value)); return *this;}
286
287
297 inline int GetCapacity() const{ return m_capacity; }
298
308 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
309
319 inline void SetCapacity(int value) { m_capacityHasBeenSet = true; m_capacity = value; }
320
330 inline RuleGroupResponse& WithCapacity(int value) { SetCapacity(value); return *this;}
331
332
336 inline const ResourceStatus& GetRuleGroupStatus() const{ return m_ruleGroupStatus; }
337
341 inline bool RuleGroupStatusHasBeenSet() const { return m_ruleGroupStatusHasBeenSet; }
342
346 inline void SetRuleGroupStatus(const ResourceStatus& value) { m_ruleGroupStatusHasBeenSet = true; m_ruleGroupStatus = value; }
347
351 inline void SetRuleGroupStatus(ResourceStatus&& value) { m_ruleGroupStatusHasBeenSet = true; m_ruleGroupStatus = std::move(value); }
352
356 inline RuleGroupResponse& WithRuleGroupStatus(const ResourceStatus& value) { SetRuleGroupStatus(value); return *this;}
357
361 inline RuleGroupResponse& WithRuleGroupStatus(ResourceStatus&& value) { SetRuleGroupStatus(std::move(value)); return *this;}
362
363
367 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
368
372 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
373
377 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
378
382 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
383
387 inline RuleGroupResponse& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
388
392 inline RuleGroupResponse& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
393
397 inline RuleGroupResponse& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
398
402 inline RuleGroupResponse& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
403
404
408 inline int GetConsumedCapacity() const{ return m_consumedCapacity; }
409
413 inline bool ConsumedCapacityHasBeenSet() const { return m_consumedCapacityHasBeenSet; }
414
418 inline void SetConsumedCapacity(int value) { m_consumedCapacityHasBeenSet = true; m_consumedCapacity = value; }
419
423 inline RuleGroupResponse& WithConsumedCapacity(int value) { SetConsumedCapacity(value); return *this;}
424
425
429 inline int GetNumberOfAssociations() const{ return m_numberOfAssociations; }
430
434 inline bool NumberOfAssociationsHasBeenSet() const { return m_numberOfAssociationsHasBeenSet; }
435
439 inline void SetNumberOfAssociations(int value) { m_numberOfAssociationsHasBeenSet = true; m_numberOfAssociations = value; }
440
444 inline RuleGroupResponse& WithNumberOfAssociations(int value) { SetNumberOfAssociations(value); return *this;}
445
446
451 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
452
457 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
458
463 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
464
469 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
470
476
482
483
489 inline const SourceMetadata& GetSourceMetadata() const{ return m_sourceMetadata; }
490
496 inline bool SourceMetadataHasBeenSet() const { return m_sourceMetadataHasBeenSet; }
497
503 inline void SetSourceMetadata(const SourceMetadata& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = value; }
504
510 inline void SetSourceMetadata(SourceMetadata&& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = std::move(value); }
511
517 inline RuleGroupResponse& WithSourceMetadata(const SourceMetadata& value) { SetSourceMetadata(value); return *this;}
518
524 inline RuleGroupResponse& WithSourceMetadata(SourceMetadata&& value) { SetSourceMetadata(std::move(value)); return *this;}
525
526
536 inline const Aws::String& GetSnsTopic() const{ return m_snsTopic; }
537
547 inline bool SnsTopicHasBeenSet() const { return m_snsTopicHasBeenSet; }
548
558 inline void SetSnsTopic(const Aws::String& value) { m_snsTopicHasBeenSet = true; m_snsTopic = value; }
559
569 inline void SetSnsTopic(Aws::String&& value) { m_snsTopicHasBeenSet = true; m_snsTopic = std::move(value); }
570
580 inline void SetSnsTopic(const char* value) { m_snsTopicHasBeenSet = true; m_snsTopic.assign(value); }
581
591 inline RuleGroupResponse& WithSnsTopic(const Aws::String& value) { SetSnsTopic(value); return *this;}
592
602 inline RuleGroupResponse& WithSnsTopic(Aws::String&& value) { SetSnsTopic(std::move(value)); return *this;}
603
613 inline RuleGroupResponse& WithSnsTopic(const char* value) { SetSnsTopic(value); return *this;}
614
615
619 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
620
624 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
625
629 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
630
634 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
635
640
644 inline RuleGroupResponse& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
645
646 private:
647
648 Aws::String m_ruleGroupArn;
649 bool m_ruleGroupArnHasBeenSet = false;
650
651 Aws::String m_ruleGroupName;
652 bool m_ruleGroupNameHasBeenSet = false;
653
654 Aws::String m_ruleGroupId;
655 bool m_ruleGroupIdHasBeenSet = false;
656
657 Aws::String m_description;
658 bool m_descriptionHasBeenSet = false;
659
660 RuleGroupType m_type;
661 bool m_typeHasBeenSet = false;
662
663 int m_capacity;
664 bool m_capacityHasBeenSet = false;
665
666 ResourceStatus m_ruleGroupStatus;
667 bool m_ruleGroupStatusHasBeenSet = false;
668
669 Aws::Vector<Tag> m_tags;
670 bool m_tagsHasBeenSet = false;
671
672 int m_consumedCapacity;
673 bool m_consumedCapacityHasBeenSet = false;
674
675 int m_numberOfAssociations;
676 bool m_numberOfAssociationsHasBeenSet = false;
677
678 EncryptionConfiguration m_encryptionConfiguration;
679 bool m_encryptionConfigurationHasBeenSet = false;
680
681 SourceMetadata m_sourceMetadata;
682 bool m_sourceMetadataHasBeenSet = false;
683
684 Aws::String m_snsTopic;
685 bool m_snsTopicHasBeenSet = false;
686
687 Aws::Utils::DateTime m_lastModifiedTime;
688 bool m_lastModifiedTimeHasBeenSet = false;
689 };
690
691} // namespace Model
692} // namespace NetworkFirewall
693} // namespace Aws
#define AWS_NETWORKFIREWALL_API
RuleGroupResponse & AddTags(Tag &&value)
RuleGroupResponse & WithRuleGroupArn(const char *value)
RuleGroupResponse & WithType(RuleGroupType &&value)
RuleGroupResponse & WithRuleGroupName(const char *value)
RuleGroupResponse & WithTags(Aws::Vector< Tag > &&value)
RuleGroupResponse & WithRuleGroupId(Aws::String &&value)
RuleGroupResponse & WithRuleGroupName(const Aws::String &value)
RuleGroupResponse & WithEncryptionConfiguration(EncryptionConfiguration &&value)
RuleGroupResponse & WithRuleGroupArn(const Aws::String &value)
AWS_NETWORKFIREWALL_API RuleGroupResponse(Aws::Utils::Json::JsonView jsonValue)
RuleGroupResponse & WithSourceMetadata(const SourceMetadata &value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
const ResourceStatus & GetRuleGroupStatus() const
void SetRuleGroupName(const Aws::String &value)
RuleGroupResponse & WithLastModifiedTime(Aws::Utils::DateTime &&value)
const SourceMetadata & GetSourceMetadata() const
RuleGroupResponse & WithSnsTopic(const char *value)
RuleGroupResponse & WithType(const RuleGroupType &value)
RuleGroupResponse & WithDescription(const char *value)
RuleGroupResponse & WithRuleGroupName(Aws::String &&value)
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
AWS_NETWORKFIREWALL_API RuleGroupResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const EncryptionConfiguration & GetEncryptionConfiguration() const
RuleGroupResponse & WithLastModifiedTime(const Aws::Utils::DateTime &value)
RuleGroupResponse & WithSnsTopic(Aws::String &&value)
RuleGroupResponse & WithRuleGroupId(const Aws::String &value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
RuleGroupResponse & WithSourceMetadata(SourceMetadata &&value)
RuleGroupResponse & WithRuleGroupArn(Aws::String &&value)
RuleGroupResponse & WithSnsTopic(const Aws::String &value)
void SetDescription(const Aws::String &value)
void SetRuleGroupId(const Aws::String &value)
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
RuleGroupResponse & WithRuleGroupStatus(ResourceStatus &&value)
RuleGroupResponse & WithDescription(const Aws::String &value)
void SetSourceMetadata(const SourceMetadata &value)
void SetTags(const Aws::Vector< Tag > &value)
RuleGroupResponse & WithConsumedCapacity(int value)
RuleGroupResponse & WithDescription(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
RuleGroupResponse & WithRuleGroupId(const char *value)
RuleGroupResponse & WithRuleGroupStatus(const ResourceStatus &value)
void SetRuleGroupArn(const Aws::String &value)
void SetRuleGroupStatus(const ResourceStatus &value)
RuleGroupResponse & WithNumberOfAssociations(int value)
RuleGroupResponse & WithEncryptionConfiguration(const EncryptionConfiguration &value)
RuleGroupResponse & AddTags(const Tag &value)
RuleGroupResponse & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
void SetType(const RuleGroupType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector