AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttachVolumeRequest.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace StorageGateway
15{
16namespace Model
17{
18
25 {
26 public:
27 AWS_STORAGEGATEWAY_API AttachVolumeRequest();
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_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
36
37 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
46 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
47 inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
48 inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
49 inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
50 inline AttachVolumeRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
51 inline AttachVolumeRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
52 inline AttachVolumeRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
54
56
65 inline const Aws::String& GetTargetName() const{ return m_targetName; }
66 inline bool TargetNameHasBeenSet() const { return m_targetNameHasBeenSet; }
67 inline void SetTargetName(const Aws::String& value) { m_targetNameHasBeenSet = true; m_targetName = value; }
68 inline void SetTargetName(Aws::String&& value) { m_targetNameHasBeenSet = true; m_targetName = std::move(value); }
69 inline void SetTargetName(const char* value) { m_targetNameHasBeenSet = true; m_targetName.assign(value); }
70 inline AttachVolumeRequest& WithTargetName(const Aws::String& value) { SetTargetName(value); return *this;}
71 inline AttachVolumeRequest& WithTargetName(Aws::String&& value) { SetTargetName(std::move(value)); return *this;}
72 inline AttachVolumeRequest& WithTargetName(const char* value) { SetTargetName(value); return *this;}
74
76
80 inline const Aws::String& GetVolumeARN() const{ return m_volumeARN; }
81 inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
82 inline void SetVolumeARN(const Aws::String& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; }
83 inline void SetVolumeARN(Aws::String&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::move(value); }
84 inline void SetVolumeARN(const char* value) { m_volumeARNHasBeenSet = true; m_volumeARN.assign(value); }
85 inline AttachVolumeRequest& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;}
86 inline AttachVolumeRequest& WithVolumeARN(Aws::String&& value) { SetVolumeARN(std::move(value)); return *this;}
87 inline AttachVolumeRequest& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;}
89
91
97 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
98 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
99 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
100 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
101 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
103 inline AttachVolumeRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
104 inline AttachVolumeRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
106
108
113 inline const Aws::String& GetDiskId() const{ return m_diskId; }
114 inline bool DiskIdHasBeenSet() const { return m_diskIdHasBeenSet; }
115 inline void SetDiskId(const Aws::String& value) { m_diskIdHasBeenSet = true; m_diskId = value; }
116 inline void SetDiskId(Aws::String&& value) { m_diskIdHasBeenSet = true; m_diskId = std::move(value); }
117 inline void SetDiskId(const char* value) { m_diskIdHasBeenSet = true; m_diskId.assign(value); }
118 inline AttachVolumeRequest& WithDiskId(const Aws::String& value) { SetDiskId(value); return *this;}
119 inline AttachVolumeRequest& WithDiskId(Aws::String&& value) { SetDiskId(std::move(value)); return *this;}
120 inline AttachVolumeRequest& WithDiskId(const char* value) { SetDiskId(value); return *this;}
122 private:
123
124 Aws::String m_gatewayARN;
125 bool m_gatewayARNHasBeenSet = false;
126
127 Aws::String m_targetName;
128 bool m_targetNameHasBeenSet = false;
129
130 Aws::String m_volumeARN;
131 bool m_volumeARNHasBeenSet = false;
132
133 Aws::String m_networkInterfaceId;
134 bool m_networkInterfaceIdHasBeenSet = false;
135
136 Aws::String m_diskId;
137 bool m_diskIdHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace StorageGateway
142} // namespace Aws
void SetNetworkInterfaceId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AttachVolumeRequest & WithNetworkInterfaceId(const Aws::String &value)
AttachVolumeRequest & WithGatewayARN(const char *value)
AttachVolumeRequest & WithDiskId(const Aws::String &value)
AttachVolumeRequest & WithDiskId(Aws::String &&value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AttachVolumeRequest & WithDiskId(const char *value)
AttachVolumeRequest & WithTargetName(const char *value)
AttachVolumeRequest & WithVolumeARN(const char *value)
AttachVolumeRequest & WithGatewayARN(Aws::String &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
AttachVolumeRequest & WithVolumeARN(const Aws::String &value)
AttachVolumeRequest & WithNetworkInterfaceId(const char *value)
AttachVolumeRequest & WithTargetName(Aws::String &&value)
AttachVolumeRequest & WithNetworkInterfaceId(Aws::String &&value)
AttachVolumeRequest & WithGatewayARN(const Aws::String &value)
AttachVolumeRequest & WithTargetName(const Aws::String &value)
AttachVolumeRequest & WithVolumeARN(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String