AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateSubnetsRequest.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/SubnetMapping.h>
12#include <utility>
13
14namespace Aws
15{
16namespace NetworkFirewall
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_NETWORKFIREWALL_API AssociateSubnetsRequest();
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
34 AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override;
35
36 AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
54 inline const Aws::String& GetUpdateToken() const{ return m_updateToken; }
55 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
56 inline void SetUpdateToken(const Aws::String& value) { m_updateTokenHasBeenSet = true; m_updateToken = value; }
57 inline void SetUpdateToken(Aws::String&& value) { m_updateTokenHasBeenSet = true; m_updateToken = std::move(value); }
58 inline void SetUpdateToken(const char* value) { m_updateTokenHasBeenSet = true; m_updateToken.assign(value); }
59 inline AssociateSubnetsRequest& WithUpdateToken(const Aws::String& value) { SetUpdateToken(value); return *this;}
60 inline AssociateSubnetsRequest& WithUpdateToken(Aws::String&& value) { SetUpdateToken(std::move(value)); return *this;}
61 inline AssociateSubnetsRequest& WithUpdateToken(const char* value) { SetUpdateToken(value); return *this;}
63
65
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 AssociateSubnetsRequest& WithFirewallArn(const Aws::String& value) { SetFirewallArn(value); return *this;}
75 inline AssociateSubnetsRequest& WithFirewallArn(Aws::String&& value) { SetFirewallArn(std::move(value)); return *this;}
76 inline AssociateSubnetsRequest& WithFirewallArn(const char* value) { SetFirewallArn(value); return *this;}
78
80
85 inline const Aws::String& GetFirewallName() const{ return m_firewallName; }
86 inline bool FirewallNameHasBeenSet() const { return m_firewallNameHasBeenSet; }
87 inline void SetFirewallName(const Aws::String& value) { m_firewallNameHasBeenSet = true; m_firewallName = value; }
88 inline void SetFirewallName(Aws::String&& value) { m_firewallNameHasBeenSet = true; m_firewallName = std::move(value); }
89 inline void SetFirewallName(const char* value) { m_firewallNameHasBeenSet = true; m_firewallName.assign(value); }
90 inline AssociateSubnetsRequest& WithFirewallName(const Aws::String& value) { SetFirewallName(value); return *this;}
91 inline AssociateSubnetsRequest& WithFirewallName(Aws::String&& value) { SetFirewallName(std::move(value)); return *this;}
92 inline AssociateSubnetsRequest& WithFirewallName(const char* value) { SetFirewallName(value); return *this;}
94
96
99 inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const{ return m_subnetMappings; }
100 inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
101 inline void SetSubnetMappings(const Aws::Vector<SubnetMapping>& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = value; }
102 inline void SetSubnetMappings(Aws::Vector<SubnetMapping>&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = std::move(value); }
105 inline AssociateSubnetsRequest& AddSubnetMappings(const SubnetMapping& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(value); return *this; }
106 inline AssociateSubnetsRequest& AddSubnetMappings(SubnetMapping&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(std::move(value)); return *this; }
108 private:
109
110 Aws::String m_updateToken;
111 bool m_updateTokenHasBeenSet = false;
112
113 Aws::String m_firewallArn;
114 bool m_firewallArnHasBeenSet = false;
115
116 Aws::String m_firewallName;
117 bool m_firewallNameHasBeenSet = false;
118
119 Aws::Vector<SubnetMapping> m_subnetMappings;
120 bool m_subnetMappingsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace NetworkFirewall
125} // namespace Aws
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