AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateFirewallRequest.h
Go to the documentation of this file.
1
6#pragma once
14#include <utility>
15
16namespace Aws
17{
18namespace NetworkFirewall
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateFirewall"; }
35
37
39
40
45 inline const Aws::String& GetFirewallName() const{ return m_firewallName; }
46
51 inline bool FirewallNameHasBeenSet() const { return m_firewallNameHasBeenSet; }
52
57 inline void SetFirewallName(const Aws::String& value) { m_firewallNameHasBeenSet = true; m_firewallName = value; }
58
63 inline void SetFirewallName(Aws::String&& value) { m_firewallNameHasBeenSet = true; m_firewallName = std::move(value); }
64
69 inline void SetFirewallName(const char* value) { m_firewallNameHasBeenSet = true; m_firewallName.assign(value); }
70
75 inline CreateFirewallRequest& WithFirewallName(const Aws::String& value) { SetFirewallName(value); return *this;}
76
81 inline CreateFirewallRequest& WithFirewallName(Aws::String&& value) { SetFirewallName(std::move(value)); return *this;}
82
87 inline CreateFirewallRequest& WithFirewallName(const char* value) { SetFirewallName(value); return *this;}
88
89
94 inline const Aws::String& GetFirewallPolicyArn() const{ return m_firewallPolicyArn; }
95
100 inline bool FirewallPolicyArnHasBeenSet() const { return m_firewallPolicyArnHasBeenSet; }
101
106 inline void SetFirewallPolicyArn(const Aws::String& value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn = value; }
107
112 inline void SetFirewallPolicyArn(Aws::String&& value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn = std::move(value); }
113
118 inline void SetFirewallPolicyArn(const char* value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn.assign(value); }
119
125
130 inline CreateFirewallRequest& WithFirewallPolicyArn(Aws::String&& value) { SetFirewallPolicyArn(std::move(value)); return *this;}
131
136 inline CreateFirewallRequest& WithFirewallPolicyArn(const char* value) { SetFirewallPolicyArn(value); return *this;}
137
138
144 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
145
151 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
152
158 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
159
165 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
166
172 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
173
179 inline CreateFirewallRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
180
186 inline CreateFirewallRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
187
193 inline CreateFirewallRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
194
195
201 inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const{ return m_subnetMappings; }
202
208 inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
209
215 inline void SetSubnetMappings(const Aws::Vector<SubnetMapping>& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = value; }
216
222 inline void SetSubnetMappings(Aws::Vector<SubnetMapping>&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = std::move(value); }
223
230
237
243 inline CreateFirewallRequest& AddSubnetMappings(const SubnetMapping& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(value); return *this; }
244
250 inline CreateFirewallRequest& AddSubnetMappings(SubnetMapping&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(std::move(value)); return *this; }
251
252
260 inline bool GetDeleteProtection() const{ return m_deleteProtection; }
261
269 inline bool DeleteProtectionHasBeenSet() const { return m_deleteProtectionHasBeenSet; }
270
278 inline void SetDeleteProtection(bool value) { m_deleteProtectionHasBeenSet = true; m_deleteProtection = value; }
279
287 inline CreateFirewallRequest& WithDeleteProtection(bool value) { SetDeleteProtection(value); return *this;}
288
289
296 inline bool GetSubnetChangeProtection() const{ return m_subnetChangeProtection; }
297
304 inline bool SubnetChangeProtectionHasBeenSet() const { return m_subnetChangeProtectionHasBeenSet; }
305
312 inline void SetSubnetChangeProtection(bool value) { m_subnetChangeProtectionHasBeenSet = true; m_subnetChangeProtection = value; }
313
321
322
330 inline bool GetFirewallPolicyChangeProtection() const{ return m_firewallPolicyChangeProtection; }
331
339 inline bool FirewallPolicyChangeProtectionHasBeenSet() const { return m_firewallPolicyChangeProtectionHasBeenSet; }
340
348 inline void SetFirewallPolicyChangeProtection(bool value) { m_firewallPolicyChangeProtectionHasBeenSet = true; m_firewallPolicyChangeProtection = value; }
349
358
359
363 inline const Aws::String& GetDescription() const{ return m_description; }
364
368 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
369
373 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
374
378 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
379
383 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
384
388 inline CreateFirewallRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
389
393 inline CreateFirewallRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
394
398 inline CreateFirewallRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
399
400
404 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
405
409 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
410
414 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
415
419 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
420
424 inline CreateFirewallRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
425
429 inline CreateFirewallRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
430
434 inline CreateFirewallRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
435
439 inline CreateFirewallRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
440
441
446 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
447
452 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
453
458 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
459
464 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
465
471
477
478 private:
479
480 Aws::String m_firewallName;
481 bool m_firewallNameHasBeenSet = false;
482
483 Aws::String m_firewallPolicyArn;
484 bool m_firewallPolicyArnHasBeenSet = false;
485
486 Aws::String m_vpcId;
487 bool m_vpcIdHasBeenSet = false;
488
489 Aws::Vector<SubnetMapping> m_subnetMappings;
490 bool m_subnetMappingsHasBeenSet = false;
491
492 bool m_deleteProtection;
493 bool m_deleteProtectionHasBeenSet = false;
494
495 bool m_subnetChangeProtection;
496 bool m_subnetChangeProtectionHasBeenSet = false;
497
498 bool m_firewallPolicyChangeProtection;
499 bool m_firewallPolicyChangeProtectionHasBeenSet = false;
500
501 Aws::String m_description;
502 bool m_descriptionHasBeenSet = false;
503
504 Aws::Vector<Tag> m_tags;
505 bool m_tagsHasBeenSet = false;
506
507 EncryptionConfiguration m_encryptionConfiguration;
508 bool m_encryptionConfigurationHasBeenSet = false;
509 };
510
511} // namespace Model
512} // namespace NetworkFirewall
513} // namespace Aws
#define AWS_NETWORKFIREWALL_API
CreateFirewallRequest & WithEncryptionConfiguration(EncryptionConfiguration &&value)
CreateFirewallRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< SubnetMapping > & GetSubnetMappings() const
CreateFirewallRequest & AddSubnetMappings(const SubnetMapping &value)
CreateFirewallRequest & WithEncryptionConfiguration(const EncryptionConfiguration &value)
CreateFirewallRequest & WithFirewallName(const char *value)
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
CreateFirewallRequest & WithFirewallPolicyChangeProtection(bool value)
CreateFirewallRequest & WithDeleteProtection(bool value)
CreateFirewallRequest & WithDescription(Aws::String &&value)
CreateFirewallRequest & WithVpcId(const char *value)
CreateFirewallRequest & WithSubnetChangeProtection(bool value)
CreateFirewallRequest & WithFirewallPolicyArn(const Aws::String &value)
CreateFirewallRequest & WithVpcId(const Aws::String &value)
CreateFirewallRequest & WithFirewallName(const Aws::String &value)
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
CreateFirewallRequest & WithFirewallName(Aws::String &&value)
CreateFirewallRequest & WithSubnetMappings(Aws::Vector< SubnetMapping > &&value)
CreateFirewallRequest & WithSubnetMappings(const Aws::Vector< SubnetMapping > &value)
CreateFirewallRequest & AddSubnetMappings(SubnetMapping &&value)
void SetSubnetMappings(Aws::Vector< SubnetMapping > &&value)
CreateFirewallRequest & WithTags(const Aws::Vector< Tag > &value)
CreateFirewallRequest & WithVpcId(Aws::String &&value)
CreateFirewallRequest & WithDescription(const char *value)
CreateFirewallRequest & WithDescription(const Aws::String &value)
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
CreateFirewallRequest & WithFirewallPolicyArn(Aws::String &&value)
CreateFirewallRequest & AddTags(const Tag &value)
virtual const char * GetServiceRequestName() const override
const EncryptionConfiguration & GetEncryptionConfiguration() const
CreateFirewallRequest & WithFirewallPolicyArn(const char *value)
void SetSubnetMappings(const Aws::Vector< SubnetMapping > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector