AWS SDK for C++  1.9.68
AWS SDK for C++
AttachVolumeResponse.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 AttachVolumeResponse& WithAttachTime(const Aws::Utils::DateTime& value) { SetAttachTime(value); return *this;}
62 
66  inline AttachVolumeResponse& 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 AttachVolumeResponse& WithDevice(const Aws::String& value) { SetDevice(value); return *this;}
93 
97  inline AttachVolumeResponse& WithDevice(Aws::String&& value) { SetDevice(std::move(value)); return *this;}
98 
102  inline AttachVolumeResponse& 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 AttachVolumeResponse& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
129 
133  inline AttachVolumeResponse& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
134 
138  inline AttachVolumeResponse& 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 AttachVolumeResponse& WithState(const VolumeAttachmentState& value) { SetState(value); return *this;}
160 
164  inline AttachVolumeResponse& 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 AttachVolumeResponse& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
191 
195  inline AttachVolumeResponse& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
196 
200  inline AttachVolumeResponse& 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 AttachVolumeResponse& 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 AttachVolumeResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
230 
231 
232  inline AttachVolumeResponse& 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::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::AttachVolumeResponse::SetInstanceId
void SetInstanceId(const char *value)
Definition: AttachVolumeResponse.h:123
VolumeAttachmentState.h
Aws::EC2::Model::AttachVolumeResponse::WithInstanceId
AttachVolumeResponse & WithInstanceId(const char *value)
Definition: AttachVolumeResponse.h:138
Aws::EC2::Model::AttachVolumeResponse::WithResponseMetadata
AttachVolumeResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: AttachVolumeResponse.h:229
Aws::EC2::Model::AttachVolumeResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: AttachVolumeResponse.h:223
Aws::EC2::Model::VolumeAttachmentState
VolumeAttachmentState
Definition: VolumeAttachmentState.h:17
DateTime.h
Aws::EC2::Model::AttachVolumeResponse::SetState
void SetState(VolumeAttachmentState &&value)
Definition: AttachVolumeResponse.h:154
Aws::EC2::Model::AttachVolumeResponse::GetDevice
const Aws::String & GetDevice() const
Definition: AttachVolumeResponse.h:72
Aws::EC2::Model::AttachVolumeResponse::SetState
void SetState(const VolumeAttachmentState &value)
Definition: AttachVolumeResponse.h:149
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AttachVolumeResponse::AttachVolumeResponse
AttachVolumeResponse()
ResponseMetadata.h
Aws::EC2::Model::AttachVolumeResponse::WithDevice
AttachVolumeResponse & WithDevice(const char *value)
Definition: AttachVolumeResponse.h:102
Aws::EC2::Model::AttachVolumeResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: AttachVolumeResponse.h:220
Aws::EC2::Model::AttachVolumeResponse::SetDevice
void SetDevice(const Aws::String &value)
Definition: AttachVolumeResponse.h:77
Aws::EC2::Model::AttachVolumeResponse::WithState
AttachVolumeResponse & WithState(VolumeAttachmentState &&value)
Definition: AttachVolumeResponse.h:164
Aws::EC2::Model::AttachVolumeResponse::WithVolumeId
AttachVolumeResponse & WithVolumeId(const Aws::String &value)
Definition: AttachVolumeResponse.h:190
Aws::EC2::Model::AttachVolumeResponse::WithDeleteOnTermination
AttachVolumeResponse & WithDeleteOnTermination(bool value)
Definition: AttachVolumeResponse.h:216
Aws::EC2::Model::AttachVolumeResponse::SetVolumeId
void SetVolumeId(const char *value)
Definition: AttachVolumeResponse.h:185
Aws::EC2::Model::AttachVolumeResponse::WithAttachTime
AttachVolumeResponse & WithAttachTime(Aws::Utils::DateTime &&value)
Definition: AttachVolumeResponse.h:66
Aws::EC2::Model::AttachVolumeResponse::AttachVolumeResponse
AttachVolumeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::AttachVolumeResponse::operator=
AttachVolumeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::AttachVolumeResponse::SetAttachTime
void SetAttachTime(const Aws::Utils::DateTime &value)
Definition: AttachVolumeResponse.h:51
Aws::EC2::Model::AttachVolumeResponse::WithInstanceId
AttachVolumeResponse & WithInstanceId(const Aws::String &value)
Definition: AttachVolumeResponse.h:128
Aws::EC2::Model::AttachVolumeResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: AttachVolumeResponse.h:226
Aws::EC2::Model::AttachVolumeResponse::GetState
const VolumeAttachmentState & GetState() const
Definition: AttachVolumeResponse.h:144
Aws::EC2::Model::AttachVolumeResponse::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: AttachVolumeResponse.h:113
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::AttachVolumeResponse::WithVolumeId
AttachVolumeResponse & WithVolumeId(const char *value)
Definition: AttachVolumeResponse.h:200
Aws::EC2::Model::AttachVolumeResponse::GetDeleteOnTermination
bool GetDeleteOnTermination() const
Definition: AttachVolumeResponse.h:206
Aws::EC2::Model::AttachVolumeResponse::WithInstanceId
AttachVolumeResponse & WithInstanceId(Aws::String &&value)
Definition: AttachVolumeResponse.h:133
Aws::EC2::Model::AttachVolumeResponse::WithDevice
AttachVolumeResponse & WithDevice(const Aws::String &value)
Definition: AttachVolumeResponse.h:92
Aws::EC2::Model::AttachVolumeResponse::SetDevice
void SetDevice(Aws::String &&value)
Definition: AttachVolumeResponse.h:82
Aws::EC2::Model::AttachVolumeResponse
Definition: AttachVolumeResponse.h:36
Aws::EC2::Model::AttachVolumeResponse::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: AttachVolumeResponse.h:108
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AttachVolumeResponse::SetDeleteOnTermination
void SetDeleteOnTermination(bool value)
Definition: AttachVolumeResponse.h:211
Aws::EC2::Model::AttachVolumeResponse::SetDevice
void SetDevice(const char *value)
Definition: AttachVolumeResponse.h:87
Aws::EC2::Model::AttachVolumeResponse::WithResponseMetadata
AttachVolumeResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: AttachVolumeResponse.h:232
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::AttachVolumeResponse::SetVolumeId
void SetVolumeId(Aws::String &&value)
Definition: AttachVolumeResponse.h:180
Aws::EC2::Model::AttachVolumeResponse::WithState
AttachVolumeResponse & WithState(const VolumeAttachmentState &value)
Definition: AttachVolumeResponse.h:159
Aws::EC2::Model::AttachVolumeResponse::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: AttachVolumeResponse.h:118
Aws::EC2::Model::AttachVolumeResponse::GetVolumeId
const Aws::String & GetVolumeId() const
Definition: AttachVolumeResponse.h:170
Aws::EC2::Model::AttachVolumeResponse::SetVolumeId
void SetVolumeId(const Aws::String &value)
Definition: AttachVolumeResponse.h:175
EC2_EXPORTS.h
Aws::EC2::Model::AttachVolumeResponse::WithVolumeId
AttachVolumeResponse & WithVolumeId(Aws::String &&value)
Definition: AttachVolumeResponse.h:195
Aws::EC2::Model::AttachVolumeResponse::SetAttachTime
void SetAttachTime(Aws::Utils::DateTime &&value)
Definition: AttachVolumeResponse.h:56
Aws::EC2::Model::AttachVolumeResponse::GetAttachTime
const Aws::Utils::DateTime & GetAttachTime() const
Definition: AttachVolumeResponse.h:46
Aws::EC2::Model::AttachVolumeResponse::WithAttachTime
AttachVolumeResponse & WithAttachTime(const Aws::Utils::DateTime &value)
Definition: AttachVolumeResponse.h:61
Aws::EC2::Model::AttachVolumeResponse::WithDevice
AttachVolumeResponse & WithDevice(Aws::String &&value)
Definition: AttachVolumeResponse.h:97