AWS SDK for C++  0.14.3
AWS SDK for C++
CreateNatGatewayRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
19 
20 namespace Aws
21 {
22 namespace EC2
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
40 
44  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
45 
49  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
50 
54  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
55 
59  inline CreateNatGatewayRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
60 
64  inline CreateNatGatewayRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(value); return *this;}
65 
69  inline CreateNatGatewayRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
70 
76  inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
77 
83  inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
84 
90  inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
91 
97  inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
98 
104  inline CreateNatGatewayRequest& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
105 
111  inline CreateNatGatewayRequest& WithAllocationId(Aws::String&& value) { SetAllocationId(value); return *this;}
112 
118  inline CreateNatGatewayRequest& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
119 
126  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
127 
134  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
135 
142  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
143 
150  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
151 
158  inline CreateNatGatewayRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
159 
166  inline CreateNatGatewayRequest& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
167 
174  inline CreateNatGatewayRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
175 
176  private:
177  Aws::String m_subnetId;
178  bool m_subnetIdHasBeenSet;
179  Aws::String m_allocationId;
180  bool m_allocationIdHasBeenSet;
181  Aws::String m_clientToken;
182  bool m_clientTokenHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace EC2
187 } // namespace Aws
CreateNatGatewayRequest & WithAllocationId(const char *value)
CreateNatGatewayRequest & WithClientToken(const char *value)
CreateNatGatewayRequest & WithSubnetId(Aws::String &&value)
void SetAllocationId(const Aws::String &value)
CreateNatGatewayRequest & WithClientToken(Aws::String &&value)
CreateNatGatewayRequest & WithAllocationId(Aws::String &&value)
CreateNatGatewayRequest & WithAllocationId(const Aws::String &value)
void SetClientToken(const Aws::String &value)
CreateNatGatewayRequest & WithSubnetId(const char *value)
void SetSubnetId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
CreateNatGatewayRequest & WithSubnetId(const Aws::String &value)
JSON (JavaScript Object Notation).
CreateNatGatewayRequest & WithClientToken(const Aws::String &value)