AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
AssociateSubnetsRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace NetworkFirewall
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AssociateSubnets"; }
33
35
37
38
53 inline const Aws::String& GetUpdateToken() const{ return m_updateToken; }
54
69 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
70
85 inline void SetUpdateToken(const Aws::String& value) { m_updateTokenHasBeenSet = true; m_updateToken = value; }
86
101 inline void SetUpdateToken(Aws::String&& value) { m_updateTokenHasBeenSet = true; m_updateToken = std::move(value); }
102
117 inline void SetUpdateToken(const char* value) { m_updateTokenHasBeenSet = true; m_updateToken.assign(value); }
118
133 inline AssociateSubnetsRequest& WithUpdateToken(const Aws::String& value) { SetUpdateToken(value); return *this;}
134
149 inline AssociateSubnetsRequest& WithUpdateToken(Aws::String&& value) { SetUpdateToken(std::move(value)); return *this;}
150
165 inline AssociateSubnetsRequest& WithUpdateToken(const char* value) { SetUpdateToken(value); return *this;}
166
167
172 inline const Aws::String& GetFirewallArn() const{ return m_firewallArn; }
173
178 inline bool FirewallArnHasBeenSet() const { return m_firewallArnHasBeenSet; }
179
184 inline void SetFirewallArn(const Aws::String& value) { m_firewallArnHasBeenSet = true; m_firewallArn = value; }
185
190 inline void SetFirewallArn(Aws::String&& value) { m_firewallArnHasBeenSet = true; m_firewallArn = std::move(value); }
191
196 inline void SetFirewallArn(const char* value) { m_firewallArnHasBeenSet = true; m_firewallArn.assign(value); }
197
202 inline AssociateSubnetsRequest& WithFirewallArn(const Aws::String& value) { SetFirewallArn(value); return *this;}
203
208 inline AssociateSubnetsRequest& WithFirewallArn(Aws::String&& value) { SetFirewallArn(std::move(value)); return *this;}
209
214 inline AssociateSubnetsRequest& WithFirewallArn(const char* value) { SetFirewallArn(value); return *this;}
215
216
222 inline const Aws::String& GetFirewallName() const{ return m_firewallName; }
223
229 inline bool FirewallNameHasBeenSet() const { return m_firewallNameHasBeenSet; }
230
236 inline void SetFirewallName(const Aws::String& value) { m_firewallNameHasBeenSet = true; m_firewallName = value; }
237
243 inline void SetFirewallName(Aws::String&& value) { m_firewallNameHasBeenSet = true; m_firewallName = std::move(value); }
244
250 inline void SetFirewallName(const char* value) { m_firewallNameHasBeenSet = true; m_firewallName.assign(value); }
251
257 inline AssociateSubnetsRequest& WithFirewallName(const Aws::String& value) { SetFirewallName(value); return *this;}
258
264 inline AssociateSubnetsRequest& WithFirewallName(Aws::String&& value) { SetFirewallName(std::move(value)); return *this;}
265
271 inline AssociateSubnetsRequest& WithFirewallName(const char* value) { SetFirewallName(value); return *this;}
272
273
277 inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const{ return m_subnetMappings; }
278
282 inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
283
287 inline void SetSubnetMappings(const Aws::Vector<SubnetMapping>& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = value; }
288
292 inline void SetSubnetMappings(Aws::Vector<SubnetMapping>&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = std::move(value); }
293
298
303
307 inline AssociateSubnetsRequest& AddSubnetMappings(const SubnetMapping& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(value); return *this; }
308
312 inline AssociateSubnetsRequest& AddSubnetMappings(SubnetMapping&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(std::move(value)); return *this; }
313
314 private:
315
316 Aws::String m_updateToken;
317 bool m_updateTokenHasBeenSet = false;
318
319 Aws::String m_firewallArn;
320 bool m_firewallArnHasBeenSet = false;
321
322 Aws::String m_firewallName;
323 bool m_firewallNameHasBeenSet = false;
324
325 Aws::Vector<SubnetMapping> m_subnetMappings;
326 bool m_subnetMappingsHasBeenSet = false;
327 };
328
329} // namespace Model
330} // namespace NetworkFirewall
331} // namespace Aws
#define AWS_NETWORKFIREWALL_API
AssociateSubnetsRequest & WithSubnetMappings(Aws::Vector< SubnetMapping > &&value)
virtual const char * GetServiceRequestName() const override
AssociateSubnetsRequest & WithUpdateToken(Aws::String &&value)
AssociateSubnetsRequest & WithFirewallName(const char *value)
AssociateSubnetsRequest & WithFirewallArn(Aws::String &&value)
AssociateSubnetsRequest & WithFirewallArn(const Aws::String &value)
void SetSubnetMappings(const Aws::Vector< SubnetMapping > &value)
AssociateSubnetsRequest & WithSubnetMappings(const Aws::Vector< SubnetMapping > &value)
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociateSubnetsRequest & WithFirewallArn(const char *value)
void SetSubnetMappings(Aws::Vector< SubnetMapping > &&value)
const Aws::Vector< SubnetMapping > & GetSubnetMappings() const
AssociateSubnetsRequest & AddSubnetMappings(SubnetMapping &&value)
AssociateSubnetsRequest & WithUpdateToken(const Aws::String &value)
AssociateSubnetsRequest & WithFirewallName(const Aws::String &value)
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
AssociateSubnetsRequest & AddSubnetMappings(const SubnetMapping &value)
AssociateSubnetsRequest & WithFirewallName(Aws::String &&value)
AssociateSubnetsRequest & WithUpdateToken(const char *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