AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
CreateSnapshotResponse.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/ResponseMetadata.h>
13#include <aws/ec2/model/SSEType.h>
14#include <aws/ec2/model/SnapshotState.h>
15#include <aws/ec2/model/StorageTier.h>
16#include <aws/ec2/model/Tag.h>
17#include <aws/ec2/model/TransferType.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Xml {
27class XmlDocument;
28} // namespace Xml
29} // namespace Utils
30namespace EC2 {
31namespace Model {
38 public:
39 AWS_EC2_API CreateSnapshotResponse() = default;
42
44
49 inline const Aws::String& GetOwnerAlias() const { return m_ownerAlias; }
50 template <typename OwnerAliasT = Aws::String>
51 void SetOwnerAlias(OwnerAliasT&& value) {
52 m_ownerAliasHasBeenSet = true;
53 m_ownerAlias = std::forward<OwnerAliasT>(value);
54 }
55 template <typename OwnerAliasT = Aws::String>
56 CreateSnapshotResponse& WithOwnerAlias(OwnerAliasT&& value) {
57 SetOwnerAlias(std::forward<OwnerAliasT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
70 template <typename OutpostArnT = Aws::String>
71 void SetOutpostArn(OutpostArnT&& value) {
72 m_outpostArnHasBeenSet = true;
73 m_outpostArn = std::forward<OutpostArnT>(value);
74 }
75 template <typename OutpostArnT = Aws::String>
76 CreateSnapshotResponse& WithOutpostArn(OutpostArnT&& value) {
77 SetOutpostArn(std::forward<OutpostArnT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
87 template <typename TagsT = Aws::Vector<Tag>>
88 void SetTags(TagsT&& value) {
89 m_tagsHasBeenSet = true;
90 m_tags = std::forward<TagsT>(value);
91 }
92 template <typename TagsT = Aws::Vector<Tag>>
94 SetTags(std::forward<TagsT>(value));
95 return *this;
96 }
97 template <typename TagsT = Tag>
99 m_tagsHasBeenSet = true;
100 m_tags.emplace_back(std::forward<TagsT>(value));
101 return *this;
102 }
104
106
112 inline StorageTier GetStorageTier() const { return m_storageTier; }
113 inline void SetStorageTier(StorageTier value) {
114 m_storageTierHasBeenSet = true;
115 m_storageTier = value;
116 }
118 SetStorageTier(value);
119 return *this;
120 }
122
124
129 inline const Aws::Utils::DateTime& GetRestoreExpiryTime() const { return m_restoreExpiryTime; }
130 template <typename RestoreExpiryTimeT = Aws::Utils::DateTime>
131 void SetRestoreExpiryTime(RestoreExpiryTimeT&& value) {
132 m_restoreExpiryTimeHasBeenSet = true;
133 m_restoreExpiryTime = std::forward<RestoreExpiryTimeT>(value);
134 }
135 template <typename RestoreExpiryTimeT = Aws::Utils::DateTime>
136 CreateSnapshotResponse& WithRestoreExpiryTime(RestoreExpiryTimeT&& value) {
137 SetRestoreExpiryTime(std::forward<RestoreExpiryTimeT>(value));
138 return *this;
139 }
141
143
146 inline SSEType GetSseType() const { return m_sseType; }
147 inline void SetSseType(SSEType value) {
148 m_sseTypeHasBeenSet = true;
149 m_sseType = value;
150 }
152 SetSseType(value);
153 return *this;
154 }
156
158
163 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
164 template <typename AvailabilityZoneT = Aws::String>
165 void SetAvailabilityZone(AvailabilityZoneT&& value) {
166 m_availabilityZoneHasBeenSet = true;
167 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
168 }
169 template <typename AvailabilityZoneT = Aws::String>
170 CreateSnapshotResponse& WithAvailabilityZone(AvailabilityZoneT&& value) {
171 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
172 return *this;
173 }
175
177
187 inline TransferType GetTransferType() const { return m_transferType; }
188 inline void SetTransferType(TransferType value) {
189 m_transferTypeHasBeenSet = true;
190 m_transferType = value;
191 }
193 SetTransferType(value);
194 return *this;
195 }
197
199
204 inline int GetCompletionDurationMinutes() const { return m_completionDurationMinutes; }
205 inline void SetCompletionDurationMinutes(int value) {
206 m_completionDurationMinutesHasBeenSet = true;
207 m_completionDurationMinutes = value;
208 }
211 return *this;
212 }
214
216
219 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
220 template <typename CompletionTimeT = Aws::Utils::DateTime>
221 void SetCompletionTime(CompletionTimeT&& value) {
222 m_completionTimeHasBeenSet = true;
223 m_completionTime = std::forward<CompletionTimeT>(value);
224 }
225 template <typename CompletionTimeT = Aws::Utils::DateTime>
226 CreateSnapshotResponse& WithCompletionTime(CompletionTimeT&& value) {
227 SetCompletionTime(std::forward<CompletionTimeT>(value));
228 return *this;
229 }
231
233
239 inline long long GetFullSnapshotSizeInBytes() const { return m_fullSnapshotSizeInBytes; }
240 inline void SetFullSnapshotSizeInBytes(long long value) {
241 m_fullSnapshotSizeInBytesHasBeenSet = true;
242 m_fullSnapshotSizeInBytes = value;
243 }
246 return *this;
247 }
249
251
255 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
256 template <typename SnapshotIdT = Aws::String>
257 void SetSnapshotId(SnapshotIdT&& value) {
258 m_snapshotIdHasBeenSet = true;
259 m_snapshotId = std::forward<SnapshotIdT>(value);
260 }
261 template <typename SnapshotIdT = Aws::String>
263 SetSnapshotId(std::forward<SnapshotIdT>(value));
264 return *this;
265 }
267
269
274 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
275 template <typename VolumeIdT = Aws::String>
276 void SetVolumeId(VolumeIdT&& value) {
277 m_volumeIdHasBeenSet = true;
278 m_volumeId = std::forward<VolumeIdT>(value);
279 }
280 template <typename VolumeIdT = Aws::String>
282 SetVolumeId(std::forward<VolumeIdT>(value));
283 return *this;
284 }
286
288
291 inline SnapshotState GetState() const { return m_state; }
292 inline void SetState(SnapshotState value) {
293 m_stateHasBeenSet = true;
294 m_state = value;
295 }
297 SetState(value);
298 return *this;
299 }
301
303
309 inline const Aws::String& GetStateMessage() const { return m_stateMessage; }
310 template <typename StateMessageT = Aws::String>
311 void SetStateMessage(StateMessageT&& value) {
312 m_stateMessageHasBeenSet = true;
313 m_stateMessage = std::forward<StateMessageT>(value);
314 }
315 template <typename StateMessageT = Aws::String>
316 CreateSnapshotResponse& WithStateMessage(StateMessageT&& value) {
317 SetStateMessage(std::forward<StateMessageT>(value));
318 return *this;
319 }
321
323
326 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
327 template <typename StartTimeT = Aws::Utils::DateTime>
328 void SetStartTime(StartTimeT&& value) {
329 m_startTimeHasBeenSet = true;
330 m_startTime = std::forward<StartTimeT>(value);
331 }
332 template <typename StartTimeT = Aws::Utils::DateTime>
334 SetStartTime(std::forward<StartTimeT>(value));
335 return *this;
336 }
338
340
343 inline const Aws::String& GetProgress() const { return m_progress; }
344 template <typename ProgressT = Aws::String>
345 void SetProgress(ProgressT&& value) {
346 m_progressHasBeenSet = true;
347 m_progress = std::forward<ProgressT>(value);
348 }
349 template <typename ProgressT = Aws::String>
351 SetProgress(std::forward<ProgressT>(value));
352 return *this;
353 }
355
357
360 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
361 template <typename OwnerIdT = Aws::String>
362 void SetOwnerId(OwnerIdT&& value) {
363 m_ownerIdHasBeenSet = true;
364 m_ownerId = std::forward<OwnerIdT>(value);
365 }
366 template <typename OwnerIdT = Aws::String>
368 SetOwnerId(std::forward<OwnerIdT>(value));
369 return *this;
370 }
372
374
377 inline const Aws::String& GetDescription() const { return m_description; }
378 template <typename DescriptionT = Aws::String>
379 void SetDescription(DescriptionT&& value) {
380 m_descriptionHasBeenSet = true;
381 m_description = std::forward<DescriptionT>(value);
382 }
383 template <typename DescriptionT = Aws::String>
385 SetDescription(std::forward<DescriptionT>(value));
386 return *this;
387 }
389
391
394 inline int GetVolumeSize() const { return m_volumeSize; }
395 inline void SetVolumeSize(int value) {
396 m_volumeSizeHasBeenSet = true;
397 m_volumeSize = value;
398 }
400 SetVolumeSize(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>
433 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
434 return *this;
435 }
437
439
447 inline const Aws::String& GetDataEncryptionKeyId() const { return m_dataEncryptionKeyId; }
448 template <typename DataEncryptionKeyIdT = Aws::String>
449 void SetDataEncryptionKeyId(DataEncryptionKeyIdT&& value) {
450 m_dataEncryptionKeyIdHasBeenSet = true;
451 m_dataEncryptionKeyId = std::forward<DataEncryptionKeyIdT>(value);
452 }
453 template <typename DataEncryptionKeyIdT = Aws::String>
454 CreateSnapshotResponse& WithDataEncryptionKeyId(DataEncryptionKeyIdT&& value) {
455 SetDataEncryptionKeyId(std::forward<DataEncryptionKeyIdT>(value));
456 return *this;
457 }
459
461
462 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
463 template <typename ResponseMetadataT = ResponseMetadata>
464 void SetResponseMetadata(ResponseMetadataT&& value) {
465 m_responseMetadataHasBeenSet = true;
466 m_responseMetadata = std::forward<ResponseMetadataT>(value);
467 }
468 template <typename ResponseMetadataT = ResponseMetadata>
469 CreateSnapshotResponse& WithResponseMetadata(ResponseMetadataT&& value) {
470 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
471 return *this;
472 }
474 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
475
476 private:
477 Aws::String m_ownerAlias;
478
479 Aws::String m_outpostArn;
480
481 Aws::Vector<Tag> m_tags;
482
483 StorageTier m_storageTier{StorageTier::NOT_SET};
484
485 Aws::Utils::DateTime m_restoreExpiryTime{};
486
487 SSEType m_sseType{SSEType::NOT_SET};
488
489 Aws::String m_availabilityZone;
490
491 TransferType m_transferType{TransferType::NOT_SET};
492
493 int m_completionDurationMinutes{0};
494
495 Aws::Utils::DateTime m_completionTime{};
496
497 long long m_fullSnapshotSizeInBytes{0};
498
499 Aws::String m_snapshotId;
500
501 Aws::String m_volumeId;
502
504
505 Aws::String m_stateMessage;
506
507 Aws::Utils::DateTime m_startTime{};
508
509 Aws::String m_progress;
510
511 Aws::String m_ownerId;
512
513 Aws::String m_description;
514
515 int m_volumeSize{0};
516
517 bool m_encrypted{false};
518
519 Aws::String m_kmsKeyId;
520
521 Aws::String m_dataEncryptionKeyId;
522
523 ResponseMetadata m_responseMetadata;
524 Aws::Http::HttpResponseCode m_HttpResponseCode;
525 bool m_ownerAliasHasBeenSet = false;
526 bool m_outpostArnHasBeenSet = false;
527 bool m_tagsHasBeenSet = false;
528 bool m_storageTierHasBeenSet = false;
529 bool m_restoreExpiryTimeHasBeenSet = false;
530 bool m_sseTypeHasBeenSet = false;
531 bool m_availabilityZoneHasBeenSet = false;
532 bool m_transferTypeHasBeenSet = false;
533 bool m_completionDurationMinutesHasBeenSet = false;
534 bool m_completionTimeHasBeenSet = false;
535 bool m_fullSnapshotSizeInBytesHasBeenSet = false;
536 bool m_snapshotIdHasBeenSet = false;
537 bool m_volumeIdHasBeenSet = false;
538 bool m_stateHasBeenSet = false;
539 bool m_stateMessageHasBeenSet = false;
540 bool m_startTimeHasBeenSet = false;
541 bool m_progressHasBeenSet = false;
542 bool m_ownerIdHasBeenSet = false;
543 bool m_descriptionHasBeenSet = false;
544 bool m_volumeSizeHasBeenSet = false;
545 bool m_encryptedHasBeenSet = false;
546 bool m_kmsKeyIdHasBeenSet = false;
547 bool m_dataEncryptionKeyIdHasBeenSet = false;
548 bool m_responseMetadataHasBeenSet = false;
549};
550
551} // namespace Model
552} // namespace EC2
553} // namespace Aws
CreateSnapshotResponse & WithFullSnapshotSizeInBytes(long long value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateSnapshotResponse & WithAvailabilityZone(AvailabilityZoneT &&value)
CreateSnapshotResponse & WithCompletionDurationMinutes(int value)
const Aws::Utils::DateTime & GetStartTime() const
AWS_EC2_API CreateSnapshotResponse()=default
CreateSnapshotResponse & WithTags(TagsT &&value)
CreateSnapshotResponse & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateSnapshotResponse & WithResponseMetadata(ResponseMetadataT &&value)
CreateSnapshotResponse & AddTags(TagsT &&value)
const Aws::Utils::DateTime & GetCompletionTime() const
CreateSnapshotResponse & WithStateMessage(StateMessageT &&value)
CreateSnapshotResponse & WithOutpostArn(OutpostArnT &&value)
CreateSnapshotResponse & WithRestoreExpiryTime(RestoreExpiryTimeT &&value)
CreateSnapshotResponse & WithEncrypted(bool value)
CreateSnapshotResponse & WithState(SnapshotState value)
void SetDataEncryptionKeyId(DataEncryptionKeyIdT &&value)
CreateSnapshotResponse & WithCompletionTime(CompletionTimeT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
CreateSnapshotResponse & WithVolumeSize(int value)
void SetRestoreExpiryTime(RestoreExpiryTimeT &&value)
CreateSnapshotResponse & WithOwnerAlias(OwnerAliasT &&value)
CreateSnapshotResponse & WithVolumeId(VolumeIdT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
CreateSnapshotResponse & WithSnapshotId(SnapshotIdT &&value)
void SetCompletionTime(CompletionTimeT &&value)
CreateSnapshotResponse & WithDescription(DescriptionT &&value)
CreateSnapshotResponse & WithStartTime(StartTimeT &&value)
CreateSnapshotResponse & WithTransferType(TransferType value)
const Aws::String & GetDataEncryptionKeyId() const
CreateSnapshotResponse & WithOwnerId(OwnerIdT &&value)
const ResponseMetadata & GetResponseMetadata() const
AWS_EC2_API CreateSnapshotResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API CreateSnapshotResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateSnapshotResponse & WithSseType(SSEType value)
CreateSnapshotResponse & WithStorageTier(StorageTier value)
CreateSnapshotResponse & WithDataEncryptionKeyId(DataEncryptionKeyIdT &&value)
const Aws::Utils::DateTime & GetRestoreExpiryTime() const
CreateSnapshotResponse & WithProgress(ProgressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument