AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
CreateFirewallRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/network-firewall/NetworkFirewallRequest.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
11#include <aws/network-firewall/model/AvailabilityZoneMapping.h>
12#include <aws/network-firewall/model/EnabledAnalysisType.h>
13#include <aws/network-firewall/model/EncryptionConfiguration.h>
14#include <aws/network-firewall/model/IgwFirewallConfiguration.h>
15#include <aws/network-firewall/model/NatGatewayCreateMapping.h>
16#include <aws/network-firewall/model/ProxySettings.h>
17#include <aws/network-firewall/model/SubnetMapping.h>
18#include <aws/network-firewall/model/Tag.h>
19#include <aws/network-firewall/model/TransparentFilteringNatScope.h>
20#include <aws/network-firewall/model/VpcEndpoint.h>
21
22#include <utility>
23
24namespace Aws {
25namespace NetworkFirewall {
26namespace Model {
27
31 public:
32 AWS_NETWORKFIREWALL_API CreateFirewallRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateFirewall"; }
39
40 AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override;
41
42 AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43
45
49 inline const Aws::String& GetFirewallName() const { return m_firewallName; }
50 inline bool FirewallNameHasBeenSet() const { return m_firewallNameHasBeenSet; }
51 template <typename FirewallNameT = Aws::String>
52 void SetFirewallName(FirewallNameT&& value) {
53 m_firewallNameHasBeenSet = true;
54 m_firewallName = std::forward<FirewallNameT>(value);
55 }
56 template <typename FirewallNameT = Aws::String>
57 CreateFirewallRequest& WithFirewallName(FirewallNameT&& value) {
58 SetFirewallName(std::forward<FirewallNameT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetFirewallPolicyArn() const { return m_firewallPolicyArn; }
69 inline bool FirewallPolicyArnHasBeenSet() const { return m_firewallPolicyArnHasBeenSet; }
70 template <typename FirewallPolicyArnT = Aws::String>
71 void SetFirewallPolicyArn(FirewallPolicyArnT&& value) {
72 m_firewallPolicyArnHasBeenSet = true;
73 m_firewallPolicyArn = std::forward<FirewallPolicyArnT>(value);
74 }
75 template <typename FirewallPolicyArnT = Aws::String>
76 CreateFirewallRequest& WithFirewallPolicyArn(FirewallPolicyArnT&& value) {
77 SetFirewallPolicyArn(std::forward<FirewallPolicyArnT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::String& GetVpcId() const { return m_vpcId; }
89 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
90 template <typename VpcIdT = Aws::String>
91 void SetVpcId(VpcIdT&& value) {
92 m_vpcIdHasBeenSet = true;
93 m_vpcId = std::forward<VpcIdT>(value);
94 }
95 template <typename VpcIdT = Aws::String>
97 SetVpcId(std::forward<VpcIdT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const { return m_subnetMappings; }
109 inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
110 template <typename SubnetMappingsT = Aws::Vector<SubnetMapping>>
111 void SetSubnetMappings(SubnetMappingsT&& value) {
112 m_subnetMappingsHasBeenSet = true;
113 m_subnetMappings = std::forward<SubnetMappingsT>(value);
114 }
115 template <typename SubnetMappingsT = Aws::Vector<SubnetMapping>>
116 CreateFirewallRequest& WithSubnetMappings(SubnetMappingsT&& value) {
117 SetSubnetMappings(std::forward<SubnetMappingsT>(value));
118 return *this;
119 }
120 template <typename SubnetMappingsT = SubnetMapping>
121 CreateFirewallRequest& AddSubnetMappings(SubnetMappingsT&& value) {
122 m_subnetMappingsHasBeenSet = true;
123 m_subnetMappings.emplace_back(std::forward<SubnetMappingsT>(value));
124 return *this;
125 }
127
129
136 inline bool GetDeleteProtection() const { return m_deleteProtection; }
137 inline bool DeleteProtectionHasBeenSet() const { return m_deleteProtectionHasBeenSet; }
138 inline void SetDeleteProtection(bool value) {
139 m_deleteProtectionHasBeenSet = true;
140 m_deleteProtection = value;
141 }
143 SetDeleteProtection(value);
144 return *this;
145 }
147
149
155 inline bool GetSubnetChangeProtection() const { return m_subnetChangeProtection; }
156 inline bool SubnetChangeProtectionHasBeenSet() const { return m_subnetChangeProtectionHasBeenSet; }
157 inline void SetSubnetChangeProtection(bool value) {
158 m_subnetChangeProtectionHasBeenSet = true;
159 m_subnetChangeProtection = value;
160 }
163 return *this;
164 }
166
168
175 inline bool GetFirewallPolicyChangeProtection() const { return m_firewallPolicyChangeProtection; }
176 inline bool FirewallPolicyChangeProtectionHasBeenSet() const { return m_firewallPolicyChangeProtectionHasBeenSet; }
177 inline void SetFirewallPolicyChangeProtection(bool value) {
178 m_firewallPolicyChangeProtectionHasBeenSet = true;
179 m_firewallPolicyChangeProtection = value;
180 }
183 return *this;
184 }
186
188
191 inline const Aws::String& GetDescription() const { return m_description; }
192 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
193 template <typename DescriptionT = Aws::String>
194 void SetDescription(DescriptionT&& value) {
195 m_descriptionHasBeenSet = true;
196 m_description = std::forward<DescriptionT>(value);
197 }
198 template <typename DescriptionT = Aws::String>
199 CreateFirewallRequest& WithDescription(DescriptionT&& value) {
200 SetDescription(std::forward<DescriptionT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
210 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
211 template <typename TagsT = Aws::Vector<Tag>>
212 void SetTags(TagsT&& value) {
213 m_tagsHasBeenSet = true;
214 m_tags = std::forward<TagsT>(value);
215 }
216 template <typename TagsT = Aws::Vector<Tag>>
218 SetTags(std::forward<TagsT>(value));
219 return *this;
220 }
221 template <typename TagsT = Tag>
223 m_tagsHasBeenSet = true;
224 m_tags.emplace_back(std::forward<TagsT>(value));
225 return *this;
226 }
228
230
234 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
235 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
236 template <typename EncryptionConfigurationT = EncryptionConfiguration>
237 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
238 m_encryptionConfigurationHasBeenSet = true;
239 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
240 }
241 template <typename EncryptionConfigurationT = EncryptionConfiguration>
242 CreateFirewallRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
243 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
244 return *this;
245 }
247
249
253 inline const Aws::Vector<EnabledAnalysisType>& GetEnabledAnalysisTypes() const { return m_enabledAnalysisTypes; }
254 inline bool EnabledAnalysisTypesHasBeenSet() const { return m_enabledAnalysisTypesHasBeenSet; }
255 template <typename EnabledAnalysisTypesT = Aws::Vector<EnabledAnalysisType>>
256 void SetEnabledAnalysisTypes(EnabledAnalysisTypesT&& value) {
257 m_enabledAnalysisTypesHasBeenSet = true;
258 m_enabledAnalysisTypes = std::forward<EnabledAnalysisTypesT>(value);
259 }
260 template <typename EnabledAnalysisTypesT = Aws::Vector<EnabledAnalysisType>>
261 CreateFirewallRequest& WithEnabledAnalysisTypes(EnabledAnalysisTypesT&& value) {
262 SetEnabledAnalysisTypes(std::forward<EnabledAnalysisTypesT>(value));
263 return *this;
264 }
266 m_enabledAnalysisTypesHasBeenSet = true;
267 m_enabledAnalysisTypes.push_back(value);
268 return *this;
269 }
271
273
286 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
287 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
288 template <typename TransitGatewayIdT = Aws::String>
289 void SetTransitGatewayId(TransitGatewayIdT&& value) {
290 m_transitGatewayIdHasBeenSet = true;
291 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
292 }
293 template <typename TransitGatewayIdT = Aws::String>
294 CreateFirewallRequest& WithTransitGatewayId(TransitGatewayIdT&& value) {
295 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
296 return *this;
297 }
299
301
311 inline const Aws::Vector<AvailabilityZoneMapping>& GetAvailabilityZoneMappings() const { return m_availabilityZoneMappings; }
312 inline bool AvailabilityZoneMappingsHasBeenSet() const { return m_availabilityZoneMappingsHasBeenSet; }
313 template <typename AvailabilityZoneMappingsT = Aws::Vector<AvailabilityZoneMapping>>
314 void SetAvailabilityZoneMappings(AvailabilityZoneMappingsT&& value) {
315 m_availabilityZoneMappingsHasBeenSet = true;
316 m_availabilityZoneMappings = std::forward<AvailabilityZoneMappingsT>(value);
317 }
318 template <typename AvailabilityZoneMappingsT = Aws::Vector<AvailabilityZoneMapping>>
319 CreateFirewallRequest& WithAvailabilityZoneMappings(AvailabilityZoneMappingsT&& value) {
320 SetAvailabilityZoneMappings(std::forward<AvailabilityZoneMappingsT>(value));
321 return *this;
322 }
323 template <typename AvailabilityZoneMappingsT = AvailabilityZoneMapping>
324 CreateFirewallRequest& AddAvailabilityZoneMappings(AvailabilityZoneMappingsT&& value) {
325 m_availabilityZoneMappingsHasBeenSet = true;
326 m_availabilityZoneMappings.emplace_back(std::forward<AvailabilityZoneMappingsT>(value));
327 return *this;
328 }
330
332
339 inline bool GetAvailabilityZoneChangeProtection() const { return m_availabilityZoneChangeProtection; }
340 inline bool AvailabilityZoneChangeProtectionHasBeenSet() const { return m_availabilityZoneChangeProtectionHasBeenSet; }
341 inline void SetAvailabilityZoneChangeProtection(bool value) {
342 m_availabilityZoneChangeProtectionHasBeenSet = true;
343 m_availabilityZoneChangeProtection = value;
344 }
350
352
363 inline const IgwFirewallConfiguration& GetIgwFirewallConfiguration() const { return m_igwFirewallConfiguration; }
364 inline bool IgwFirewallConfigurationHasBeenSet() const { return m_igwFirewallConfigurationHasBeenSet; }
365 template <typename IgwFirewallConfigurationT = IgwFirewallConfiguration>
366 void SetIgwFirewallConfiguration(IgwFirewallConfigurationT&& value) {
367 m_igwFirewallConfigurationHasBeenSet = true;
368 m_igwFirewallConfiguration = std::forward<IgwFirewallConfigurationT>(value);
369 }
370 template <typename IgwFirewallConfigurationT = IgwFirewallConfiguration>
371 CreateFirewallRequest& WithIgwFirewallConfiguration(IgwFirewallConfigurationT&& value) {
372 SetIgwFirewallConfiguration(std::forward<IgwFirewallConfigurationT>(value));
373 return *this;
374 }
376
378
395 inline const Aws::Vector<NatGatewayCreateMapping>& GetNatGatewayCreateMappings() const { return m_natGatewayCreateMappings; }
396 inline bool NatGatewayCreateMappingsHasBeenSet() const { return m_natGatewayCreateMappingsHasBeenSet; }
397 template <typename NatGatewayCreateMappingsT = Aws::Vector<NatGatewayCreateMapping>>
398 void SetNatGatewayCreateMappings(NatGatewayCreateMappingsT&& value) {
399 m_natGatewayCreateMappingsHasBeenSet = true;
400 m_natGatewayCreateMappings = std::forward<NatGatewayCreateMappingsT>(value);
401 }
402 template <typename NatGatewayCreateMappingsT = Aws::Vector<NatGatewayCreateMapping>>
403 CreateFirewallRequest& WithNatGatewayCreateMappings(NatGatewayCreateMappingsT&& value) {
404 SetNatGatewayCreateMappings(std::forward<NatGatewayCreateMappingsT>(value));
405 return *this;
406 }
407 template <typename NatGatewayCreateMappingsT = NatGatewayCreateMapping>
408 CreateFirewallRequest& AddNatGatewayCreateMappings(NatGatewayCreateMappingsT&& value) {
409 m_natGatewayCreateMappingsHasBeenSet = true;
410 m_natGatewayCreateMappings.emplace_back(std::forward<NatGatewayCreateMappingsT>(value));
411 return *this;
412 }
414
416
423 inline const ProxySettings& GetProxySettings() const { return m_proxySettings; }
424 inline bool ProxySettingsHasBeenSet() const { return m_proxySettingsHasBeenSet; }
425 template <typename ProxySettingsT = ProxySettings>
426 void SetProxySettings(ProxySettingsT&& value) {
427 m_proxySettingsHasBeenSet = true;
428 m_proxySettings = std::forward<ProxySettingsT>(value);
429 }
430 template <typename ProxySettingsT = ProxySettings>
431 CreateFirewallRequest& WithProxySettings(ProxySettingsT&& value) {
432 SetProxySettings(std::forward<ProxySettingsT>(value));
433 return *this;
434 }
436
438
448 inline const VpcEndpoint& GetVpcEndpoint() const { return m_vpcEndpoint; }
449 inline bool VpcEndpointHasBeenSet() const { return m_vpcEndpointHasBeenSet; }
450 template <typename VpcEndpointT = VpcEndpoint>
451 void SetVpcEndpoint(VpcEndpointT&& value) {
452 m_vpcEndpointHasBeenSet = true;
453 m_vpcEndpoint = std::forward<VpcEndpointT>(value);
454 }
455 template <typename VpcEndpointT = VpcEndpoint>
456 CreateFirewallRequest& WithVpcEndpoint(VpcEndpointT&& value) {
457 SetVpcEndpoint(std::forward<VpcEndpointT>(value));
458 return *this;
459 }
461
463
473 inline TransparentFilteringNatScope GetTransparentFilteringNatScope() const { return m_transparentFilteringNatScope; }
474 inline bool TransparentFilteringNatScopeHasBeenSet() const { return m_transparentFilteringNatScopeHasBeenSet; }
476 m_transparentFilteringNatScopeHasBeenSet = true;
477 m_transparentFilteringNatScope = value;
478 }
484 private:
485 Aws::String m_firewallName;
486
487 Aws::String m_firewallPolicyArn;
488
489 Aws::String m_vpcId;
490
491 Aws::Vector<SubnetMapping> m_subnetMappings;
492
493 bool m_deleteProtection{false};
494
495 bool m_subnetChangeProtection{false};
496
497 bool m_firewallPolicyChangeProtection{false};
498
499 Aws::String m_description;
500
501 Aws::Vector<Tag> m_tags;
502
503 EncryptionConfiguration m_encryptionConfiguration;
504
505 Aws::Vector<EnabledAnalysisType> m_enabledAnalysisTypes;
506
507 Aws::String m_transitGatewayId;
508
509 Aws::Vector<AvailabilityZoneMapping> m_availabilityZoneMappings;
510
511 bool m_availabilityZoneChangeProtection{false};
512
513 IgwFirewallConfiguration m_igwFirewallConfiguration;
514
515 Aws::Vector<NatGatewayCreateMapping> m_natGatewayCreateMappings;
516
517 ProxySettings m_proxySettings;
518
519 VpcEndpoint m_vpcEndpoint;
520
522 bool m_firewallNameHasBeenSet = false;
523 bool m_firewallPolicyArnHasBeenSet = false;
524 bool m_vpcIdHasBeenSet = false;
525 bool m_subnetMappingsHasBeenSet = false;
526 bool m_deleteProtectionHasBeenSet = false;
527 bool m_subnetChangeProtectionHasBeenSet = false;
528 bool m_firewallPolicyChangeProtectionHasBeenSet = false;
529 bool m_descriptionHasBeenSet = false;
530 bool m_tagsHasBeenSet = false;
531 bool m_encryptionConfigurationHasBeenSet = false;
532 bool m_enabledAnalysisTypesHasBeenSet = false;
533 bool m_transitGatewayIdHasBeenSet = false;
534 bool m_availabilityZoneMappingsHasBeenSet = false;
535 bool m_availabilityZoneChangeProtectionHasBeenSet = false;
536 bool m_igwFirewallConfigurationHasBeenSet = false;
537 bool m_natGatewayCreateMappingsHasBeenSet = false;
538 bool m_proxySettingsHasBeenSet = false;
539 bool m_vpcEndpointHasBeenSet = false;
540 bool m_transparentFilteringNatScopeHasBeenSet = false;
541};
542
543} // namespace Model
544} // namespace NetworkFirewall
545} // namespace Aws
CreateFirewallRequest & AddAvailabilityZoneMappings(AvailabilityZoneMappingsT &&value)
const IgwFirewallConfiguration & GetIgwFirewallConfiguration() const
CreateFirewallRequest & WithNatGatewayCreateMappings(NatGatewayCreateMappingsT &&value)
CreateFirewallRequest & WithTransparentFilteringNatScope(TransparentFilteringNatScope value)
CreateFirewallRequest & WithTags(TagsT &&value)
const Aws::Vector< SubnetMapping > & GetSubnetMappings() const
CreateFirewallRequest & WithDescription(DescriptionT &&value)
TransparentFilteringNatScope GetTransparentFilteringNatScope() const
CreateFirewallRequest & WithFirewallPolicyChangeProtection(bool value)
CreateFirewallRequest & WithEnabledAnalysisTypes(EnabledAnalysisTypesT &&value)
CreateFirewallRequest & WithAvailabilityZoneMappings(AvailabilityZoneMappingsT &&value)
CreateFirewallRequest & WithDeleteProtection(bool value)
AWS_NETWORKFIREWALL_API CreateFirewallRequest()=default
CreateFirewallRequest & AddNatGatewayCreateMappings(NatGatewayCreateMappingsT &&value)
CreateFirewallRequest & AddEnabledAnalysisTypes(EnabledAnalysisType value)
CreateFirewallRequest & WithTransitGatewayId(TransitGatewayIdT &&value)
CreateFirewallRequest & WithSubnetChangeProtection(bool value)
CreateFirewallRequest & AddSubnetMappings(SubnetMappingsT &&value)
CreateFirewallRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
void SetAvailabilityZoneMappings(AvailabilityZoneMappingsT &&value)
void SetEnabledAnalysisTypes(EnabledAnalysisTypesT &&value)
CreateFirewallRequest & WithIgwFirewallConfiguration(IgwFirewallConfigurationT &&value)
CreateFirewallRequest & WithProxySettings(ProxySettingsT &&value)
void SetTransparentFilteringNatScope(TransparentFilteringNatScope value)
const Aws::Vector< EnabledAnalysisType > & GetEnabledAnalysisTypes() const
CreateFirewallRequest & WithSubnetMappings(SubnetMappingsT &&value)
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetNatGatewayCreateMappings(NatGatewayCreateMappingsT &&value)
virtual const char * GetServiceRequestName() const override
const EncryptionConfiguration & GetEncryptionConfiguration() const
CreateFirewallRequest & WithFirewallPolicyArn(FirewallPolicyArnT &&value)
CreateFirewallRequest & WithAvailabilityZoneChangeProtection(bool value)
const Aws::Vector< NatGatewayCreateMapping > & GetNatGatewayCreateMappings() const
const Aws::Vector< AvailabilityZoneMapping > & GetAvailabilityZoneMappings() const
CreateFirewallRequest & WithVpcId(VpcIdT &&value)
void SetIgwFirewallConfiguration(IgwFirewallConfigurationT &&value)
CreateFirewallRequest & WithFirewallName(FirewallNameT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateFirewallRequest & WithVpcEndpoint(VpcEndpointT &&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