AWS SDK for C++  0.12.9
AWS SDK for C++
AttachNetworkInterfaceRequest.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 AttachNetworkInterfaceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
59 
63  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
64 
68  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
69 
73  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
74 
78  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
79 
83  inline AttachNetworkInterfaceRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
84 
88  inline AttachNetworkInterfaceRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(value); return *this;}
89 
93  inline AttachNetworkInterfaceRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
94 
98  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
99 
103  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
104 
108  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
109 
113  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
114 
118  inline AttachNetworkInterfaceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
119 
123  inline AttachNetworkInterfaceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
124 
128  inline AttachNetworkInterfaceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
129 
133  inline long GetDeviceIndex() const{ return m_deviceIndex; }
134 
138  inline void SetDeviceIndex(long value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; }
139 
143  inline AttachNetworkInterfaceRequest& WithDeviceIndex(long value) { SetDeviceIndex(value); return *this;}
144 
145  private:
146  bool m_dryRun;
147  bool m_dryRunHasBeenSet;
148  Aws::String m_networkInterfaceId;
149  bool m_networkInterfaceIdHasBeenSet;
150  Aws::String m_instanceId;
151  bool m_instanceIdHasBeenSet;
152  long m_deviceIndex;
153  bool m_deviceIndexHasBeenSet;
154  };
155 
156 } // namespace Model
157 } // namespace EC2
158 } // namespace Aws
AttachNetworkInterfaceRequest & WithNetworkInterfaceId(Aws::String &&value)
AttachNetworkInterfaceRequest & WithDeviceIndex(long value)
AttachNetworkInterfaceRequest & WithNetworkInterfaceId(const char *value)
AttachNetworkInterfaceRequest & WithDryRun(bool value)
AttachNetworkInterfaceRequest & WithInstanceId(const Aws::String &value)
AttachNetworkInterfaceRequest & WithInstanceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AttachNetworkInterfaceRequest & WithNetworkInterfaceId(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
AttachNetworkInterfaceRequest & WithInstanceId(const char *value)
JSON (JavaScript Object Notation).