AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Firewall.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/network-firewall/model/EncryptionConfiguration.h>
11#include <aws/network-firewall/model/SubnetMapping.h>
12#include <aws/network-firewall/model/Tag.h>
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:
44 AWS_NETWORKFIREWALL_API Firewall();
45 AWS_NETWORKFIREWALL_API Firewall(Aws::Utils::Json::JsonView jsonValue);
46 AWS_NETWORKFIREWALL_API Firewall& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Aws::String& GetFirewallName() const{ return m_firewallName; }
56 inline bool FirewallNameHasBeenSet() const { return m_firewallNameHasBeenSet; }
57 inline void SetFirewallName(const Aws::String& value) { m_firewallNameHasBeenSet = true; m_firewallName = value; }
58 inline void SetFirewallName(Aws::String&& value) { m_firewallNameHasBeenSet = true; m_firewallName = std::move(value); }
59 inline void SetFirewallName(const char* value) { m_firewallNameHasBeenSet = true; m_firewallName.assign(value); }
60 inline Firewall& WithFirewallName(const Aws::String& value) { SetFirewallName(value); return *this;}
61 inline Firewall& WithFirewallName(Aws::String&& value) { SetFirewallName(std::move(value)); return *this;}
62 inline Firewall& WithFirewallName(const char* value) { SetFirewallName(value); return *this;}
64
66
69 inline const Aws::String& GetFirewallArn() const{ return m_firewallArn; }
70 inline bool FirewallArnHasBeenSet() const { return m_firewallArnHasBeenSet; }
71 inline void SetFirewallArn(const Aws::String& value) { m_firewallArnHasBeenSet = true; m_firewallArn = value; }
72 inline void SetFirewallArn(Aws::String&& value) { m_firewallArnHasBeenSet = true; m_firewallArn = std::move(value); }
73 inline void SetFirewallArn(const char* value) { m_firewallArnHasBeenSet = true; m_firewallArn.assign(value); }
74 inline Firewall& WithFirewallArn(const Aws::String& value) { SetFirewallArn(value); return *this;}
75 inline Firewall& WithFirewallArn(Aws::String&& value) { SetFirewallArn(std::move(value)); return *this;}
76 inline Firewall& WithFirewallArn(const char* value) { SetFirewallArn(value); return *this;}
78
80
86 inline const Aws::String& GetFirewallPolicyArn() const{ return m_firewallPolicyArn; }
87 inline bool FirewallPolicyArnHasBeenSet() const { return m_firewallPolicyArnHasBeenSet; }
88 inline void SetFirewallPolicyArn(const Aws::String& value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn = value; }
89 inline void SetFirewallPolicyArn(Aws::String&& value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn = std::move(value); }
90 inline void SetFirewallPolicyArn(const char* value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn.assign(value); }
91 inline Firewall& WithFirewallPolicyArn(const Aws::String& value) { SetFirewallPolicyArn(value); return *this;}
92 inline Firewall& WithFirewallPolicyArn(Aws::String&& value) { SetFirewallPolicyArn(std::move(value)); return *this;}
93 inline Firewall& WithFirewallPolicyArn(const char* value) { SetFirewallPolicyArn(value); return *this;}
95
97
100 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
101 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
102 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
103 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
104 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
105 inline Firewall& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
106 inline Firewall& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
107 inline Firewall& WithVpcId(const char* value) { SetVpcId(value); return *this;}
109
111
115 inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const{ return m_subnetMappings; }
116 inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
117 inline void SetSubnetMappings(const Aws::Vector<SubnetMapping>& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = value; }
118 inline void SetSubnetMappings(Aws::Vector<SubnetMapping>&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = std::move(value); }
119 inline Firewall& WithSubnetMappings(const Aws::Vector<SubnetMapping>& value) { SetSubnetMappings(value); return *this;}
120 inline Firewall& WithSubnetMappings(Aws::Vector<SubnetMapping>&& value) { SetSubnetMappings(std::move(value)); return *this;}
121 inline Firewall& AddSubnetMappings(const SubnetMapping& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(value); return *this; }
122 inline Firewall& AddSubnetMappings(SubnetMapping&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(std::move(value)); return *this; }
124
126
133 inline bool GetDeleteProtection() const{ return m_deleteProtection; }
134 inline bool DeleteProtectionHasBeenSet() const { return m_deleteProtectionHasBeenSet; }
135 inline void SetDeleteProtection(bool value) { m_deleteProtectionHasBeenSet = true; m_deleteProtection = value; }
136 inline Firewall& WithDeleteProtection(bool value) { SetDeleteProtection(value); return *this;}
138
140
146 inline bool GetSubnetChangeProtection() const{ return m_subnetChangeProtection; }
147 inline bool SubnetChangeProtectionHasBeenSet() const { return m_subnetChangeProtectionHasBeenSet; }
148 inline void SetSubnetChangeProtection(bool value) { m_subnetChangeProtectionHasBeenSet = true; m_subnetChangeProtection = value; }
149 inline Firewall& WithSubnetChangeProtection(bool value) { SetSubnetChangeProtection(value); return *this;}
151
153
160 inline bool GetFirewallPolicyChangeProtection() const{ return m_firewallPolicyChangeProtection; }
161 inline bool FirewallPolicyChangeProtectionHasBeenSet() const { return m_firewallPolicyChangeProtectionHasBeenSet; }
162 inline void SetFirewallPolicyChangeProtection(bool value) { m_firewallPolicyChangeProtectionHasBeenSet = true; m_firewallPolicyChangeProtection = value; }
165
167
170 inline const Aws::String& GetDescription() const{ return m_description; }
171 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
172 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
173 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
174 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
175 inline Firewall& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
176 inline Firewall& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
177 inline Firewall& WithDescription(const char* value) { SetDescription(value); return *this;}
179
181
184 inline const Aws::String& GetFirewallId() const{ return m_firewallId; }
185 inline bool FirewallIdHasBeenSet() const { return m_firewallIdHasBeenSet; }
186 inline void SetFirewallId(const Aws::String& value) { m_firewallIdHasBeenSet = true; m_firewallId = value; }
187 inline void SetFirewallId(Aws::String&& value) { m_firewallIdHasBeenSet = true; m_firewallId = std::move(value); }
188 inline void SetFirewallId(const char* value) { m_firewallIdHasBeenSet = true; m_firewallId.assign(value); }
189 inline Firewall& WithFirewallId(const Aws::String& value) { SetFirewallId(value); return *this;}
190 inline Firewall& WithFirewallId(Aws::String&& value) { SetFirewallId(std::move(value)); return *this;}
191 inline Firewall& WithFirewallId(const char* value) { SetFirewallId(value); return *this;}
193
195
198 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
199 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
200 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
201 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
202 inline Firewall& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
203 inline Firewall& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
204 inline Firewall& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
205 inline Firewall& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
207
209
213 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
214 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
215 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
216 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
220 private:
221
222 Aws::String m_firewallName;
223 bool m_firewallNameHasBeenSet = false;
224
225 Aws::String m_firewallArn;
226 bool m_firewallArnHasBeenSet = false;
227
228 Aws::String m_firewallPolicyArn;
229 bool m_firewallPolicyArnHasBeenSet = false;
230
231 Aws::String m_vpcId;
232 bool m_vpcIdHasBeenSet = false;
233
234 Aws::Vector<SubnetMapping> m_subnetMappings;
235 bool m_subnetMappingsHasBeenSet = false;
236
237 bool m_deleteProtection;
238 bool m_deleteProtectionHasBeenSet = false;
239
240 bool m_subnetChangeProtection;
241 bool m_subnetChangeProtectionHasBeenSet = false;
242
243 bool m_firewallPolicyChangeProtection;
244 bool m_firewallPolicyChangeProtectionHasBeenSet = false;
245
246 Aws::String m_description;
247 bool m_descriptionHasBeenSet = false;
248
249 Aws::String m_firewallId;
250 bool m_firewallIdHasBeenSet = false;
251
252 Aws::Vector<Tag> m_tags;
253 bool m_tagsHasBeenSet = false;
254
255 EncryptionConfiguration m_encryptionConfiguration;
256 bool m_encryptionConfigurationHasBeenSet = false;
257 };
258
259} // namespace Model
260} // namespace NetworkFirewall
261} // namespace Aws
const EncryptionConfiguration & GetEncryptionConfiguration() const
Definition Firewall.h:213
const Aws::String & GetFirewallPolicyArn() const
Definition Firewall.h:86
Firewall & WithVpcId(const Aws::String &value)
Definition Firewall.h:105
void SetVpcId(Aws::String &&value)
Definition Firewall.h:103
AWS_NETWORKFIREWALL_API Firewall & operator=(Aws::Utils::Json::JsonView jsonValue)
Firewall & AddTags(Tag &&value)
Definition Firewall.h:205
Firewall & WithDescription(Aws::String &&value)
Definition Firewall.h:176
const Aws::Vector< SubnetMapping > & GetSubnetMappings() const
Definition Firewall.h:115
void SetFirewallPolicyChangeProtection(bool value)
Definition Firewall.h:162
void SetFirewallPolicyArn(Aws::String &&value)
Definition Firewall.h:89
AWS_NETWORKFIREWALL_API Firewall()
void SetFirewallArn(Aws::String &&value)
Definition Firewall.h:72
void SetFirewallName(const Aws::String &value)
Definition Firewall.h:57
void SetTags(Aws::Vector< Tag > &&value)
Definition Firewall.h:201
Firewall & WithFirewallName(Aws::String &&value)
Definition Firewall.h:61
Firewall & AddTags(const Tag &value)
Definition Firewall.h:204
Firewall & WithTags(const Aws::Vector< Tag > &value)
Definition Firewall.h:202
Firewall & WithDeleteProtection(bool value)
Definition Firewall.h:136
void SetTags(const Aws::Vector< Tag > &value)
Definition Firewall.h:200
AWS_NETWORKFIREWALL_API Firewall(Aws::Utils::Json::JsonView jsonValue)
Firewall & WithSubnetMappings(Aws::Vector< SubnetMapping > &&value)
Definition Firewall.h:120
void SetDescription(Aws::String &&value)
Definition Firewall.h:173
const Aws::String & GetDescription() const
Definition Firewall.h:170
const Aws::String & GetFirewallArn() const
Definition Firewall.h:69
void SetFirewallId(Aws::String &&value)
Definition Firewall.h:187
Firewall & WithEncryptionConfiguration(EncryptionConfiguration &&value)
Definition Firewall.h:218
Firewall & AddSubnetMappings(const SubnetMapping &value)
Definition Firewall.h:121
void SetFirewallPolicyArn(const Aws::String &value)
Definition Firewall.h:88
Firewall & WithDescription(const Aws::String &value)
Definition Firewall.h:175
Firewall & WithTags(Aws::Vector< Tag > &&value)
Definition Firewall.h:203
void SetDescription(const char *value)
Definition Firewall.h:174
Firewall & WithFirewallArn(const Aws::String &value)
Definition Firewall.h:74
Firewall & WithSubnetMappings(const Aws::Vector< SubnetMapping > &value)
Definition Firewall.h:119
Firewall & WithSubnetChangeProtection(bool value)
Definition Firewall.h:149
Firewall & WithDescription(const char *value)
Definition Firewall.h:177
Firewall & WithEncryptionConfiguration(const EncryptionConfiguration &value)
Definition Firewall.h:217
Firewall & WithFirewallName(const Aws::String &value)
Definition Firewall.h:60
Firewall & WithVpcId(Aws::String &&value)
Definition Firewall.h:106
const Aws::String & GetFirewallId() const
Definition Firewall.h:184
void SetFirewallName(Aws::String &&value)
Definition Firewall.h:58
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
Definition Firewall.h:215
void SetFirewallArn(const Aws::String &value)
Definition Firewall.h:71
void SetFirewallName(const char *value)
Definition Firewall.h:59
const Aws::Vector< Tag > & GetTags() const
Definition Firewall.h:198
void SetSubnetChangeProtection(bool value)
Definition Firewall.h:148
Firewall & WithFirewallPolicyArn(const char *value)
Definition Firewall.h:93
Firewall & WithFirewallName(const char *value)
Definition Firewall.h:62
const Aws::String & GetFirewallName() const
Definition Firewall.h:55
void SetVpcId(const char *value)
Definition Firewall.h:104
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
Definition Firewall.h:216
Firewall & WithFirewallArn(Aws::String &&value)
Definition Firewall.h:75
Firewall & WithFirewallId(const char *value)
Definition Firewall.h:191
Firewall & WithFirewallPolicyArn(const Aws::String &value)
Definition Firewall.h:91
void SetFirewallArn(const char *value)
Definition Firewall.h:73
void SetFirewallPolicyArn(const char *value)
Definition Firewall.h:90
void SetSubnetMappings(Aws::Vector< SubnetMapping > &&value)
Definition Firewall.h:118
Firewall & WithFirewallPolicyArn(Aws::String &&value)
Definition Firewall.h:92
Firewall & WithVpcId(const char *value)
Definition Firewall.h:107
const Aws::String & GetVpcId() const
Definition Firewall.h:100
void SetFirewallId(const Aws::String &value)
Definition Firewall.h:186
Firewall & WithFirewallId(const Aws::String &value)
Definition Firewall.h:189
bool FirewallPolicyChangeProtectionHasBeenSet() const
Definition Firewall.h:161
Firewall & AddSubnetMappings(SubnetMapping &&value)
Definition Firewall.h:122
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
Firewall & WithFirewallArn(const char *value)
Definition Firewall.h:76
Firewall & WithFirewallPolicyChangeProtection(bool value)
Definition Firewall.h:163
void SetFirewallId(const char *value)
Definition Firewall.h:188
void SetVpcId(const Aws::String &value)
Definition Firewall.h:102
Firewall & WithFirewallId(Aws::String &&value)
Definition Firewall.h:190
void SetDescription(const Aws::String &value)
Definition Firewall.h:172
void SetSubnetMappings(const Aws::Vector< SubnetMapping > &value)
Definition Firewall.h:117
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue