AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
CreateVolumeResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/OperatorResponse.h>
13#include <aws/ec2/model/ResponseMetadata.h>
14#include <aws/ec2/model/SSEType.h>
15#include <aws/ec2/model/Tag.h>
16#include <aws/ec2/model/VolumeAttachment.h>
17#include <aws/ec2/model/VolumeState.h>
18#include <aws/ec2/model/VolumeType.h>
19
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Xml {
28class XmlDocument;
29} // namespace Xml
30} // namespace Utils
31namespace EC2 {
32namespace Model {
39 public:
40 AWS_EC2_API CreateVolumeResponse() = default;
43
45
48 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
49 template <typename AvailabilityZoneIdT = Aws::String>
50 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
51 m_availabilityZoneIdHasBeenSet = true;
52 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
53 }
54 template <typename AvailabilityZoneIdT = Aws::String>
55 CreateVolumeResponse& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
56 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
66 template <typename OutpostArnT = Aws::String>
67 void SetOutpostArn(OutpostArnT&& value) {
68 m_outpostArnHasBeenSet = true;
69 m_outpostArn = std::forward<OutpostArnT>(value);
70 }
71 template <typename OutpostArnT = Aws::String>
72 CreateVolumeResponse& WithOutpostArn(OutpostArnT&& value) {
73 SetOutpostArn(std::forward<OutpostArnT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetSourceVolumeId() const { return m_sourceVolumeId; }
84 template <typename SourceVolumeIdT = Aws::String>
85 void SetSourceVolumeId(SourceVolumeIdT&& value) {
86 m_sourceVolumeIdHasBeenSet = true;
87 m_sourceVolumeId = std::forward<SourceVolumeIdT>(value);
88 }
89 template <typename SourceVolumeIdT = Aws::String>
90 CreateVolumeResponse& WithSourceVolumeId(SourceVolumeIdT&& value) {
91 SetSourceVolumeId(std::forward<SourceVolumeIdT>(value));
92 return *this;
93 }
95
97
104 inline int GetIops() const { return m_iops; }
105 inline void SetIops(int value) {
106 m_iopsHasBeenSet = true;
107 m_iops = value;
108 }
109 inline CreateVolumeResponse& WithIops(int value) {
110 SetIops(value);
111 return *this;
112 }
114
116
119 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
120 template <typename TagsT = Aws::Vector<Tag>>
121 void SetTags(TagsT&& value) {
122 m_tagsHasBeenSet = true;
123 m_tags = std::forward<TagsT>(value);
124 }
125 template <typename TagsT = Aws::Vector<Tag>>
127 SetTags(std::forward<TagsT>(value));
128 return *this;
129 }
130 template <typename TagsT = Tag>
132 m_tagsHasBeenSet = true;
133 m_tags.emplace_back(std::forward<TagsT>(value));
134 return *this;
135 }
137
139
142 inline VolumeType GetVolumeType() const { return m_volumeType; }
143 inline void SetVolumeType(VolumeType value) {
144 m_volumeTypeHasBeenSet = true;
145 m_volumeType = value;
146 }
148 SetVolumeType(value);
149 return *this;
150 }
152
154
158 inline bool GetFastRestored() const { return m_fastRestored; }
159 inline void SetFastRestored(bool value) {
160 m_fastRestoredHasBeenSet = true;
161 m_fastRestored = value;
162 }
164 SetFastRestored(value);
165 return *this;
166 }
168
170
173 inline bool GetMultiAttachEnabled() const { return m_multiAttachEnabled; }
174 inline void SetMultiAttachEnabled(bool value) {
175 m_multiAttachEnabledHasBeenSet = true;
176 m_multiAttachEnabled = value;
177 }
180 return *this;
181 }
183
185
188 inline int GetThroughput() const { return m_throughput; }
189 inline void SetThroughput(int value) {
190 m_throughputHasBeenSet = true;
191 m_throughput = value;
192 }
194 SetThroughput(value);
195 return *this;
196 }
198
200
204 inline SSEType GetSseType() const { return m_sseType; }
205 inline void SetSseType(SSEType value) {
206 m_sseTypeHasBeenSet = true;
207 m_sseType = value;
208 }
210 SetSseType(value);
211 return *this;
212 }
214
216
219 inline const OperatorResponse& GetOperator() const { return m_operator; }
220 template <typename OperatorT = OperatorResponse>
221 void SetOperator(OperatorT&& value) {
222 m_operatorHasBeenSet = true;
223 m_operator = std::forward<OperatorT>(value);
224 }
225 template <typename OperatorT = OperatorResponse>
226 CreateVolumeResponse& WithOperator(OperatorT&& value) {
227 SetOperator(std::forward<OperatorT>(value));
228 return *this;
229 }
231
233
238 inline int GetVolumeInitializationRate() const { return m_volumeInitializationRate; }
239 inline void SetVolumeInitializationRate(int value) {
240 m_volumeInitializationRateHasBeenSet = true;
241 m_volumeInitializationRate = value;
242 }
245 return *this;
246 }
248
250
253 inline const Aws::String& GetVolumeArn() const { return m_volumeArn; }
254 template <typename VolumeArnT = Aws::String>
255 void SetVolumeArn(VolumeArnT&& value) {
256 m_volumeArnHasBeenSet = true;
257 m_volumeArn = std::forward<VolumeArnT>(value);
258 }
259 template <typename VolumeArnT = Aws::String>
260 CreateVolumeResponse& WithVolumeArn(VolumeArnT&& value) {
261 SetVolumeArn(std::forward<VolumeArnT>(value));
262 return *this;
263 }
265
267
270 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
271 template <typename OwnerIdT = Aws::String>
272 void SetOwnerId(OwnerIdT&& value) {
273 m_ownerIdHasBeenSet = true;
274 m_ownerId = std::forward<OwnerIdT>(value);
275 }
276 template <typename OwnerIdT = Aws::String>
278 SetOwnerId(std::forward<OwnerIdT>(value));
279 return *this;
280 }
282
284
287 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
288 template <typename VolumeIdT = Aws::String>
289 void SetVolumeId(VolumeIdT&& value) {
290 m_volumeIdHasBeenSet = true;
291 m_volumeId = std::forward<VolumeIdT>(value);
292 }
293 template <typename VolumeIdT = Aws::String>
294 CreateVolumeResponse& WithVolumeId(VolumeIdT&& value) {
295 SetVolumeId(std::forward<VolumeIdT>(value));
296 return *this;
297 }
299
301
304 inline int GetSize() const { return m_size; }
305 inline void SetSize(int value) {
306 m_sizeHasBeenSet = true;
307 m_size = value;
308 }
309 inline CreateVolumeResponse& WithSize(int value) {
310 SetSize(value);
311 return *this;
312 }
314
316
319 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
320 template <typename SnapshotIdT = Aws::String>
321 void SetSnapshotId(SnapshotIdT&& value) {
322 m_snapshotIdHasBeenSet = true;
323 m_snapshotId = std::forward<SnapshotIdT>(value);
324 }
325 template <typename SnapshotIdT = Aws::String>
326 CreateVolumeResponse& WithSnapshotId(SnapshotIdT&& value) {
327 SetSnapshotId(std::forward<SnapshotIdT>(value));
328 return *this;
329 }
331
333
336 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
337 template <typename AvailabilityZoneT = Aws::String>
338 void SetAvailabilityZone(AvailabilityZoneT&& value) {
339 m_availabilityZoneHasBeenSet = true;
340 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
341 }
342 template <typename AvailabilityZoneT = Aws::String>
343 CreateVolumeResponse& WithAvailabilityZone(AvailabilityZoneT&& value) {
344 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
345 return *this;
346 }
348
350
353 inline VolumeState GetState() const { return m_state; }
354 inline void SetState(VolumeState value) {
355 m_stateHasBeenSet = true;
356 m_state = value;
357 }
359 SetState(value);
360 return *this;
361 }
363
365
368 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
369 template <typename CreateTimeT = Aws::Utils::DateTime>
370 void SetCreateTime(CreateTimeT&& value) {
371 m_createTimeHasBeenSet = true;
372 m_createTime = std::forward<CreateTimeT>(value);
373 }
374 template <typename CreateTimeT = Aws::Utils::DateTime>
375 CreateVolumeResponse& WithCreateTime(CreateTimeT&& value) {
376 SetCreateTime(std::forward<CreateTimeT>(value));
377 return *this;
378 }
380
382
386 inline const Aws::Vector<VolumeAttachment>& GetAttachments() const { return m_attachments; }
387 template <typename AttachmentsT = Aws::Vector<VolumeAttachment>>
388 void SetAttachments(AttachmentsT&& value) {
389 m_attachmentsHasBeenSet = true;
390 m_attachments = std::forward<AttachmentsT>(value);
391 }
392 template <typename AttachmentsT = Aws::Vector<VolumeAttachment>>
393 CreateVolumeResponse& WithAttachments(AttachmentsT&& value) {
394 SetAttachments(std::forward<AttachmentsT>(value));
395 return *this;
396 }
397 template <typename AttachmentsT = VolumeAttachment>
398 CreateVolumeResponse& AddAttachments(AttachmentsT&& value) {
399 m_attachmentsHasBeenSet = true;
400 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
401 return *this;
402 }
404
406
409 inline bool GetEncrypted() const { return m_encrypted; }
410 inline void SetEncrypted(bool value) {
411 m_encryptedHasBeenSet = true;
412 m_encrypted = value;
413 }
415 SetEncrypted(value);
416 return *this;
417 }
419
421
425 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
426 template <typename KmsKeyIdT = Aws::String>
427 void SetKmsKeyId(KmsKeyIdT&& value) {
428 m_kmsKeyIdHasBeenSet = true;
429 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
430 }
431 template <typename KmsKeyIdT = Aws::String>
432 CreateVolumeResponse& WithKmsKeyId(KmsKeyIdT&& value) {
433 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
434 return *this;
435 }
437
439
440 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
441 template <typename ResponseMetadataT = ResponseMetadata>
442 void SetResponseMetadata(ResponseMetadataT&& value) {
443 m_responseMetadataHasBeenSet = true;
444 m_responseMetadata = std::forward<ResponseMetadataT>(value);
445 }
446 template <typename ResponseMetadataT = ResponseMetadata>
447 CreateVolumeResponse& WithResponseMetadata(ResponseMetadataT&& value) {
448 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
449 return *this;
450 }
452 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
453
454 private:
455 Aws::String m_availabilityZoneId;
456
457 Aws::String m_outpostArn;
458
459 Aws::String m_sourceVolumeId;
460
461 int m_iops{0};
462
463 Aws::Vector<Tag> m_tags;
464
465 VolumeType m_volumeType{VolumeType::NOT_SET};
466
467 bool m_fastRestored{false};
468
469 bool m_multiAttachEnabled{false};
470
471 int m_throughput{0};
472
473 SSEType m_sseType{SSEType::NOT_SET};
474
475 OperatorResponse m_operator;
476
477 int m_volumeInitializationRate{0};
478
479 Aws::String m_volumeArn;
480
481 Aws::String m_ownerId;
482
483 Aws::String m_volumeId;
484
485 int m_size{0};
486
487 Aws::String m_snapshotId;
488
489 Aws::String m_availabilityZone;
490
492
493 Aws::Utils::DateTime m_createTime{};
494
495 Aws::Vector<VolumeAttachment> m_attachments;
496
497 bool m_encrypted{false};
498
499 Aws::String m_kmsKeyId;
500
501 ResponseMetadata m_responseMetadata;
502 Aws::Http::HttpResponseCode m_HttpResponseCode;
503 bool m_availabilityZoneIdHasBeenSet = false;
504 bool m_outpostArnHasBeenSet = false;
505 bool m_sourceVolumeIdHasBeenSet = false;
506 bool m_iopsHasBeenSet = false;
507 bool m_tagsHasBeenSet = false;
508 bool m_volumeTypeHasBeenSet = false;
509 bool m_fastRestoredHasBeenSet = false;
510 bool m_multiAttachEnabledHasBeenSet = false;
511 bool m_throughputHasBeenSet = false;
512 bool m_sseTypeHasBeenSet = false;
513 bool m_operatorHasBeenSet = false;
514 bool m_volumeInitializationRateHasBeenSet = false;
515 bool m_volumeArnHasBeenSet = false;
516 bool m_ownerIdHasBeenSet = false;
517 bool m_volumeIdHasBeenSet = false;
518 bool m_sizeHasBeenSet = false;
519 bool m_snapshotIdHasBeenSet = false;
520 bool m_availabilityZoneHasBeenSet = false;
521 bool m_stateHasBeenSet = false;
522 bool m_createTimeHasBeenSet = false;
523 bool m_attachmentsHasBeenSet = false;
524 bool m_encryptedHasBeenSet = false;
525 bool m_kmsKeyIdHasBeenSet = false;
526 bool m_responseMetadataHasBeenSet = false;
527};
528
529} // namespace Model
530} // namespace EC2
531} // namespace Aws
CreateVolumeResponse & WithVolumeType(VolumeType value)
const Aws::String & GetSnapshotId() const
const Aws::String & GetAvailabilityZone() const
CreateVolumeResponse & WithThroughput(int value)
const Aws::String & GetAvailabilityZoneId() const
CreateVolumeResponse & AddTags(TagsT &&value)
CreateVolumeResponse & WithKmsKeyId(KmsKeyIdT &&value)
CreateVolumeResponse & WithAvailabilityZone(AvailabilityZoneT &&value)
CreateVolumeResponse & WithVolumeArn(VolumeArnT &&value)
AWS_EC2_API CreateVolumeResponse()=default
CreateVolumeResponse & WithOwnerId(OwnerIdT &&value)
const Aws::String & GetSourceVolumeId() const
const Aws::Vector< VolumeAttachment > & GetAttachments() const
CreateVolumeResponse & WithCreateTime(CreateTimeT &&value)
CreateVolumeResponse & WithSize(int value)
AWS_EC2_API CreateVolumeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateVolumeResponse & WithSourceVolumeId(SourceVolumeIdT &&value)
CreateVolumeResponse & AddAttachments(AttachmentsT &&value)
AWS_EC2_API CreateVolumeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateVolumeResponse & WithTags(TagsT &&value)
CreateVolumeResponse & WithMultiAttachEnabled(bool value)
CreateVolumeResponse & WithResponseMetadata(ResponseMetadataT &&value)
CreateVolumeResponse & WithIops(int value)
CreateVolumeResponse & WithVolumeInitializationRate(int value)
CreateVolumeResponse & WithState(VolumeState value)
const ResponseMetadata & GetResponseMetadata() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
CreateVolumeResponse & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
void SetSourceVolumeId(SourceVolumeIdT &&value)
CreateVolumeResponse & WithAttachments(AttachmentsT &&value)
CreateVolumeResponse & WithVolumeId(VolumeIdT &&value)
CreateVolumeResponse & WithOutpostArn(OutpostArnT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
CreateVolumeResponse & WithSnapshotId(SnapshotIdT &&value)
CreateVolumeResponse & WithOperator(OperatorT &&value)
CreateVolumeResponse & WithFastRestored(bool value)
const OperatorResponse & GetOperator() const
CreateVolumeResponse & WithSseType(SSEType value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
CreateVolumeResponse & WithEncrypted(bool value)
const Aws::String & GetOutpostArn() const
const Aws::Vector< Tag > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument