AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFirewallRequest.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/network-firewall/NetworkFirewallRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/network-firewall/model/EncryptionConfiguration.h>
12#include <aws/network-firewall/model/SubnetMapping.h>
13#include <aws/network-firewall/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace NetworkFirewall
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_NETWORKFIREWALL_API CreateFirewallRequest();
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
36 AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override;
37
38 AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetFirewallName() const{ return m_firewallName; }
47 inline bool FirewallNameHasBeenSet() const { return m_firewallNameHasBeenSet; }
48 inline void SetFirewallName(const Aws::String& value) { m_firewallNameHasBeenSet = true; m_firewallName = value; }
49 inline void SetFirewallName(Aws::String&& value) { m_firewallNameHasBeenSet = true; m_firewallName = std::move(value); }
50 inline void SetFirewallName(const char* value) { m_firewallNameHasBeenSet = true; m_firewallName.assign(value); }
51 inline CreateFirewallRequest& WithFirewallName(const Aws::String& value) { SetFirewallName(value); return *this;}
52 inline CreateFirewallRequest& WithFirewallName(Aws::String&& value) { SetFirewallName(std::move(value)); return *this;}
53 inline CreateFirewallRequest& WithFirewallName(const char* value) { SetFirewallName(value); return *this;}
55
57
61 inline const Aws::String& GetFirewallPolicyArn() const{ return m_firewallPolicyArn; }
62 inline bool FirewallPolicyArnHasBeenSet() const { return m_firewallPolicyArnHasBeenSet; }
63 inline void SetFirewallPolicyArn(const Aws::String& value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn = value; }
64 inline void SetFirewallPolicyArn(Aws::String&& value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn = std::move(value); }
65 inline void SetFirewallPolicyArn(const char* value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn.assign(value); }
66 inline CreateFirewallRequest& WithFirewallPolicyArn(const Aws::String& value) { SetFirewallPolicyArn(value); return *this;}
67 inline CreateFirewallRequest& WithFirewallPolicyArn(Aws::String&& value) { SetFirewallPolicyArn(std::move(value)); return *this;}
68 inline CreateFirewallRequest& WithFirewallPolicyArn(const char* value) { SetFirewallPolicyArn(value); return *this;}
70
72
77 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
78 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
79 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
80 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
81 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
82 inline CreateFirewallRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
83 inline CreateFirewallRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
84 inline CreateFirewallRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
86
88
93 inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const{ return m_subnetMappings; }
94 inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
95 inline void SetSubnetMappings(const Aws::Vector<SubnetMapping>& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = value; }
96 inline void SetSubnetMappings(Aws::Vector<SubnetMapping>&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = std::move(value); }
98 inline CreateFirewallRequest& WithSubnetMappings(Aws::Vector<SubnetMapping>&& value) { SetSubnetMappings(std::move(value)); return *this;}
99 inline CreateFirewallRequest& AddSubnetMappings(const SubnetMapping& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(value); return *this; }
100 inline CreateFirewallRequest& AddSubnetMappings(SubnetMapping&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(std::move(value)); return *this; }
102
104
111 inline bool GetDeleteProtection() const{ return m_deleteProtection; }
112 inline bool DeleteProtectionHasBeenSet() const { return m_deleteProtectionHasBeenSet; }
113 inline void SetDeleteProtection(bool value) { m_deleteProtectionHasBeenSet = true; m_deleteProtection = value; }
114 inline CreateFirewallRequest& WithDeleteProtection(bool value) { SetDeleteProtection(value); return *this;}
116
118
124 inline bool GetSubnetChangeProtection() const{ return m_subnetChangeProtection; }
125 inline bool SubnetChangeProtectionHasBeenSet() const { return m_subnetChangeProtectionHasBeenSet; }
126 inline void SetSubnetChangeProtection(bool value) { m_subnetChangeProtectionHasBeenSet = true; m_subnetChangeProtection = value; }
129
131
138 inline bool GetFirewallPolicyChangeProtection() const{ return m_firewallPolicyChangeProtection; }
139 inline bool FirewallPolicyChangeProtectionHasBeenSet() const { return m_firewallPolicyChangeProtectionHasBeenSet; }
140 inline void SetFirewallPolicyChangeProtection(bool value) { m_firewallPolicyChangeProtectionHasBeenSet = true; m_firewallPolicyChangeProtection = value; }
143
145
148 inline const Aws::String& GetDescription() const{ return m_description; }
149 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
150 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
151 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
152 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
153 inline CreateFirewallRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
154 inline CreateFirewallRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
155 inline CreateFirewallRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
157
159
162 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
163 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
164 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
165 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
166 inline CreateFirewallRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
167 inline CreateFirewallRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
168 inline CreateFirewallRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
169 inline CreateFirewallRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
171
173
177 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
178 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
179 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
180 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
184 private:
185
186 Aws::String m_firewallName;
187 bool m_firewallNameHasBeenSet = false;
188
189 Aws::String m_firewallPolicyArn;
190 bool m_firewallPolicyArnHasBeenSet = false;
191
192 Aws::String m_vpcId;
193 bool m_vpcIdHasBeenSet = false;
194
195 Aws::Vector<SubnetMapping> m_subnetMappings;
196 bool m_subnetMappingsHasBeenSet = false;
197
198 bool m_deleteProtection;
199 bool m_deleteProtectionHasBeenSet = false;
200
201 bool m_subnetChangeProtection;
202 bool m_subnetChangeProtectionHasBeenSet = false;
203
204 bool m_firewallPolicyChangeProtection;
205 bool m_firewallPolicyChangeProtectionHasBeenSet = false;
206
207 Aws::String m_description;
208 bool m_descriptionHasBeenSet = false;
209
210 Aws::Vector<Tag> m_tags;
211 bool m_tagsHasBeenSet = false;
212
213 EncryptionConfiguration m_encryptionConfiguration;
214 bool m_encryptionConfigurationHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace NetworkFirewall
219} // namespace Aws
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