AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Firewall.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace NetworkFirewall
26{
27namespace Model
28{
29
42 {
43 public:
48
49
54 inline const Aws::String& GetFirewallName() const{ return m_firewallName; }
55
60 inline bool FirewallNameHasBeenSet() const { return m_firewallNameHasBeenSet; }
61
66 inline void SetFirewallName(const Aws::String& value) { m_firewallNameHasBeenSet = true; m_firewallName = value; }
67
72 inline void SetFirewallName(Aws::String&& value) { m_firewallNameHasBeenSet = true; m_firewallName = std::move(value); }
73
78 inline void SetFirewallName(const char* value) { m_firewallNameHasBeenSet = true; m_firewallName.assign(value); }
79
84 inline Firewall& WithFirewallName(const Aws::String& value) { SetFirewallName(value); return *this;}
85
90 inline Firewall& WithFirewallName(Aws::String&& value) { SetFirewallName(std::move(value)); return *this;}
91
96 inline Firewall& WithFirewallName(const char* value) { SetFirewallName(value); return *this;}
97
98
102 inline const Aws::String& GetFirewallArn() const{ return m_firewallArn; }
103
107 inline bool FirewallArnHasBeenSet() const { return m_firewallArnHasBeenSet; }
108
112 inline void SetFirewallArn(const Aws::String& value) { m_firewallArnHasBeenSet = true; m_firewallArn = value; }
113
117 inline void SetFirewallArn(Aws::String&& value) { m_firewallArnHasBeenSet = true; m_firewallArn = std::move(value); }
118
122 inline void SetFirewallArn(const char* value) { m_firewallArnHasBeenSet = true; m_firewallArn.assign(value); }
123
127 inline Firewall& WithFirewallArn(const Aws::String& value) { SetFirewallArn(value); return *this;}
128
132 inline Firewall& WithFirewallArn(Aws::String&& value) { SetFirewallArn(std::move(value)); return *this;}
133
137 inline Firewall& WithFirewallArn(const char* value) { SetFirewallArn(value); return *this;}
138
139
146 inline const Aws::String& GetFirewallPolicyArn() const{ return m_firewallPolicyArn; }
147
154 inline bool FirewallPolicyArnHasBeenSet() const { return m_firewallPolicyArnHasBeenSet; }
155
162 inline void SetFirewallPolicyArn(const Aws::String& value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn = value; }
163
170 inline void SetFirewallPolicyArn(Aws::String&& value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn = std::move(value); }
171
178 inline void SetFirewallPolicyArn(const char* value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn.assign(value); }
179
186 inline Firewall& WithFirewallPolicyArn(const Aws::String& value) { SetFirewallPolicyArn(value); return *this;}
187
194 inline Firewall& WithFirewallPolicyArn(Aws::String&& value) { SetFirewallPolicyArn(std::move(value)); return *this;}
195
202 inline Firewall& WithFirewallPolicyArn(const char* value) { SetFirewallPolicyArn(value); return *this;}
203
204
208 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
209
213 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
214
218 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
219
223 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
224
228 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
229
233 inline Firewall& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
234
238 inline Firewall& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
239
243 inline Firewall& WithVpcId(const char* value) { SetVpcId(value); return *this;}
244
245
250 inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const{ return m_subnetMappings; }
251
256 inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
257
262 inline void SetSubnetMappings(const Aws::Vector<SubnetMapping>& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = value; }
263
268 inline void SetSubnetMappings(Aws::Vector<SubnetMapping>&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = std::move(value); }
269
274 inline Firewall& WithSubnetMappings(const Aws::Vector<SubnetMapping>& value) { SetSubnetMappings(value); return *this;}
275
280 inline Firewall& WithSubnetMappings(Aws::Vector<SubnetMapping>&& value) { SetSubnetMappings(std::move(value)); return *this;}
281
286 inline Firewall& AddSubnetMappings(const SubnetMapping& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(value); return *this; }
287
292 inline Firewall& AddSubnetMappings(SubnetMapping&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(std::move(value)); return *this; }
293
294
302 inline bool GetDeleteProtection() const{ return m_deleteProtection; }
303
311 inline bool DeleteProtectionHasBeenSet() const { return m_deleteProtectionHasBeenSet; }
312
320 inline void SetDeleteProtection(bool value) { m_deleteProtectionHasBeenSet = true; m_deleteProtection = value; }
321
329 inline Firewall& WithDeleteProtection(bool value) { SetDeleteProtection(value); return *this;}
330
331
338 inline bool GetSubnetChangeProtection() const{ return m_subnetChangeProtection; }
339
346 inline bool SubnetChangeProtectionHasBeenSet() const { return m_subnetChangeProtectionHasBeenSet; }
347
354 inline void SetSubnetChangeProtection(bool value) { m_subnetChangeProtectionHasBeenSet = true; m_subnetChangeProtection = value; }
355
362 inline Firewall& WithSubnetChangeProtection(bool value) { SetSubnetChangeProtection(value); return *this;}
363
364
372 inline bool GetFirewallPolicyChangeProtection() const{ return m_firewallPolicyChangeProtection; }
373
381 inline bool FirewallPolicyChangeProtectionHasBeenSet() const { return m_firewallPolicyChangeProtectionHasBeenSet; }
382
390 inline void SetFirewallPolicyChangeProtection(bool value) { m_firewallPolicyChangeProtectionHasBeenSet = true; m_firewallPolicyChangeProtection = value; }
391
400
401
405 inline const Aws::String& GetDescription() const{ return m_description; }
406
410 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
411
415 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
416
420 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
421
425 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
426
430 inline Firewall& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
431
435 inline Firewall& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
436
440 inline Firewall& WithDescription(const char* value) { SetDescription(value); return *this;}
441
442
446 inline const Aws::String& GetFirewallId() const{ return m_firewallId; }
447
451 inline bool FirewallIdHasBeenSet() const { return m_firewallIdHasBeenSet; }
452
456 inline void SetFirewallId(const Aws::String& value) { m_firewallIdHasBeenSet = true; m_firewallId = value; }
457
461 inline void SetFirewallId(Aws::String&& value) { m_firewallIdHasBeenSet = true; m_firewallId = std::move(value); }
462
466 inline void SetFirewallId(const char* value) { m_firewallIdHasBeenSet = true; m_firewallId.assign(value); }
467
471 inline Firewall& WithFirewallId(const Aws::String& value) { SetFirewallId(value); return *this;}
472
476 inline Firewall& WithFirewallId(Aws::String&& value) { SetFirewallId(std::move(value)); return *this;}
477
481 inline Firewall& WithFirewallId(const char* value) { SetFirewallId(value); return *this;}
482
483
487 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
488
492 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
493
497 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
498
502 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
503
507 inline Firewall& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
508
512 inline Firewall& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
513
517 inline Firewall& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
518
522 inline Firewall& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
523
524
529 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
530
535 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
536
541 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
542
547 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
548
554
560
561 private:
562
563 Aws::String m_firewallName;
564 bool m_firewallNameHasBeenSet = false;
565
566 Aws::String m_firewallArn;
567 bool m_firewallArnHasBeenSet = false;
568
569 Aws::String m_firewallPolicyArn;
570 bool m_firewallPolicyArnHasBeenSet = false;
571
572 Aws::String m_vpcId;
573 bool m_vpcIdHasBeenSet = false;
574
575 Aws::Vector<SubnetMapping> m_subnetMappings;
576 bool m_subnetMappingsHasBeenSet = false;
577
578 bool m_deleteProtection;
579 bool m_deleteProtectionHasBeenSet = false;
580
581 bool m_subnetChangeProtection;
582 bool m_subnetChangeProtectionHasBeenSet = false;
583
584 bool m_firewallPolicyChangeProtection;
585 bool m_firewallPolicyChangeProtectionHasBeenSet = false;
586
587 Aws::String m_description;
588 bool m_descriptionHasBeenSet = false;
589
590 Aws::String m_firewallId;
591 bool m_firewallIdHasBeenSet = false;
592
593 Aws::Vector<Tag> m_tags;
594 bool m_tagsHasBeenSet = false;
595
596 EncryptionConfiguration m_encryptionConfiguration;
597 bool m_encryptionConfigurationHasBeenSet = false;
598 };
599
600} // namespace Model
601} // namespace NetworkFirewall
602} // namespace Aws
#define AWS_NETWORKFIREWALL_API
const EncryptionConfiguration & GetEncryptionConfiguration() const
Definition: Firewall.h:529
const Aws::String & GetFirewallPolicyArn() const
Definition: Firewall.h:146
Firewall & WithVpcId(const Aws::String &value)
Definition: Firewall.h:233
void SetVpcId(Aws::String &&value)
Definition: Firewall.h:223
AWS_NETWORKFIREWALL_API Firewall & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeleteProtection(bool value)
Definition: Firewall.h:320
bool EncryptionConfigurationHasBeenSet() const
Definition: Firewall.h:535
Firewall & AddTags(Tag &&value)
Definition: Firewall.h:522
Firewall & WithDescription(Aws::String &&value)
Definition: Firewall.h:435
const Aws::Vector< SubnetMapping > & GetSubnetMappings() const
Definition: Firewall.h:250
void SetFirewallPolicyChangeProtection(bool value)
Definition: Firewall.h:390
void SetFirewallPolicyArn(Aws::String &&value)
Definition: Firewall.h:170
AWS_NETWORKFIREWALL_API Firewall()
void SetFirewallArn(Aws::String &&value)
Definition: Firewall.h:117
void SetFirewallName(const Aws::String &value)
Definition: Firewall.h:66
void SetTags(Aws::Vector< Tag > &&value)
Definition: Firewall.h:502
Firewall & WithFirewallName(Aws::String &&value)
Definition: Firewall.h:90
Firewall & AddTags(const Tag &value)
Definition: Firewall.h:517
Firewall & WithTags(const Aws::Vector< Tag > &value)
Definition: Firewall.h:507
Firewall & WithDeleteProtection(bool value)
Definition: Firewall.h:329
void SetTags(const Aws::Vector< Tag > &value)
Definition: Firewall.h:497
AWS_NETWORKFIREWALL_API Firewall(Aws::Utils::Json::JsonView jsonValue)
Firewall & WithSubnetMappings(Aws::Vector< SubnetMapping > &&value)
Definition: Firewall.h:280
void SetDescription(Aws::String &&value)
Definition: Firewall.h:420
const Aws::String & GetDescription() const
Definition: Firewall.h:405
const Aws::String & GetFirewallArn() const
Definition: Firewall.h:102
void SetFirewallId(Aws::String &&value)
Definition: Firewall.h:461
Firewall & WithEncryptionConfiguration(EncryptionConfiguration &&value)
Definition: Firewall.h:559
Firewall & AddSubnetMappings(const SubnetMapping &value)
Definition: Firewall.h:286
void SetFirewallPolicyArn(const Aws::String &value)
Definition: Firewall.h:162
Firewall & WithDescription(const Aws::String &value)
Definition: Firewall.h:430
Firewall & WithTags(Aws::Vector< Tag > &&value)
Definition: Firewall.h:512
void SetDescription(const char *value)
Definition: Firewall.h:425
Firewall & WithFirewallArn(const Aws::String &value)
Definition: Firewall.h:127
Firewall & WithSubnetMappings(const Aws::Vector< SubnetMapping > &value)
Definition: Firewall.h:274
bool GetFirewallPolicyChangeProtection() const
Definition: Firewall.h:372
Firewall & WithSubnetChangeProtection(bool value)
Definition: Firewall.h:362
Firewall & WithDescription(const char *value)
Definition: Firewall.h:440
Firewall & WithEncryptionConfiguration(const EncryptionConfiguration &value)
Definition: Firewall.h:553
Firewall & WithFirewallName(const Aws::String &value)
Definition: Firewall.h:84
Firewall & WithVpcId(Aws::String &&value)
Definition: Firewall.h:238
const Aws::String & GetFirewallId() const
Definition: Firewall.h:446
void SetFirewallName(Aws::String &&value)
Definition: Firewall.h:72
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
Definition: Firewall.h:541
void SetFirewallArn(const Aws::String &value)
Definition: Firewall.h:112
void SetFirewallName(const char *value)
Definition: Firewall.h:78
const Aws::Vector< Tag > & GetTags() const
Definition: Firewall.h:487
void SetSubnetChangeProtection(bool value)
Definition: Firewall.h:354
Firewall & WithFirewallPolicyArn(const char *value)
Definition: Firewall.h:202
Firewall & WithFirewallName(const char *value)
Definition: Firewall.h:96
const Aws::String & GetFirewallName() const
Definition: Firewall.h:54
void SetVpcId(const char *value)
Definition: Firewall.h:228
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
Definition: Firewall.h:547
Firewall & WithFirewallArn(Aws::String &&value)
Definition: Firewall.h:132
Firewall & WithFirewallId(const char *value)
Definition: Firewall.h:481
Firewall & WithFirewallPolicyArn(const Aws::String &value)
Definition: Firewall.h:186
void SetFirewallArn(const char *value)
Definition: Firewall.h:122
void SetFirewallPolicyArn(const char *value)
Definition: Firewall.h:178
void SetSubnetMappings(Aws::Vector< SubnetMapping > &&value)
Definition: Firewall.h:268
Firewall & WithFirewallPolicyArn(Aws::String &&value)
Definition: Firewall.h:194
Firewall & WithVpcId(const char *value)
Definition: Firewall.h:243
const Aws::String & GetVpcId() const
Definition: Firewall.h:208
void SetFirewallId(const Aws::String &value)
Definition: Firewall.h:456
Firewall & WithFirewallId(const Aws::String &value)
Definition: Firewall.h:471
bool FirewallPolicyChangeProtectionHasBeenSet() const
Definition: Firewall.h:381
Firewall & AddSubnetMappings(SubnetMapping &&value)
Definition: Firewall.h:292
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
Firewall & WithFirewallArn(const char *value)
Definition: Firewall.h:137
Firewall & WithFirewallPolicyChangeProtection(bool value)
Definition: Firewall.h:399
void SetFirewallId(const char *value)
Definition: Firewall.h:466
void SetVpcId(const Aws::String &value)
Definition: Firewall.h:218
Firewall & WithFirewallId(Aws::String &&value)
Definition: Firewall.h:476
void SetDescription(const Aws::String &value)
Definition: Firewall.h:415
bool SubnetChangeProtectionHasBeenSet() const
Definition: Firewall.h:346
void SetSubnetMappings(const Aws::Vector< SubnetMapping > &value)
Definition: Firewall.h:262
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector