AWS SDK for C++  0.12.9
AWS SDK for C++
AssociateAddressRequest.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 
42  inline bool GetDryRun() const{ return m_dryRun; }
43 
50  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 
58  inline AssociateAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
59 
66  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
67 
74  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
75 
82  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
83 
90  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
91 
98  inline AssociateAddressRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
99 
106  inline AssociateAddressRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
107 
114  inline AssociateAddressRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
115 
119  inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
120 
124  inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
125 
129  inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
130 
134  inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
135 
139  inline AssociateAddressRequest& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
140 
144  inline AssociateAddressRequest& WithPublicIp(Aws::String&& value) { SetPublicIp(value); return *this;}
145 
149  inline AssociateAddressRequest& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
150 
154  inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
155 
159  inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
160 
164  inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
165 
169  inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
170 
174  inline AssociateAddressRequest& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
175 
179  inline AssociateAddressRequest& WithAllocationId(Aws::String&& value) { SetAllocationId(value); return *this;}
180 
184  inline AssociateAddressRequest& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
185 
190  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
191 
196  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
197 
202  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
203 
208  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
209 
214  inline AssociateAddressRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
215 
220  inline AssociateAddressRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(value); return *this;}
221 
226  inline AssociateAddressRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
227 
233  inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
234 
240  inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
241 
247  inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
248 
254  inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
255 
261  inline AssociateAddressRequest& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
262 
268  inline AssociateAddressRequest& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(value); return *this;}
269 
275  inline AssociateAddressRequest& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
276 
286  inline bool GetAllowReassociation() const{ return m_allowReassociation; }
287 
297  inline void SetAllowReassociation(bool value) { m_allowReassociationHasBeenSet = true; m_allowReassociation = value; }
298 
308  inline AssociateAddressRequest& WithAllowReassociation(bool value) { SetAllowReassociation(value); return *this;}
309 
310  private:
311  bool m_dryRun;
312  bool m_dryRunHasBeenSet;
313  Aws::String m_instanceId;
314  bool m_instanceIdHasBeenSet;
315  Aws::String m_publicIp;
316  bool m_publicIpHasBeenSet;
317  Aws::String m_allocationId;
318  bool m_allocationIdHasBeenSet;
319  Aws::String m_networkInterfaceId;
320  bool m_networkInterfaceIdHasBeenSet;
321  Aws::String m_privateIpAddress;
322  bool m_privateIpAddressHasBeenSet;
323  bool m_allowReassociation;
324  bool m_allowReassociationHasBeenSet;
325  };
326 
327 } // namespace Model
328 } // namespace EC2
329 } // namespace Aws
AssociateAddressRequest & WithDryRun(bool value)
void SetPrivateIpAddress(const Aws::String &value)
AssociateAddressRequest & WithNetworkInterfaceId(const char *value)
AssociateAddressRequest & WithPublicIp(Aws::String &&value)
AssociateAddressRequest & WithAllocationId(Aws::String &&value)
AssociateAddressRequest & WithAllocationId(const char *value)
void SetNetworkInterfaceId(const Aws::String &value)
AssociateAddressRequest & WithPrivateIpAddress(const Aws::String &value)
AssociateAddressRequest & WithPublicIp(const char *value)
AssociateAddressRequest & WithAllowReassociation(bool value)
AssociateAddressRequest & WithNetworkInterfaceId(const Aws::String &value)
AssociateAddressRequest & WithPublicIp(const Aws::String &value)
AssociateAddressRequest & WithNetworkInterfaceId(Aws::String &&value)
AssociateAddressRequest & WithPrivateIpAddress(Aws::String &&value)
AssociateAddressRequest & WithInstanceId(const char *value)
AssociateAddressRequest & WithPrivateIpAddress(const char *value)
void SetAllocationId(const Aws::String &value)
const Aws::String & GetNetworkInterfaceId() const
AssociateAddressRequest & WithInstanceId(Aws::String &&value)
void SetInstanceId(const Aws::String &value)
AssociateAddressRequest & WithAllocationId(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:34
AssociateAddressRequest & WithInstanceId(const Aws::String &value)
const Aws::String & GetPrivateIpAddress() const
JSON (JavaScript Object Notation).