AWS SDK for C++  1.8.56
AWS SDK for C++
AttachNetworkInterfaceRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
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 "AttachNetworkInterface"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline int GetDeviceIndex() const{ return m_deviceIndex; }
47 
51  inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
52 
56  inline void SetDeviceIndex(int value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; }
57 
61  inline AttachNetworkInterfaceRequest& WithDeviceIndex(int value) { SetDeviceIndex(value); return *this;}
62 
63 
70  inline bool GetDryRun() const{ return m_dryRun; }
71 
78  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
79 
86  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
87 
94  inline AttachNetworkInterfaceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
95 
96 
100  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
101 
105  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
106 
110  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
111 
115  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
116 
120  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
121 
125  inline AttachNetworkInterfaceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
126 
130  inline AttachNetworkInterfaceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
131 
135  inline AttachNetworkInterfaceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
136 
137 
141  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
142 
146  inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
147 
151  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
152 
156  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
157 
161  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
162 
166  inline AttachNetworkInterfaceRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
167 
171  inline AttachNetworkInterfaceRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
172 
176  inline AttachNetworkInterfaceRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
177 
178  private:
179 
180  int m_deviceIndex;
181  bool m_deviceIndexHasBeenSet;
182 
183  bool m_dryRun;
184  bool m_dryRunHasBeenSet;
185 
186  Aws::String m_instanceId;
187  bool m_instanceIdHasBeenSet;
188 
189  Aws::String m_networkInterfaceId;
190  bool m_networkInterfaceIdHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace EC2
195 } // namespace Aws
virtual const char * GetServiceRequestName() const override
AttachNetworkInterfaceRequest & WithNetworkInterfaceId(Aws::String &&value)
AttachNetworkInterfaceRequest & WithNetworkInterfaceId(const char *value)
AttachNetworkInterfaceRequest & WithDryRun(bool value)
AttachNetworkInterfaceRequest & WithInstanceId(const Aws::String &value)
AttachNetworkInterfaceRequest & WithDeviceIndex(int 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:28
AttachNetworkInterfaceRequest & WithInstanceId(const char *value)