AWS SDK for C++  1.9.71
AWS SDK for C++
CreateNatGatewayRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace EC2
19 {
20 namespace 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::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
49  inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
50 
57  inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
58 
65  inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
66 
73  inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
74 
81  inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
82 
89  inline CreateNatGatewayRequest& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
90 
97  inline CreateNatGatewayRequest& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
98 
105  inline CreateNatGatewayRequest& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
106 
107 
114  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
115 
122  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
123 
130  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
131 
138  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
139 
146  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
147 
154  inline CreateNatGatewayRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
155 
162  inline CreateNatGatewayRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
163 
170  inline CreateNatGatewayRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
171 
172 
179  inline bool GetDryRun() const{ return m_dryRun; }
180 
187  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
188 
195  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
196 
203  inline CreateNatGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
204 
205 
209  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
210 
214  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
215 
219  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
220 
224  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
225 
229  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
230 
234  inline CreateNatGatewayRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
235 
239  inline CreateNatGatewayRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
240 
244  inline CreateNatGatewayRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
245 
246 
250  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
251 
255  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
256 
260  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
261 
265  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
266 
270  inline CreateNatGatewayRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
271 
275  inline CreateNatGatewayRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
276 
280  inline CreateNatGatewayRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
281 
285  inline CreateNatGatewayRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
286 
287 
292  inline const ConnectivityType& GetConnectivityType() const{ return m_connectivityType; }
293 
298  inline bool ConnectivityTypeHasBeenSet() const { return m_connectivityTypeHasBeenSet; }
299 
304  inline void SetConnectivityType(const ConnectivityType& value) { m_connectivityTypeHasBeenSet = true; m_connectivityType = value; }
305 
310  inline void SetConnectivityType(ConnectivityType&& value) { m_connectivityTypeHasBeenSet = true; m_connectivityType = std::move(value); }
311 
316  inline CreateNatGatewayRequest& WithConnectivityType(const ConnectivityType& value) { SetConnectivityType(value); return *this;}
317 
322  inline CreateNatGatewayRequest& WithConnectivityType(ConnectivityType&& value) { SetConnectivityType(std::move(value)); return *this;}
323 
324  private:
325 
326  Aws::String m_allocationId;
327  bool m_allocationIdHasBeenSet;
328 
329  Aws::String m_clientToken;
330  bool m_clientTokenHasBeenSet;
331 
332  bool m_dryRun;
333  bool m_dryRunHasBeenSet;
334 
335  Aws::String m_subnetId;
336  bool m_subnetIdHasBeenSet;
337 
338  Aws::Vector<TagSpecification> m_tagSpecifications;
339  bool m_tagSpecificationsHasBeenSet;
340 
341  ConnectivityType m_connectivityType;
342  bool m_connectivityTypeHasBeenSet;
343  };
344 
345 } // namespace Model
346 } // namespace EC2
347 } // namespace Aws
Aws::EC2::Model::CreateNatGatewayRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateNatGatewayRequest.h:114
TagSpecification.h
Aws::EC2::Model::CreateNatGatewayRequest::SetAllocationId
void SetAllocationId(Aws::String &&value)
Definition: CreateNatGatewayRequest.h:73
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateNatGatewayRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateNatGatewayRequest::GetAllocationId
const Aws::String & GetAllocationId() const
Definition: CreateNatGatewayRequest.h:49
Aws::EC2::Model::CreateNatGatewayRequest::WithSubnetId
CreateNatGatewayRequest & WithSubnetId(Aws::String &&value)
Definition: CreateNatGatewayRequest.h:239
Aws::EC2::Model::CreateNatGatewayRequest::WithConnectivityType
CreateNatGatewayRequest & WithConnectivityType(ConnectivityType &&value)
Definition: CreateNatGatewayRequest.h:322
Aws::EC2::Model::CreateNatGatewayRequest::WithClientToken
CreateNatGatewayRequest & WithClientToken(const char *value)
Definition: CreateNatGatewayRequest.h:170
Aws::EC2::Model::CreateNatGatewayRequest::CreateNatGatewayRequest
CreateNatGatewayRequest()
Aws::EC2::Model::CreateNatGatewayRequest::SetConnectivityType
void SetConnectivityType(const ConnectivityType &value)
Definition: CreateNatGatewayRequest.h:304
Aws::EC2::Model::CreateNatGatewayRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateNatGatewayRequest.h:138
Aws::EC2::Model::CreateNatGatewayRequest::AllocationIdHasBeenSet
bool AllocationIdHasBeenSet() const
Definition: CreateNatGatewayRequest.h:57
Aws::EC2::Model::CreateNatGatewayRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateNatGatewayRequest.h:260
Aws::EC2::Model::CreateNatGatewayRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateNatGatewayRequest::GetDryRun
bool GetDryRun() const
Definition: CreateNatGatewayRequest.h:179
Aws::EC2::Model::CreateNatGatewayRequest::WithClientToken
CreateNatGatewayRequest & WithClientToken(const Aws::String &value)
Definition: CreateNatGatewayRequest.h:154
Aws::EC2::Model::CreateNatGatewayRequest::ConnectivityTypeHasBeenSet
bool ConnectivityTypeHasBeenSet() const
Definition: CreateNatGatewayRequest.h:298
Aws::EC2::Model::CreateNatGatewayRequest::SetSubnetId
void SetSubnetId(Aws::String &&value)
Definition: CreateNatGatewayRequest.h:224
Aws::EC2::Model::CreateNatGatewayRequest::WithAllocationId
CreateNatGatewayRequest & WithAllocationId(Aws::String &&value)
Definition: CreateNatGatewayRequest.h:97
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ConnectivityType
ConnectivityType
Definition: ConnectivityType.h:17
Aws::EC2::Model::CreateNatGatewayRequest::WithSubnetId
CreateNatGatewayRequest & WithSubnetId(const char *value)
Definition: CreateNatGatewayRequest.h:244
Aws::EC2::Model::CreateNatGatewayRequest::AddTagSpecifications
CreateNatGatewayRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateNatGatewayRequest.h:280
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateNatGatewayRequest::WithConnectivityType
CreateNatGatewayRequest & WithConnectivityType(const ConnectivityType &value)
Definition: CreateNatGatewayRequest.h:316
AWSVector.h
Aws::EC2::Model::CreateNatGatewayRequest
Definition: CreateNatGatewayRequest.h:26
Aws::EC2::Model::CreateNatGatewayRequest::WithDryRun
CreateNatGatewayRequest & WithDryRun(bool value)
Definition: CreateNatGatewayRequest.h:203
Aws::EC2::Model::CreateNatGatewayRequest::SetSubnetId
void SetSubnetId(const char *value)
Definition: CreateNatGatewayRequest.h:229
Aws::EC2::Model::CreateNatGatewayRequest::WithTagSpecifications
CreateNatGatewayRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateNatGatewayRequest.h:270
Aws::EC2::Model::CreateNatGatewayRequest::GetSubnetId
const Aws::String & GetSubnetId() const
Definition: CreateNatGatewayRequest.h:209
Aws::EC2::Model::CreateNatGatewayRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateNatGatewayRequest.h:250
Aws::EC2::Model::CreateNatGatewayRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateNatGatewayRequest.h:34
Aws::EC2::Model::CreateNatGatewayRequest::GetConnectivityType
const ConnectivityType & GetConnectivityType() const
Definition: CreateNatGatewayRequest.h:292
Aws::EC2::Model::CreateNatGatewayRequest::SetAllocationId
void SetAllocationId(const Aws::String &value)
Definition: CreateNatGatewayRequest.h:65
Aws::EC2::Model::CreateNatGatewayRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateNatGatewayRequest.h:146
Aws::EC2::Model::CreateNatGatewayRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateNatGatewayRequest.h:122
EC2Request.h
Aws::EC2::Model::CreateNatGatewayRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateNatGatewayRequest.h:130
Aws::EC2::Model::CreateNatGatewayRequest::SetAllocationId
void SetAllocationId(const char *value)
Definition: CreateNatGatewayRequest.h:81
Aws::EC2::Model::CreateNatGatewayRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateNatGatewayRequest.h:187
Aws::EC2::Model::CreateNatGatewayRequest::WithAllocationId
CreateNatGatewayRequest & WithAllocationId(const Aws::String &value)
Definition: CreateNatGatewayRequest.h:89
AWSString.h
Aws::EC2::Model::CreateNatGatewayRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateNatGatewayRequest.h:195
Aws::EC2::Model::CreateNatGatewayRequest::WithTagSpecifications
CreateNatGatewayRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateNatGatewayRequest.h:275
Aws::EC2::Model::CreateNatGatewayRequest::AddTagSpecifications
CreateNatGatewayRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateNatGatewayRequest.h:285
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateNatGatewayRequest::SetSubnetId
void SetSubnetId(const Aws::String &value)
Definition: CreateNatGatewayRequest.h:219
Aws::EC2::Model::CreateNatGatewayRequest::WithSubnetId
CreateNatGatewayRequest & WithSubnetId(const Aws::String &value)
Definition: CreateNatGatewayRequest.h:234
Aws::EC2::Model::CreateNatGatewayRequest::WithAllocationId
CreateNatGatewayRequest & WithAllocationId(const char *value)
Definition: CreateNatGatewayRequest.h:105
Aws::EC2::Model::CreateNatGatewayRequest::SetConnectivityType
void SetConnectivityType(ConnectivityType &&value)
Definition: CreateNatGatewayRequest.h:310
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
UUID.h
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreateNatGatewayRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateNatGatewayRequest.h:255
ConnectivityType.h
Aws::EC2::Model::CreateNatGatewayRequest::WithClientToken
CreateNatGatewayRequest & WithClientToken(Aws::String &&value)
Definition: CreateNatGatewayRequest.h:162
Aws::EC2::Model::CreateNatGatewayRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateNatGatewayRequest.h:265
Aws::EC2::Model::CreateNatGatewayRequest::SubnetIdHasBeenSet
bool SubnetIdHasBeenSet() const
Definition: CreateNatGatewayRequest.h:214