AWS SDK for C++  1.9.108
AWS SDK for C++
CreateFirewallRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace NetworkFirewall
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateFirewall"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetFirewallName() const{ return m_firewallName; }
45 
50  inline bool FirewallNameHasBeenSet() const { return m_firewallNameHasBeenSet; }
51 
56  inline void SetFirewallName(const Aws::String& value) { m_firewallNameHasBeenSet = true; m_firewallName = value; }
57 
62  inline void SetFirewallName(Aws::String&& value) { m_firewallNameHasBeenSet = true; m_firewallName = std::move(value); }
63 
68  inline void SetFirewallName(const char* value) { m_firewallNameHasBeenSet = true; m_firewallName.assign(value); }
69 
74  inline CreateFirewallRequest& WithFirewallName(const Aws::String& value) { SetFirewallName(value); return *this;}
75 
80  inline CreateFirewallRequest& WithFirewallName(Aws::String&& value) { SetFirewallName(std::move(value)); return *this;}
81 
86  inline CreateFirewallRequest& WithFirewallName(const char* value) { SetFirewallName(value); return *this;}
87 
88 
93  inline const Aws::String& GetFirewallPolicyArn() const{ return m_firewallPolicyArn; }
94 
99  inline bool FirewallPolicyArnHasBeenSet() const { return m_firewallPolicyArnHasBeenSet; }
100 
105  inline void SetFirewallPolicyArn(const Aws::String& value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn = value; }
106 
111  inline void SetFirewallPolicyArn(Aws::String&& value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn = std::move(value); }
112 
117  inline void SetFirewallPolicyArn(const char* value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn.assign(value); }
118 
123  inline CreateFirewallRequest& WithFirewallPolicyArn(const Aws::String& value) { SetFirewallPolicyArn(value); return *this;}
124 
129  inline CreateFirewallRequest& WithFirewallPolicyArn(Aws::String&& value) { SetFirewallPolicyArn(std::move(value)); return *this;}
130 
135  inline CreateFirewallRequest& WithFirewallPolicyArn(const char* value) { SetFirewallPolicyArn(value); return *this;}
136 
137 
143  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
144 
150  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
151 
157  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
158 
164  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
165 
171  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
172 
178  inline CreateFirewallRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
179 
185  inline CreateFirewallRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
186 
192  inline CreateFirewallRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
193 
194 
200  inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const{ return m_subnetMappings; }
201 
207  inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
208 
214  inline void SetSubnetMappings(const Aws::Vector<SubnetMapping>& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = value; }
215 
221  inline void SetSubnetMappings(Aws::Vector<SubnetMapping>&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = std::move(value); }
222 
228  inline CreateFirewallRequest& WithSubnetMappings(const Aws::Vector<SubnetMapping>& value) { SetSubnetMappings(value); return *this;}
229 
235  inline CreateFirewallRequest& WithSubnetMappings(Aws::Vector<SubnetMapping>&& value) { SetSubnetMappings(std::move(value)); return *this;}
236 
242  inline CreateFirewallRequest& AddSubnetMappings(const SubnetMapping& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(value); return *this; }
243 
249  inline CreateFirewallRequest& AddSubnetMappings(SubnetMapping&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(std::move(value)); return *this; }
250 
251 
259  inline bool GetDeleteProtection() const{ return m_deleteProtection; }
260 
268  inline bool DeleteProtectionHasBeenSet() const { return m_deleteProtectionHasBeenSet; }
269 
277  inline void SetDeleteProtection(bool value) { m_deleteProtectionHasBeenSet = true; m_deleteProtection = value; }
278 
286  inline CreateFirewallRequest& WithDeleteProtection(bool value) { SetDeleteProtection(value); return *this;}
287 
288 
295  inline bool GetSubnetChangeProtection() const{ return m_subnetChangeProtection; }
296 
303  inline bool SubnetChangeProtectionHasBeenSet() const { return m_subnetChangeProtectionHasBeenSet; }
304 
311  inline void SetSubnetChangeProtection(bool value) { m_subnetChangeProtectionHasBeenSet = true; m_subnetChangeProtection = value; }
312 
319  inline CreateFirewallRequest& WithSubnetChangeProtection(bool value) { SetSubnetChangeProtection(value); return *this;}
320 
321 
329  inline bool GetFirewallPolicyChangeProtection() const{ return m_firewallPolicyChangeProtection; }
330 
338  inline bool FirewallPolicyChangeProtectionHasBeenSet() const { return m_firewallPolicyChangeProtectionHasBeenSet; }
339 
347  inline void SetFirewallPolicyChangeProtection(bool value) { m_firewallPolicyChangeProtectionHasBeenSet = true; m_firewallPolicyChangeProtection = value; }
348 
356  inline CreateFirewallRequest& WithFirewallPolicyChangeProtection(bool value) { SetFirewallPolicyChangeProtection(value); return *this;}
357 
358 
362  inline const Aws::String& GetDescription() const{ return m_description; }
363 
367  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
368 
372  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
373 
377  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
378 
382  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
383 
387  inline CreateFirewallRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
388 
392  inline CreateFirewallRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
393 
397  inline CreateFirewallRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
398 
399 
403  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
404 
408  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
409 
413  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
414 
418  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
419 
423  inline CreateFirewallRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
424 
428  inline CreateFirewallRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
429 
433  inline CreateFirewallRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
434 
438  inline CreateFirewallRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
439 
440  private:
441 
442  Aws::String m_firewallName;
443  bool m_firewallNameHasBeenSet;
444 
445  Aws::String m_firewallPolicyArn;
446  bool m_firewallPolicyArnHasBeenSet;
447 
448  Aws::String m_vpcId;
449  bool m_vpcIdHasBeenSet;
450 
451  Aws::Vector<SubnetMapping> m_subnetMappings;
452  bool m_subnetMappingsHasBeenSet;
453 
454  bool m_deleteProtection;
455  bool m_deleteProtectionHasBeenSet;
456 
457  bool m_subnetChangeProtection;
458  bool m_subnetChangeProtectionHasBeenSet;
459 
460  bool m_firewallPolicyChangeProtection;
461  bool m_firewallPolicyChangeProtectionHasBeenSet;
462 
463  Aws::String m_description;
464  bool m_descriptionHasBeenSet;
465 
466  Aws::Vector<Tag> m_tags;
467  bool m_tagsHasBeenSet;
468  };
469 
470 } // namespace Model
471 } // namespace NetworkFirewall
472 } // namespace Aws
Aws::NetworkFirewall::Model::CreateFirewallRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateFirewallRequest.h:362
Aws::NetworkFirewall::Model::CreateFirewallRequest::AddTags
CreateFirewallRequest & AddTags(Tag &&value)
Definition: CreateFirewallRequest.h:438
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithTags
CreateFirewallRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateFirewallRequest.h:423
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: CreateFirewallRequest.h:164
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithFirewallName
CreateFirewallRequest & WithFirewallName(const Aws::String &value)
Definition: CreateFirewallRequest.h:74
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithFirewallPolicyArn
CreateFirewallRequest & WithFirewallPolicyArn(Aws::String &&value)
Definition: CreateFirewallRequest.h:129
Aws::NetworkFirewall::Model::CreateFirewallRequest::AddTags
CreateFirewallRequest & AddTags(const Tag &value)
Definition: CreateFirewallRequest.h:433
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithSubnetChangeProtection
CreateFirewallRequest & WithSubnetChangeProtection(bool value)
Definition: CreateFirewallRequest.h:319
Aws::NetworkFirewall::NetworkFirewallRequest
Definition: NetworkFirewallRequest.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
NetworkFirewallRequest.h
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetFirewallPolicyArn
void SetFirewallPolicyArn(const Aws::String &value)
Definition: CreateFirewallRequest.h:105
Aws::NetworkFirewall::Model::CreateFirewallRequest::FirewallPolicyArnHasBeenSet
bool FirewallPolicyArnHasBeenSet() const
Definition: CreateFirewallRequest.h:99
Aws::NetworkFirewall::Model::CreateFirewallRequest::FirewallNameHasBeenSet
bool FirewallNameHasBeenSet() const
Definition: CreateFirewallRequest.h:50
Aws::NetworkFirewall::Model::CreateFirewallRequest::SubnetMappingsHasBeenSet
bool SubnetMappingsHasBeenSet() const
Definition: CreateFirewallRequest.h:207
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetVpcId
void SetVpcId(const char *value)
Definition: CreateFirewallRequest.h:171
Aws::NetworkFirewall::Model::CreateFirewallRequest::GetFirewallPolicyArn
const Aws::String & GetFirewallPolicyArn() const
Definition: CreateFirewallRequest.h:93
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetDeleteProtection
void SetDeleteProtection(bool value)
Definition: CreateFirewallRequest.h:277
Aws::NetworkFirewall::Model::Tag
Definition: Tag.h:36
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateFirewallRequest.h:418
Aws::NetworkFirewall::Model::CreateFirewallRequest
Definition: CreateFirewallRequest.h:25
Aws::NetworkFirewall::Model::CreateFirewallRequest::DeleteProtectionHasBeenSet
bool DeleteProtectionHasBeenSet() const
Definition: CreateFirewallRequest.h:268
Aws::NetworkFirewall::Model::CreateFirewallRequest::GetVpcId
const Aws::String & GetVpcId() const
Definition: CreateFirewallRequest.h:143
Aws::NetworkFirewall::Model::CreateFirewallRequest::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: CreateFirewallRequest.h:150
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithVpcId
CreateFirewallRequest & WithVpcId(const char *value)
Definition: CreateFirewallRequest.h:192
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetFirewallPolicyArn
void SetFirewallPolicyArn(const char *value)
Definition: CreateFirewallRequest.h:117
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithDescription
CreateFirewallRequest & WithDescription(const Aws::String &value)
Definition: CreateFirewallRequest.h:387
AWSVector.h
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithFirewallName
CreateFirewallRequest & WithFirewallName(const char *value)
Definition: CreateFirewallRequest.h:86
Aws::NetworkFirewall::Model::CreateFirewallRequest::GetSubnetMappings
const Aws::Vector< SubnetMapping > & GetSubnetMappings() const
Definition: CreateFirewallRequest.h:200
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithFirewallPolicyArn
CreateFirewallRequest & WithFirewallPolicyArn(const Aws::String &value)
Definition: CreateFirewallRequest.h:123
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithTags
CreateFirewallRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateFirewallRequest.h:428
Aws::NetworkFirewall::Model::CreateFirewallRequest::GetFirewallName
const Aws::String & GetFirewallName() const
Definition: CreateFirewallRequest.h:44
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateFirewallRequest.h:413
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithVpcId
CreateFirewallRequest & WithVpcId(Aws::String &&value)
Definition: CreateFirewallRequest.h:185
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateFirewallRequest.h:382
Aws::NetworkFirewall::Model::CreateFirewallRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateFirewallRequest.h:408
Aws::NetworkFirewall::Model::CreateFirewallRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateFirewallRequest.h:377
Aws::NetworkFirewall::Model::CreateFirewallRequest::GetSubnetChangeProtection
bool GetSubnetChangeProtection() const
Definition: CreateFirewallRequest.h:295
Aws::NetworkFirewall::Model::CreateFirewallRequest::SubnetChangeProtectionHasBeenSet
bool SubnetChangeProtectionHasBeenSet() const
Definition: CreateFirewallRequest.h:303
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithDeleteProtection
CreateFirewallRequest & WithDeleteProtection(bool value)
Definition: CreateFirewallRequest.h:286
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithFirewallName
CreateFirewallRequest & WithFirewallName(Aws::String &&value)
Definition: CreateFirewallRequest.h:80
Aws::NetworkFirewall::Model::SubnetMapping
Definition: SubnetMapping.h:36
AWSString.h
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateFirewallRequest.h:372
Aws::NetworkFirewall::Model::CreateFirewallRequest::AddSubnetMappings
CreateFirewallRequest & AddSubnetMappings(SubnetMapping &&value)
Definition: CreateFirewallRequest.h:249
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetFirewallPolicyChangeProtection
void SetFirewallPolicyChangeProtection(bool value)
Definition: CreateFirewallRequest.h:347
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithSubnetMappings
CreateFirewallRequest & WithSubnetMappings(const Aws::Vector< SubnetMapping > &value)
Definition: CreateFirewallRequest.h:228
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetFirewallPolicyArn
void SetFirewallPolicyArn(Aws::String &&value)
Definition: CreateFirewallRequest.h:111
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetFirewallName
void SetFirewallName(Aws::String &&value)
Definition: CreateFirewallRequest.h:62
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetSubnetMappings
void SetSubnetMappings(const Aws::Vector< SubnetMapping > &value)
Definition: CreateFirewallRequest.h:214
Aws::NetworkFirewall::Model::CreateFirewallRequest::GetDeleteProtection
bool GetDeleteProtection() const
Definition: CreateFirewallRequest.h:259
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetSubnetChangeProtection
void SetSubnetChangeProtection(bool value)
Definition: CreateFirewallRequest.h:311
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetSubnetMappings
void SetSubnetMappings(Aws::Vector< SubnetMapping > &&value)
Definition: CreateFirewallRequest.h:221
AWS_NETWORKFIREWALL_API
#define AWS_NETWORKFIREWALL_API
Definition: NetworkFirewall_EXPORTS.h:28
Aws::NetworkFirewall::Model::CreateFirewallRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithVpcId
CreateFirewallRequest & WithVpcId(const Aws::String &value)
Definition: CreateFirewallRequest.h:178
Aws::NetworkFirewall::Model::CreateFirewallRequest::GetFirewallPolicyChangeProtection
bool GetFirewallPolicyChangeProtection() const
Definition: CreateFirewallRequest.h:329
Tag.h
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetFirewallName
void SetFirewallName(const Aws::String &value)
Definition: CreateFirewallRequest.h:56
Aws::NetworkFirewall::Model::CreateFirewallRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateFirewallRequest.h:367
Aws::NetworkFirewall::Model::CreateFirewallRequest::AddSubnetMappings
CreateFirewallRequest & AddSubnetMappings(const SubnetMapping &value)
Definition: CreateFirewallRequest.h:242
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithSubnetMappings
CreateFirewallRequest & WithSubnetMappings(Aws::Vector< SubnetMapping > &&value)
Definition: CreateFirewallRequest.h:235
Aws
Definition: AccessManagementClient.h:15
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: CreateFirewallRequest.h:157
Aws::NetworkFirewall::Model::CreateFirewallRequest::FirewallPolicyChangeProtectionHasBeenSet
bool FirewallPolicyChangeProtectionHasBeenSet() const
Definition: CreateFirewallRequest.h:338
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithFirewallPolicyChangeProtection
CreateFirewallRequest & WithFirewallPolicyChangeProtection(bool value)
Definition: CreateFirewallRequest.h:356
Aws::NetworkFirewall::Model::CreateFirewallRequest::SetFirewallName
void SetFirewallName(const char *value)
Definition: CreateFirewallRequest.h:68
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithFirewallPolicyArn
CreateFirewallRequest & WithFirewallPolicyArn(const char *value)
Definition: CreateFirewallRequest.h:135
Aws::NetworkFirewall::Model::CreateFirewallRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateFirewallRequest.h:403
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithDescription
CreateFirewallRequest & WithDescription(Aws::String &&value)
Definition: CreateFirewallRequest.h:392
SubnetMapping.h
Aws::NetworkFirewall::Model::CreateFirewallRequest::CreateFirewallRequest
CreateFirewallRequest()
NetworkFirewall_EXPORTS.h
Aws::NetworkFirewall::Model::CreateFirewallRequest::WithDescription
CreateFirewallRequest & WithDescription(const char *value)
Definition: CreateFirewallRequest.h:397
Aws::NetworkFirewall::Model::CreateFirewallRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateFirewallRequest.h:33