AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateNatGatewayRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/ConnectivityType.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
26 {
27 public:
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 "CreateNatGateway"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
50 inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
51 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
52 inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
53 inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
54 inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
55 inline CreateNatGatewayRequest& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
56 inline CreateNatGatewayRequest& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
57 inline CreateNatGatewayRequest& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
59
61
67 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
68 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
69 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
70 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
71 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
72 inline CreateNatGatewayRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
73 inline CreateNatGatewayRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
74 inline CreateNatGatewayRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
76
78
84 inline bool GetDryRun() const{ return m_dryRun; }
85 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
86 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
87 inline CreateNatGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
89
91
94 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
95 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
96 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
97 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
98 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
99 inline CreateNatGatewayRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
100 inline CreateNatGatewayRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
101 inline CreateNatGatewayRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
103
105
108 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
109 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
110 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
111 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
114 inline CreateNatGatewayRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
115 inline CreateNatGatewayRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
117
119
123 inline const ConnectivityType& GetConnectivityType() const{ return m_connectivityType; }
124 inline bool ConnectivityTypeHasBeenSet() const { return m_connectivityTypeHasBeenSet; }
125 inline void SetConnectivityType(const ConnectivityType& value) { m_connectivityTypeHasBeenSet = true; m_connectivityType = value; }
126 inline void SetConnectivityType(ConnectivityType&& value) { m_connectivityTypeHasBeenSet = true; m_connectivityType = std::move(value); }
128 inline CreateNatGatewayRequest& WithConnectivityType(ConnectivityType&& value) { SetConnectivityType(std::move(value)); return *this;}
130
132
136 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
137 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
138 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
139 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
140 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
142 inline CreateNatGatewayRequest& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
143 inline CreateNatGatewayRequest& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
145
147
152 inline const Aws::Vector<Aws::String>& GetSecondaryAllocationIds() const{ return m_secondaryAllocationIds; }
153 inline bool SecondaryAllocationIdsHasBeenSet() const { return m_secondaryAllocationIdsHasBeenSet; }
154 inline void SetSecondaryAllocationIds(const Aws::Vector<Aws::String>& value) { m_secondaryAllocationIdsHasBeenSet = true; m_secondaryAllocationIds = value; }
155 inline void SetSecondaryAllocationIds(Aws::Vector<Aws::String>&& value) { m_secondaryAllocationIdsHasBeenSet = true; m_secondaryAllocationIds = std::move(value); }
158 inline CreateNatGatewayRequest& AddSecondaryAllocationIds(const Aws::String& value) { m_secondaryAllocationIdsHasBeenSet = true; m_secondaryAllocationIds.push_back(value); return *this; }
159 inline CreateNatGatewayRequest& AddSecondaryAllocationIds(Aws::String&& value) { m_secondaryAllocationIdsHasBeenSet = true; m_secondaryAllocationIds.push_back(std::move(value)); return *this; }
160 inline CreateNatGatewayRequest& AddSecondaryAllocationIds(const char* value) { m_secondaryAllocationIdsHasBeenSet = true; m_secondaryAllocationIds.push_back(value); return *this; }
162
164
170 inline const Aws::Vector<Aws::String>& GetSecondaryPrivateIpAddresses() const{ return m_secondaryPrivateIpAddresses; }
171 inline bool SecondaryPrivateIpAddressesHasBeenSet() const { return m_secondaryPrivateIpAddressesHasBeenSet; }
172 inline void SetSecondaryPrivateIpAddresses(const Aws::Vector<Aws::String>& value) { m_secondaryPrivateIpAddressesHasBeenSet = true; m_secondaryPrivateIpAddresses = value; }
173 inline void SetSecondaryPrivateIpAddresses(Aws::Vector<Aws::String>&& value) { m_secondaryPrivateIpAddressesHasBeenSet = true; m_secondaryPrivateIpAddresses = std::move(value); }
176 inline CreateNatGatewayRequest& AddSecondaryPrivateIpAddresses(const Aws::String& value) { m_secondaryPrivateIpAddressesHasBeenSet = true; m_secondaryPrivateIpAddresses.push_back(value); return *this; }
177 inline CreateNatGatewayRequest& AddSecondaryPrivateIpAddresses(Aws::String&& value) { m_secondaryPrivateIpAddressesHasBeenSet = true; m_secondaryPrivateIpAddresses.push_back(std::move(value)); return *this; }
178 inline CreateNatGatewayRequest& AddSecondaryPrivateIpAddresses(const char* value) { m_secondaryPrivateIpAddressesHasBeenSet = true; m_secondaryPrivateIpAddresses.push_back(value); return *this; }
180
182
189 inline int GetSecondaryPrivateIpAddressCount() const{ return m_secondaryPrivateIpAddressCount; }
190 inline bool SecondaryPrivateIpAddressCountHasBeenSet() const { return m_secondaryPrivateIpAddressCountHasBeenSet; }
191 inline void SetSecondaryPrivateIpAddressCount(int value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; }
194 private:
195
196 Aws::String m_allocationId;
197 bool m_allocationIdHasBeenSet = false;
198
199 Aws::String m_clientToken;
200 bool m_clientTokenHasBeenSet = false;
201
202 bool m_dryRun;
203 bool m_dryRunHasBeenSet = false;
204
205 Aws::String m_subnetId;
206 bool m_subnetIdHasBeenSet = false;
207
208 Aws::Vector<TagSpecification> m_tagSpecifications;
209 bool m_tagSpecificationsHasBeenSet = false;
210
211 ConnectivityType m_connectivityType;
212 bool m_connectivityTypeHasBeenSet = false;
213
214 Aws::String m_privateIpAddress;
215 bool m_privateIpAddressHasBeenSet = false;
216
217 Aws::Vector<Aws::String> m_secondaryAllocationIds;
218 bool m_secondaryAllocationIdsHasBeenSet = false;
219
220 Aws::Vector<Aws::String> m_secondaryPrivateIpAddresses;
221 bool m_secondaryPrivateIpAddressesHasBeenSet = false;
222
223 int m_secondaryPrivateIpAddressCount;
224 bool m_secondaryPrivateIpAddressCountHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace EC2
229} // namespace Aws
CreateNatGatewayRequest & WithSecondaryPrivateIpAddresses(Aws::Vector< Aws::String > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateNatGatewayRequest & WithSubnetId(const char *value)
const Aws::Vector< Aws::String > & GetSecondaryPrivateIpAddresses() const
CreateNatGatewayRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
const ConnectivityType & GetConnectivityType() const
CreateNatGatewayRequest & AddSecondaryAllocationIds(const char *value)
void SetSecondaryPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateNatGatewayRequest & WithSubnetId(const Aws::String &value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateNatGatewayRequest & AddSecondaryPrivateIpAddresses(const char *value)
void SetSecondaryAllocationIds(const Aws::Vector< Aws::String > &value)
void SetAllocationId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateNatGatewayRequest & WithAllocationId(const Aws::String &value)
void SetPrivateIpAddress(const Aws::String &value)
CreateNatGatewayRequest & WithConnectivityType(const ConnectivityType &value)
CreateNatGatewayRequest & WithPrivateIpAddress(Aws::String &&value)
void SetSecondaryPrivateIpAddresses(Aws::Vector< Aws::String > &&value)
void SetSecondaryAllocationIds(Aws::Vector< Aws::String > &&value)
CreateNatGatewayRequest & WithPrivateIpAddress(const char *value)
CreateNatGatewayRequest & WithSecondaryPrivateIpAddresses(const Aws::Vector< Aws::String > &value)
CreateNatGatewayRequest & WithDryRun(bool value)
void SetConnectivityType(ConnectivityType &&value)
const Aws::Vector< Aws::String > & GetSecondaryAllocationIds() const
CreateNatGatewayRequest & AddTagSpecifications(const TagSpecification &value)
CreateNatGatewayRequest & WithClientToken(const char *value)
CreateNatGatewayRequest & WithAllocationId(Aws::String &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateNatGatewayRequest & AddSecondaryPrivateIpAddresses(Aws::String &&value)
CreateNatGatewayRequest & WithSecondaryAllocationIds(Aws::Vector< Aws::String > &&value)
CreateNatGatewayRequest & WithClientToken(const Aws::String &value)
CreateNatGatewayRequest & WithSecondaryPrivateIpAddressCount(int value)
CreateNatGatewayRequest & WithConnectivityType(ConnectivityType &&value)
CreateNatGatewayRequest & WithSecondaryAllocationIds(const Aws::Vector< Aws::String > &value)
CreateNatGatewayRequest & WithClientToken(Aws::String &&value)
void SetConnectivityType(const ConnectivityType &value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateNatGatewayRequest & AddSecondaryAllocationIds(Aws::String &&value)
CreateNatGatewayRequest & AddSecondaryAllocationIds(const Aws::String &value)
void SetClientToken(const Aws::String &value)
CreateNatGatewayRequest & AddTagSpecifications(TagSpecification &&value)
CreateNatGatewayRequest & WithAllocationId(const char *value)
CreateNatGatewayRequest & WithSubnetId(Aws::String &&value)
CreateNatGatewayRequest & AddSecondaryPrivateIpAddresses(const Aws::String &value)
CreateNatGatewayRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateNatGatewayRequest & WithPrivateIpAddress(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector