AWS SDK for C++  1.9.70
AWS SDK for C++
DetachVolumeResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
36  {
37  public:
41 
42 
46  inline const Aws::Utils::DateTime& GetAttachTime() const{ return m_attachTime; }
47 
51  inline void SetAttachTime(const Aws::Utils::DateTime& value) { m_attachTime = value; }
52 
56  inline void SetAttachTime(Aws::Utils::DateTime&& value) { m_attachTime = std::move(value); }
57 
61  inline DetachVolumeResponse& WithAttachTime(const Aws::Utils::DateTime& value) { SetAttachTime(value); return *this;}
62 
66  inline DetachVolumeResponse& WithAttachTime(Aws::Utils::DateTime&& value) { SetAttachTime(std::move(value)); return *this;}
67 
68 
72  inline const Aws::String& GetDevice() const{ return m_device; }
73 
77  inline void SetDevice(const Aws::String& value) { m_device = value; }
78 
82  inline void SetDevice(Aws::String&& value) { m_device = std::move(value); }
83 
87  inline void SetDevice(const char* value) { m_device.assign(value); }
88 
92  inline DetachVolumeResponse& WithDevice(const Aws::String& value) { SetDevice(value); return *this;}
93 
97  inline DetachVolumeResponse& WithDevice(Aws::String&& value) { SetDevice(std::move(value)); return *this;}
98 
102  inline DetachVolumeResponse& WithDevice(const char* value) { SetDevice(value); return *this;}
103 
104 
108  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
109 
113  inline void SetInstanceId(const Aws::String& value) { m_instanceId = value; }
114 
118  inline void SetInstanceId(Aws::String&& value) { m_instanceId = std::move(value); }
119 
123  inline void SetInstanceId(const char* value) { m_instanceId.assign(value); }
124 
128  inline DetachVolumeResponse& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
129 
133  inline DetachVolumeResponse& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
134 
138  inline DetachVolumeResponse& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
139 
140 
144  inline const VolumeAttachmentState& GetState() const{ return m_state; }
145 
149  inline void SetState(const VolumeAttachmentState& value) { m_state = value; }
150 
154  inline void SetState(VolumeAttachmentState&& value) { m_state = std::move(value); }
155 
159  inline DetachVolumeResponse& WithState(const VolumeAttachmentState& value) { SetState(value); return *this;}
160 
164  inline DetachVolumeResponse& WithState(VolumeAttachmentState&& value) { SetState(std::move(value)); return *this;}
165 
166 
170  inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
171 
175  inline void SetVolumeId(const Aws::String& value) { m_volumeId = value; }
176 
180  inline void SetVolumeId(Aws::String&& value) { m_volumeId = std::move(value); }
181 
185  inline void SetVolumeId(const char* value) { m_volumeId.assign(value); }
186 
190  inline DetachVolumeResponse& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
191 
195  inline DetachVolumeResponse& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
196 
200  inline DetachVolumeResponse& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
201 
202 
206  inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
207 
211  inline void SetDeleteOnTermination(bool value) { m_deleteOnTermination = value; }
212 
216  inline DetachVolumeResponse& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
217 
218 
219 
220  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
221 
222 
223  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
224 
225 
226  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
227 
228 
229  inline DetachVolumeResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
230 
231 
232  inline DetachVolumeResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
233 
234  private:
235 
236  Aws::Utils::DateTime m_attachTime;
237 
238  Aws::String m_device;
239 
240  Aws::String m_instanceId;
241 
242  VolumeAttachmentState m_state;
243 
244  Aws::String m_volumeId;
245 
246  bool m_deleteOnTermination;
247 
248  ResponseMetadata m_responseMetadata;
249  };
250 
251 } // namespace Model
252 } // namespace EC2
253 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::DetachVolumeResponse::GetDeleteOnTermination
bool GetDeleteOnTermination() const
Definition: DetachVolumeResponse.h:206
Aws::EC2::Model::DetachVolumeResponse::WithDevice
DetachVolumeResponse & WithDevice(const Aws::String &value)
Definition: DetachVolumeResponse.h:92
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DetachVolumeResponse::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: DetachVolumeResponse.h:113
Aws::EC2::Model::DetachVolumeResponse::WithAttachTime
DetachVolumeResponse & WithAttachTime(Aws::Utils::DateTime &&value)
Definition: DetachVolumeResponse.h:66
VolumeAttachmentState.h
Aws::EC2::Model::DetachVolumeResponse::SetDevice
void SetDevice(const Aws::String &value)
Definition: DetachVolumeResponse.h:77
Aws::EC2::Model::DetachVolumeResponse::GetDevice
const Aws::String & GetDevice() const
Definition: DetachVolumeResponse.h:72
Aws::EC2::Model::VolumeAttachmentState
VolumeAttachmentState
Definition: VolumeAttachmentState.h:17
DateTime.h
Aws::EC2::Model::DetachVolumeResponse::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: DetachVolumeResponse.h:118
Aws::EC2::Model::DetachVolumeResponse::DetachVolumeResponse
DetachVolumeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DetachVolumeResponse::SetState
void SetState(VolumeAttachmentState &&value)
Definition: DetachVolumeResponse.h:154
ResponseMetadata.h
Aws::EC2::Model::DetachVolumeResponse::DetachVolumeResponse
DetachVolumeResponse()
Aws::EC2::Model::DetachVolumeResponse::SetDevice
void SetDevice(const char *value)
Definition: DetachVolumeResponse.h:87
Aws::EC2::Model::DetachVolumeResponse::SetDeleteOnTermination
void SetDeleteOnTermination(bool value)
Definition: DetachVolumeResponse.h:211
Aws::EC2::Model::DetachVolumeResponse::WithDevice
DetachVolumeResponse & WithDevice(const char *value)
Definition: DetachVolumeResponse.h:102
Aws::EC2::Model::DetachVolumeResponse::WithResponseMetadata
DetachVolumeResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DetachVolumeResponse.h:232
Aws::EC2::Model::DetachVolumeResponse::WithState
DetachVolumeResponse & WithState(const VolumeAttachmentState &value)
Definition: DetachVolumeResponse.h:159
Aws::EC2::Model::DetachVolumeResponse::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: DetachVolumeResponse.h:108
Aws::EC2::Model::DetachVolumeResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DetachVolumeResponse.h:220
Aws::EC2::Model::DetachVolumeResponse::SetVolumeId
void SetVolumeId(Aws::String &&value)
Definition: DetachVolumeResponse.h:180
Aws::EC2::Model::DetachVolumeResponse::GetAttachTime
const Aws::Utils::DateTime & GetAttachTime() const
Definition: DetachVolumeResponse.h:46
Aws::EC2::Model::DetachVolumeResponse::SetAttachTime
void SetAttachTime(Aws::Utils::DateTime &&value)
Definition: DetachVolumeResponse.h:56
Aws::EC2::Model::DetachVolumeResponse::WithAttachTime
DetachVolumeResponse & WithAttachTime(const Aws::Utils::DateTime &value)
Definition: DetachVolumeResponse.h:61
Aws::EC2::Model::DetachVolumeResponse::operator=
DetachVolumeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DetachVolumeResponse::WithVolumeId
DetachVolumeResponse & WithVolumeId(const Aws::String &value)
Definition: DetachVolumeResponse.h:190
Aws::EC2::Model::DetachVolumeResponse::GetState
const VolumeAttachmentState & GetState() const
Definition: DetachVolumeResponse.h:144
Aws::EC2::Model::DetachVolumeResponse::WithVolumeId
DetachVolumeResponse & WithVolumeId(const char *value)
Definition: DetachVolumeResponse.h:200
Aws::EC2::Model::DetachVolumeResponse::SetState
void SetState(const VolumeAttachmentState &value)
Definition: DetachVolumeResponse.h:149
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::DetachVolumeResponse::SetVolumeId
void SetVolumeId(const Aws::String &value)
Definition: DetachVolumeResponse.h:175
AWSString.h
Aws::EC2::Model::DetachVolumeResponse::WithState
DetachVolumeResponse & WithState(VolumeAttachmentState &&value)
Definition: DetachVolumeResponse.h:164
Aws::EC2::Model::DetachVolumeResponse::WithResponseMetadata
DetachVolumeResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DetachVolumeResponse.h:229
Aws::EC2::Model::DetachVolumeResponse::WithDevice
DetachVolumeResponse & WithDevice(Aws::String &&value)
Definition: DetachVolumeResponse.h:97
Aws::EC2::Model::DetachVolumeResponse::SetVolumeId
void SetVolumeId(const char *value)
Definition: DetachVolumeResponse.h:185
Aws::EC2::Model::DetachVolumeResponse::GetVolumeId
const Aws::String & GetVolumeId() const
Definition: DetachVolumeResponse.h:170
Aws::EC2::Model::DetachVolumeResponse::WithInstanceId
DetachVolumeResponse & WithInstanceId(Aws::String &&value)
Definition: DetachVolumeResponse.h:133
Aws::EC2::Model::DetachVolumeResponse::SetDevice
void SetDevice(Aws::String &&value)
Definition: DetachVolumeResponse.h:82
Aws::EC2::Model::DetachVolumeResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DetachVolumeResponse.h:223
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DetachVolumeResponse::WithVolumeId
DetachVolumeResponse & WithVolumeId(Aws::String &&value)
Definition: DetachVolumeResponse.h:195
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DetachVolumeResponse::WithDeleteOnTermination
DetachVolumeResponse & WithDeleteOnTermination(bool value)
Definition: DetachVolumeResponse.h:216
Aws::EC2::Model::DetachVolumeResponse::WithInstanceId
DetachVolumeResponse & WithInstanceId(const Aws::String &value)
Definition: DetachVolumeResponse.h:128
Aws::EC2::Model::DetachVolumeResponse::WithInstanceId
DetachVolumeResponse & WithInstanceId(const char *value)
Definition: DetachVolumeResponse.h:138
Aws::EC2::Model::DetachVolumeResponse::SetInstanceId
void SetInstanceId(const char *value)
Definition: DetachVolumeResponse.h:123
Aws::EC2::Model::DetachVolumeResponse
Definition: DetachVolumeResponse.h:36
Aws::EC2::Model::DetachVolumeResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DetachVolumeResponse.h:226
EC2_EXPORTS.h
Aws::EC2::Model::DetachVolumeResponse::SetAttachTime
void SetAttachTime(const Aws::Utils::DateTime &value)
Definition: DetachVolumeResponse.h:51