AWS SDK for C++  1.9.108
AWS SDK for C++
AttachVolumeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace StorageGateway
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "AttachVolume"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
45 
50  inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
51 
56  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
57 
62  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
63 
68  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
69 
74  inline AttachVolumeRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
75 
80  inline AttachVolumeRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
81 
86  inline AttachVolumeRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
87 
88 
98  inline const Aws::String& GetTargetName() const{ return m_targetName; }
99 
109  inline bool TargetNameHasBeenSet() const { return m_targetNameHasBeenSet; }
110 
120  inline void SetTargetName(const Aws::String& value) { m_targetNameHasBeenSet = true; m_targetName = value; }
121 
131  inline void SetTargetName(Aws::String&& value) { m_targetNameHasBeenSet = true; m_targetName = std::move(value); }
132 
142  inline void SetTargetName(const char* value) { m_targetNameHasBeenSet = true; m_targetName.assign(value); }
143 
153  inline AttachVolumeRequest& WithTargetName(const Aws::String& value) { SetTargetName(value); return *this;}
154 
164  inline AttachVolumeRequest& WithTargetName(Aws::String&& value) { SetTargetName(std::move(value)); return *this;}
165 
175  inline AttachVolumeRequest& WithTargetName(const char* value) { SetTargetName(value); return *this;}
176 
177 
182  inline const Aws::String& GetVolumeARN() const{ return m_volumeARN; }
183 
188  inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
189 
194  inline void SetVolumeARN(const Aws::String& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; }
195 
200  inline void SetVolumeARN(Aws::String&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::move(value); }
201 
206  inline void SetVolumeARN(const char* value) { m_volumeARNHasBeenSet = true; m_volumeARN.assign(value); }
207 
212  inline AttachVolumeRequest& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;}
213 
218  inline AttachVolumeRequest& WithVolumeARN(Aws::String&& value) { SetVolumeARN(std::move(value)); return *this;}
219 
224  inline AttachVolumeRequest& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;}
225 
226 
233  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
234 
241  inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
242 
249  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
250 
257  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
258 
265  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
266 
273  inline AttachVolumeRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
274 
281  inline AttachVolumeRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
282 
289  inline AttachVolumeRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
290 
291 
297  inline const Aws::String& GetDiskId() const{ return m_diskId; }
298 
304  inline bool DiskIdHasBeenSet() const { return m_diskIdHasBeenSet; }
305 
311  inline void SetDiskId(const Aws::String& value) { m_diskIdHasBeenSet = true; m_diskId = value; }
312 
318  inline void SetDiskId(Aws::String&& value) { m_diskIdHasBeenSet = true; m_diskId = std::move(value); }
319 
325  inline void SetDiskId(const char* value) { m_diskIdHasBeenSet = true; m_diskId.assign(value); }
326 
332  inline AttachVolumeRequest& WithDiskId(const Aws::String& value) { SetDiskId(value); return *this;}
333 
339  inline AttachVolumeRequest& WithDiskId(Aws::String&& value) { SetDiskId(std::move(value)); return *this;}
340 
346  inline AttachVolumeRequest& WithDiskId(const char* value) { SetDiskId(value); return *this;}
347 
348  private:
349 
350  Aws::String m_gatewayARN;
351  bool m_gatewayARNHasBeenSet;
352 
353  Aws::String m_targetName;
354  bool m_targetNameHasBeenSet;
355 
356  Aws::String m_volumeARN;
357  bool m_volumeARNHasBeenSet;
358 
359  Aws::String m_networkInterfaceId;
360  bool m_networkInterfaceIdHasBeenSet;
361 
362  Aws::String m_diskId;
363  bool m_diskIdHasBeenSet;
364  };
365 
366 } // namespace Model
367 } // namespace StorageGateway
368 } // namespace Aws
Aws::StorageGateway::Model::AttachVolumeRequest::SetTargetName
void SetTargetName(const Aws::String &value)
Definition: AttachVolumeRequest.h:120
Aws::StorageGateway::Model::AttachVolumeRequest::GetTargetName
const Aws::String & GetTargetName() const
Definition: AttachVolumeRequest.h:98
Aws::StorageGateway::Model::AttachVolumeRequest::SetGatewayARN
void SetGatewayARN(const Aws::String &value)
Definition: AttachVolumeRequest.h:56
Aws::StorageGateway::Model::AttachVolumeRequest::DiskIdHasBeenSet
bool DiskIdHasBeenSet() const
Definition: AttachVolumeRequest.h:304
Aws::StorageGateway::Model::AttachVolumeRequest::WithDiskId
AttachVolumeRequest & WithDiskId(const Aws::String &value)
Definition: AttachVolumeRequest.h:332
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::AttachVolumeRequest::VolumeARNHasBeenSet
bool VolumeARNHasBeenSet() const
Definition: AttachVolumeRequest.h:188
Aws::StorageGateway::Model::AttachVolumeRequest::WithTargetName
AttachVolumeRequest & WithTargetName(const char *value)
Definition: AttachVolumeRequest.h:175
Aws::StorageGateway::Model::AttachVolumeRequest::GetVolumeARN
const Aws::String & GetVolumeARN() const
Definition: AttachVolumeRequest.h:182
Aws::StorageGateway::Model::AttachVolumeRequest::SetDiskId
void SetDiskId(Aws::String &&value)
Definition: AttachVolumeRequest.h:318
Aws::StorageGateway::Model::AttachVolumeRequest::AttachVolumeRequest
AttachVolumeRequest()
Aws::StorageGateway::Model::AttachVolumeRequest::SetVolumeARN
void SetVolumeARN(const char *value)
Definition: AttachVolumeRequest.h:206
Aws::StorageGateway::Model::AttachVolumeRequest::TargetNameHasBeenSet
bool TargetNameHasBeenSet() const
Definition: AttachVolumeRequest.h:109
Aws::StorageGateway::Model::AttachVolumeRequest::GetGatewayARN
const Aws::String & GetGatewayARN() const
Definition: AttachVolumeRequest.h:44
Aws::StorageGateway::Model::AttachVolumeRequest::GetDiskId
const Aws::String & GetDiskId() const
Definition: AttachVolumeRequest.h:297
Aws::StorageGateway::Model::AttachVolumeRequest::SetGatewayARN
void SetGatewayARN(Aws::String &&value)
Definition: AttachVolumeRequest.h:62
Aws::StorageGateway::Model::AttachVolumeRequest::WithVolumeARN
AttachVolumeRequest & WithVolumeARN(const Aws::String &value)
Definition: AttachVolumeRequest.h:212
Aws::StorageGateway::Model::AttachVolumeRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(Aws::String &&value)
Definition: AttachVolumeRequest.h:257
Aws::StorageGateway::Model::AttachVolumeRequest::WithNetworkInterfaceId
AttachVolumeRequest & WithNetworkInterfaceId(const Aws::String &value)
Definition: AttachVolumeRequest.h:273
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::AttachVolumeRequest::SetVolumeARN
void SetVolumeARN(Aws::String &&value)
Definition: AttachVolumeRequest.h:200
Aws::StorageGateway::Model::AttachVolumeRequest::SetTargetName
void SetTargetName(const char *value)
Definition: AttachVolumeRequest.h:142
Aws::StorageGateway::Model::AttachVolumeRequest::GatewayARNHasBeenSet
bool GatewayARNHasBeenSet() const
Definition: AttachVolumeRequest.h:50
Aws::StorageGateway::Model::AttachVolumeRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const Aws::String &value)
Definition: AttachVolumeRequest.h:249
Aws::StorageGateway::Model::AttachVolumeRequest::SetDiskId
void SetDiskId(const char *value)
Definition: AttachVolumeRequest.h:325
Aws::StorageGateway::Model::AttachVolumeRequest::WithNetworkInterfaceId
AttachVolumeRequest & WithNetworkInterfaceId(Aws::String &&value)
Definition: AttachVolumeRequest.h:281
Aws::StorageGateway::Model::AttachVolumeRequest::SetTargetName
void SetTargetName(Aws::String &&value)
Definition: AttachVolumeRequest.h:131
Aws::StorageGateway::Model::AttachVolumeRequest::NetworkInterfaceIdHasBeenSet
bool NetworkInterfaceIdHasBeenSet() const
Definition: AttachVolumeRequest.h:241
AWSString.h
Aws::StorageGateway::Model::AttachVolumeRequest::WithNetworkInterfaceId
AttachVolumeRequest & WithNetworkInterfaceId(const char *value)
Definition: AttachVolumeRequest.h:289
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::AttachVolumeRequest
Definition: AttachVolumeRequest.h:25
Aws::StorageGateway::Model::AttachVolumeRequest::WithVolumeARN
AttachVolumeRequest & WithVolumeARN(const char *value)
Definition: AttachVolumeRequest.h:224
Aws::StorageGateway::Model::AttachVolumeRequest::WithVolumeARN
AttachVolumeRequest & WithVolumeARN(Aws::String &&value)
Definition: AttachVolumeRequest.h:218
Aws::StorageGateway::Model::AttachVolumeRequest::WithGatewayARN
AttachVolumeRequest & WithGatewayARN(const Aws::String &value)
Definition: AttachVolumeRequest.h:74
Aws::StorageGateway::Model::AttachVolumeRequest::SetVolumeARN
void SetVolumeARN(const Aws::String &value)
Definition: AttachVolumeRequest.h:194
Aws::StorageGateway::Model::AttachVolumeRequest::WithDiskId
AttachVolumeRequest & WithDiskId(const char *value)
Definition: AttachVolumeRequest.h:346
Aws::StorageGateway::Model::AttachVolumeRequest::SerializePayload
Aws::String SerializePayload() const override
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::AttachVolumeRequest::WithDiskId
AttachVolumeRequest & WithDiskId(Aws::String &&value)
Definition: AttachVolumeRequest.h:339
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::AttachVolumeRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const char *value)
Definition: AttachVolumeRequest.h:265
Aws::StorageGateway::Model::AttachVolumeRequest::SetGatewayARN
void SetGatewayARN(const char *value)
Definition: AttachVolumeRequest.h:68
Aws::StorageGateway::Model::AttachVolumeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AttachVolumeRequest.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::AttachVolumeRequest::SetDiskId
void SetDiskId(const Aws::String &value)
Definition: AttachVolumeRequest.h:311
Aws::StorageGateway::Model::AttachVolumeRequest::WithTargetName
AttachVolumeRequest & WithTargetName(Aws::String &&value)
Definition: AttachVolumeRequest.h:164
Aws::StorageGateway::Model::AttachVolumeRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::AttachVolumeRequest::WithGatewayARN
AttachVolumeRequest & WithGatewayARN(Aws::String &&value)
Definition: AttachVolumeRequest.h:80
Aws::StorageGateway::Model::AttachVolumeRequest::WithTargetName
AttachVolumeRequest & WithTargetName(const Aws::String &value)
Definition: AttachVolumeRequest.h:153
Aws::StorageGateway::Model::AttachVolumeRequest::GetNetworkInterfaceId
const Aws::String & GetNetworkInterfaceId() const
Definition: AttachVolumeRequest.h:233
Aws::StorageGateway::Model::AttachVolumeRequest::WithGatewayARN
AttachVolumeRequest & WithGatewayARN(const char *value)
Definition: AttachVolumeRequest.h:86