AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
AttachVolumeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/storagegateway/StorageGateway_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace StorageGateway {
15namespace Model {
16
23 public:
24 AWS_STORAGEGATEWAY_API AttachVolumeRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AttachVolume"; }
31
32 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
33
34 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
41 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
42 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
43 template <typename GatewayARNT = Aws::String>
44 void SetGatewayARN(GatewayARNT&& value) {
45 m_gatewayARNHasBeenSet = true;
46 m_gatewayARN = std::forward<GatewayARNT>(value);
47 }
48 template <typename GatewayARNT = Aws::String>
49 AttachVolumeRequest& WithGatewayARN(GatewayARNT&& value) {
50 SetGatewayARN(std::forward<GatewayARNT>(value));
51 return *this;
52 }
54
56
65 inline const Aws::String& GetTargetName() const { return m_targetName; }
66 inline bool TargetNameHasBeenSet() const { return m_targetNameHasBeenSet; }
67 template <typename TargetNameT = Aws::String>
68 void SetTargetName(TargetNameT&& value) {
69 m_targetNameHasBeenSet = true;
70 m_targetName = std::forward<TargetNameT>(value);
71 }
72 template <typename TargetNameT = Aws::String>
73 AttachVolumeRequest& WithTargetName(TargetNameT&& value) {
74 SetTargetName(std::forward<TargetNameT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetVolumeARN() const { return m_volumeARN; }
85 inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
86 template <typename VolumeARNT = Aws::String>
87 void SetVolumeARN(VolumeARNT&& value) {
88 m_volumeARNHasBeenSet = true;
89 m_volumeARN = std::forward<VolumeARNT>(value);
90 }
91 template <typename VolumeARNT = Aws::String>
92 AttachVolumeRequest& WithVolumeARN(VolumeARNT&& value) {
93 SetVolumeARN(std::forward<VolumeARNT>(value));
94 return *this;
95 }
97
99
105 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
106 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
107 template <typename NetworkInterfaceIdT = Aws::String>
108 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) {
109 m_networkInterfaceIdHasBeenSet = true;
110 m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value);
111 }
112 template <typename NetworkInterfaceIdT = Aws::String>
113 AttachVolumeRequest& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) {
114 SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value));
115 return *this;
116 }
118
120
125 inline const Aws::String& GetDiskId() const { return m_diskId; }
126 inline bool DiskIdHasBeenSet() const { return m_diskIdHasBeenSet; }
127 template <typename DiskIdT = Aws::String>
128 void SetDiskId(DiskIdT&& value) {
129 m_diskIdHasBeenSet = true;
130 m_diskId = std::forward<DiskIdT>(value);
131 }
132 template <typename DiskIdT = Aws::String>
133 AttachVolumeRequest& WithDiskId(DiskIdT&& value) {
134 SetDiskId(std::forward<DiskIdT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_gatewayARN;
140
141 Aws::String m_targetName;
142
143 Aws::String m_volumeARN;
144
145 Aws::String m_networkInterfaceId;
146
147 Aws::String m_diskId;
148 bool m_gatewayARNHasBeenSet = false;
149 bool m_targetNameHasBeenSet = false;
150 bool m_volumeARNHasBeenSet = false;
151 bool m_networkInterfaceIdHasBeenSet = false;
152 bool m_diskIdHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace StorageGateway
157} // namespace Aws
AttachVolumeRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
virtual const char * GetServiceRequestName() const override
AttachVolumeRequest & WithGatewayARN(GatewayARNT &&value)
AttachVolumeRequest & WithDiskId(DiskIdT &&value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
AttachVolumeRequest & WithTargetName(TargetNameT &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
AWS_STORAGEGATEWAY_API AttachVolumeRequest()=default
AttachVolumeRequest & WithVolumeARN(VolumeARNT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String