AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
DescribeRecoveryPointResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/CalculatedLifecycle.h>
9#include <aws/backup/model/EncryptionKeyType.h>
10#include <aws/backup/model/IndexStatus.h>
11#include <aws/backup/model/Lifecycle.h>
12#include <aws/backup/model/RecoveryPointCreator.h>
13#include <aws/backup/model/RecoveryPointStatus.h>
14#include <aws/backup/model/ScanResult.h>
15#include <aws/backup/model/StorageClass.h>
16#include <aws/backup/model/VaultType.h>
17#include <aws/core/http/HttpResponse.h>
18#include <aws/core/utils/DateTime.h>
19#include <aws/core/utils/memory/stl/AWSString.h>
20#include <aws/core/utils/memory/stl/AWSVector.h>
21
22#include <utility>
23
24namespace Aws {
25template <typename RESULT_TYPE>
26class AmazonWebServiceResult;
27
28namespace Utils {
29namespace Json {
30class JsonValue;
31} // namespace Json
32} // namespace Utils
33namespace Backup {
34namespace Model {
36 public:
37 AWS_BACKUP_API DescribeRecoveryPointResult() = default;
40
42
46 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
47 template <typename RecoveryPointArnT = Aws::String>
48 void SetRecoveryPointArn(RecoveryPointArnT&& value) {
49 m_recoveryPointArnHasBeenSet = true;
50 m_recoveryPointArn = std::forward<RecoveryPointArnT>(value);
51 }
52 template <typename RecoveryPointArnT = Aws::String>
54 SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
66 template <typename BackupVaultNameT = Aws::String>
67 void SetBackupVaultName(BackupVaultNameT&& value) {
68 m_backupVaultNameHasBeenSet = true;
69 m_backupVaultName = std::forward<BackupVaultNameT>(value);
70 }
71 template <typename BackupVaultNameT = Aws::String>
73 SetBackupVaultName(std::forward<BackupVaultNameT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetBackupVaultArn() const { return m_backupVaultArn; }
84 template <typename BackupVaultArnT = Aws::String>
85 void SetBackupVaultArn(BackupVaultArnT&& value) {
86 m_backupVaultArnHasBeenSet = true;
87 m_backupVaultArn = std::forward<BackupVaultArnT>(value);
88 }
89 template <typename BackupVaultArnT = Aws::String>
91 SetBackupVaultArn(std::forward<BackupVaultArnT>(value));
92 return *this;
93 }
95
97
104 inline const Aws::String& GetSourceBackupVaultArn() const { return m_sourceBackupVaultArn; }
105 template <typename SourceBackupVaultArnT = Aws::String>
106 void SetSourceBackupVaultArn(SourceBackupVaultArnT&& value) {
107 m_sourceBackupVaultArnHasBeenSet = true;
108 m_sourceBackupVaultArn = std::forward<SourceBackupVaultArnT>(value);
109 }
110 template <typename SourceBackupVaultArnT = Aws::String>
112 SetSourceBackupVaultArn(std::forward<SourceBackupVaultArnT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
123 template <typename ResourceArnT = Aws::String>
124 void SetResourceArn(ResourceArnT&& value) {
125 m_resourceArnHasBeenSet = true;
126 m_resourceArn = std::forward<ResourceArnT>(value);
127 }
128 template <typename ResourceArnT = Aws::String>
130 SetResourceArn(std::forward<ResourceArnT>(value));
131 return *this;
132 }
134
136
141 inline const Aws::String& GetResourceType() const { return m_resourceType; }
142 template <typename ResourceTypeT = Aws::String>
143 void SetResourceType(ResourceTypeT&& value) {
144 m_resourceTypeHasBeenSet = true;
145 m_resourceType = std::forward<ResourceTypeT>(value);
146 }
147 template <typename ResourceTypeT = Aws::String>
149 SetResourceType(std::forward<ResourceTypeT>(value));
150 return *this;
151 }
153
155
161 inline const RecoveryPointCreator& GetCreatedBy() const { return m_createdBy; }
162 template <typename CreatedByT = RecoveryPointCreator>
163 void SetCreatedBy(CreatedByT&& value) {
164 m_createdByHasBeenSet = true;
165 m_createdBy = std::forward<CreatedByT>(value);
166 }
167 template <typename CreatedByT = RecoveryPointCreator>
169 SetCreatedBy(std::forward<CreatedByT>(value));
170 return *this;
171 }
173
175
179 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
180 template <typename IamRoleArnT = Aws::String>
181 void SetIamRoleArn(IamRoleArnT&& value) {
182 m_iamRoleArnHasBeenSet = true;
183 m_iamRoleArn = std::forward<IamRoleArnT>(value);
184 }
185 template <typename IamRoleArnT = Aws::String>
187 SetIamRoleArn(std::forward<IamRoleArnT>(value));
188 return *this;
189 }
191
193
228 inline RecoveryPointStatus GetStatus() const { return m_status; }
229 inline void SetStatus(RecoveryPointStatus value) {
230 m_statusHasBeenSet = true;
231 m_status = value;
232 }
234 SetStatus(value);
235 return *this;
236 }
238
240
243 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
244 template <typename StatusMessageT = Aws::String>
245 void SetStatusMessage(StatusMessageT&& value) {
246 m_statusMessageHasBeenSet = true;
247 m_statusMessage = std::forward<StatusMessageT>(value);
248 }
249 template <typename StatusMessageT = Aws::String>
251 SetStatusMessage(std::forward<StatusMessageT>(value));
252 return *this;
253 }
255
257
263 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
264 template <typename CreationDateT = Aws::Utils::DateTime>
265 void SetCreationDate(CreationDateT&& value) {
266 m_creationDateHasBeenSet = true;
267 m_creationDate = std::forward<CreationDateT>(value);
268 }
269 template <typename CreationDateT = Aws::Utils::DateTime>
271 SetCreationDate(std::forward<CreationDateT>(value));
272 return *this;
273 }
275
277
281 inline const Aws::Utils::DateTime& GetInitiationDate() const { return m_initiationDate; }
282 template <typename InitiationDateT = Aws::Utils::DateTime>
283 void SetInitiationDate(InitiationDateT&& value) {
284 m_initiationDateHasBeenSet = true;
285 m_initiationDate = std::forward<InitiationDateT>(value);
286 }
287 template <typename InitiationDateT = Aws::Utils::DateTime>
289 SetInitiationDate(std::forward<InitiationDateT>(value));
290 return *this;
291 }
293
295
301 inline const Aws::Utils::DateTime& GetCompletionDate() const { return m_completionDate; }
302 template <typename CompletionDateT = Aws::Utils::DateTime>
303 void SetCompletionDate(CompletionDateT&& value) {
304 m_completionDateHasBeenSet = true;
305 m_completionDate = std::forward<CompletionDateT>(value);
306 }
307 template <typename CompletionDateT = Aws::Utils::DateTime>
309 SetCompletionDate(std::forward<CompletionDateT>(value));
310 return *this;
311 }
313
315
318 inline long long GetBackupSizeInBytes() const { return m_backupSizeInBytes; }
319 inline void SetBackupSizeInBytes(long long value) {
320 m_backupSizeInBytesHasBeenSet = true;
321 m_backupSizeInBytes = value;
322 }
325 return *this;
326 }
328
330
334 inline const CalculatedLifecycle& GetCalculatedLifecycle() const { return m_calculatedLifecycle; }
335 template <typename CalculatedLifecycleT = CalculatedLifecycle>
336 void SetCalculatedLifecycle(CalculatedLifecycleT&& value) {
337 m_calculatedLifecycleHasBeenSet = true;
338 m_calculatedLifecycle = std::forward<CalculatedLifecycleT>(value);
339 }
340 template <typename CalculatedLifecycleT = CalculatedLifecycle>
342 SetCalculatedLifecycle(std::forward<CalculatedLifecycleT>(value));
343 return *this;
344 }
346
348
361 inline const Lifecycle& GetLifecycle() const { return m_lifecycle; }
362 template <typename LifecycleT = Lifecycle>
363 void SetLifecycle(LifecycleT&& value) {
364 m_lifecycleHasBeenSet = true;
365 m_lifecycle = std::forward<LifecycleT>(value);
366 }
367 template <typename LifecycleT = Lifecycle>
369 SetLifecycle(std::forward<LifecycleT>(value));
370 return *this;
371 }
373
375
379 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
380 template <typename EncryptionKeyArnT = Aws::String>
381 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
382 m_encryptionKeyArnHasBeenSet = true;
383 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
384 }
385 template <typename EncryptionKeyArnT = Aws::String>
387 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
388 return *this;
389 }
391
393
398 inline bool GetIsEncrypted() const { return m_isEncrypted; }
399 inline void SetIsEncrypted(bool value) {
400 m_isEncryptedHasBeenSet = true;
401 m_isEncrypted = value;
402 }
404 SetIsEncrypted(value);
405 return *this;
406 }
408
410
414 inline StorageClass GetStorageClass() const { return m_storageClass; }
415 inline void SetStorageClass(StorageClass value) {
416 m_storageClassHasBeenSet = true;
417 m_storageClass = value;
418 }
420 SetStorageClass(value);
421 return *this;
422 }
424
426
432 inline const Aws::Utils::DateTime& GetLastRestoreTime() const { return m_lastRestoreTime; }
433 template <typename LastRestoreTimeT = Aws::Utils::DateTime>
434 void SetLastRestoreTime(LastRestoreTimeT&& value) {
435 m_lastRestoreTimeHasBeenSet = true;
436 m_lastRestoreTime = std::forward<LastRestoreTimeT>(value);
437 }
438 template <typename LastRestoreTimeT = Aws::Utils::DateTime>
440 SetLastRestoreTime(std::forward<LastRestoreTimeT>(value));
441 return *this;
442 }
444
446
451 inline const Aws::String& GetParentRecoveryPointArn() const { return m_parentRecoveryPointArn; }
452 template <typename ParentRecoveryPointArnT = Aws::String>
453 void SetParentRecoveryPointArn(ParentRecoveryPointArnT&& value) {
454 m_parentRecoveryPointArnHasBeenSet = true;
455 m_parentRecoveryPointArn = std::forward<ParentRecoveryPointArnT>(value);
456 }
457 template <typename ParentRecoveryPointArnT = Aws::String>
458 DescribeRecoveryPointResult& WithParentRecoveryPointArn(ParentRecoveryPointArnT&& value) {
459 SetParentRecoveryPointArn(std::forward<ParentRecoveryPointArnT>(value));
460 return *this;
461 }
463
465
472 inline const Aws::String& GetCompositeMemberIdentifier() const { return m_compositeMemberIdentifier; }
473 template <typename CompositeMemberIdentifierT = Aws::String>
474 void SetCompositeMemberIdentifier(CompositeMemberIdentifierT&& value) {
475 m_compositeMemberIdentifierHasBeenSet = true;
476 m_compositeMemberIdentifier = std::forward<CompositeMemberIdentifierT>(value);
477 }
478 template <typename CompositeMemberIdentifierT = Aws::String>
479 DescribeRecoveryPointResult& WithCompositeMemberIdentifier(CompositeMemberIdentifierT&& value) {
480 SetCompositeMemberIdentifier(std::forward<CompositeMemberIdentifierT>(value));
481 return *this;
482 }
484
486
490 inline bool GetIsParent() const { return m_isParent; }
491 inline void SetIsParent(bool value) {
492 m_isParentHasBeenSet = true;
493 m_isParent = value;
494 }
496 SetIsParent(value);
497 return *this;
498 }
500
502
505 inline const Aws::String& GetResourceName() const { return m_resourceName; }
506 template <typename ResourceNameT = Aws::String>
507 void SetResourceName(ResourceNameT&& value) {
508 m_resourceNameHasBeenSet = true;
509 m_resourceName = std::forward<ResourceNameT>(value);
510 }
511 template <typename ResourceNameT = Aws::String>
513 SetResourceName(std::forward<ResourceNameT>(value));
514 return *this;
515 }
517
519
522 inline VaultType GetVaultType() const { return m_vaultType; }
523 inline void SetVaultType(VaultType value) {
524 m_vaultTypeHasBeenSet = true;
525 m_vaultType = value;
526 }
528 SetVaultType(value);
529 return *this;
530 }
532
534
541 inline IndexStatus GetIndexStatus() const { return m_indexStatus; }
542 inline void SetIndexStatus(IndexStatus value) {
543 m_indexStatusHasBeenSet = true;
544 m_indexStatus = value;
545 }
547 SetIndexStatus(value);
548 return *this;
549 }
551
553
557 inline const Aws::String& GetIndexStatusMessage() const { return m_indexStatusMessage; }
558 template <typename IndexStatusMessageT = Aws::String>
559 void SetIndexStatusMessage(IndexStatusMessageT&& value) {
560 m_indexStatusMessageHasBeenSet = true;
561 m_indexStatusMessage = std::forward<IndexStatusMessageT>(value);
562 }
563 template <typename IndexStatusMessageT = Aws::String>
565 SetIndexStatusMessage(std::forward<IndexStatusMessageT>(value));
566 return *this;
567 }
569
571
576 inline EncryptionKeyType GetEncryptionKeyType() const { return m_encryptionKeyType; }
578 m_encryptionKeyTypeHasBeenSet = true;
579 m_encryptionKeyType = value;
580 }
583 return *this;
584 }
586
588
593 inline const Aws::Vector<ScanResult>& GetScanResults() const { return m_scanResults; }
594 template <typename ScanResultsT = Aws::Vector<ScanResult>>
595 void SetScanResults(ScanResultsT&& value) {
596 m_scanResultsHasBeenSet = true;
597 m_scanResults = std::forward<ScanResultsT>(value);
598 }
599 template <typename ScanResultsT = Aws::Vector<ScanResult>>
601 SetScanResults(std::forward<ScanResultsT>(value));
602 return *this;
603 }
604 template <typename ScanResultsT = ScanResult>
606 m_scanResultsHasBeenSet = true;
607 m_scanResults.emplace_back(std::forward<ScanResultsT>(value));
608 return *this;
609 }
611
613
614 inline const Aws::String& GetRequestId() const { return m_requestId; }
615 template <typename RequestIdT = Aws::String>
616 void SetRequestId(RequestIdT&& value) {
617 m_requestIdHasBeenSet = true;
618 m_requestId = std::forward<RequestIdT>(value);
619 }
620 template <typename RequestIdT = Aws::String>
622 SetRequestId(std::forward<RequestIdT>(value));
623 return *this;
624 }
626 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
627
628 private:
629 Aws::String m_recoveryPointArn;
630
631 Aws::String m_backupVaultName;
632
633 Aws::String m_backupVaultArn;
634
635 Aws::String m_sourceBackupVaultArn;
636
637 Aws::String m_resourceArn;
638
639 Aws::String m_resourceType;
640
641 RecoveryPointCreator m_createdBy;
642
643 Aws::String m_iamRoleArn;
644
646
647 Aws::String m_statusMessage;
648
649 Aws::Utils::DateTime m_creationDate{};
650
651 Aws::Utils::DateTime m_initiationDate{};
652
653 Aws::Utils::DateTime m_completionDate{};
654
655 long long m_backupSizeInBytes{0};
656
657 CalculatedLifecycle m_calculatedLifecycle;
658
659 Lifecycle m_lifecycle;
660
661 Aws::String m_encryptionKeyArn;
662
663 bool m_isEncrypted{false};
664
665 StorageClass m_storageClass{StorageClass::NOT_SET};
666
667 Aws::Utils::DateTime m_lastRestoreTime{};
668
669 Aws::String m_parentRecoveryPointArn;
670
671 Aws::String m_compositeMemberIdentifier;
672
673 bool m_isParent{false};
674
675 Aws::String m_resourceName;
676
677 VaultType m_vaultType{VaultType::NOT_SET};
678
679 IndexStatus m_indexStatus{IndexStatus::NOT_SET};
680
681 Aws::String m_indexStatusMessage;
682
684
685 Aws::Vector<ScanResult> m_scanResults;
686
687 Aws::String m_requestId;
688 Aws::Http::HttpResponseCode m_HttpResponseCode;
689 bool m_recoveryPointArnHasBeenSet = false;
690 bool m_backupVaultNameHasBeenSet = false;
691 bool m_backupVaultArnHasBeenSet = false;
692 bool m_sourceBackupVaultArnHasBeenSet = false;
693 bool m_resourceArnHasBeenSet = false;
694 bool m_resourceTypeHasBeenSet = false;
695 bool m_createdByHasBeenSet = false;
696 bool m_iamRoleArnHasBeenSet = false;
697 bool m_statusHasBeenSet = false;
698 bool m_statusMessageHasBeenSet = false;
699 bool m_creationDateHasBeenSet = false;
700 bool m_initiationDateHasBeenSet = false;
701 bool m_completionDateHasBeenSet = false;
702 bool m_backupSizeInBytesHasBeenSet = false;
703 bool m_calculatedLifecycleHasBeenSet = false;
704 bool m_lifecycleHasBeenSet = false;
705 bool m_encryptionKeyArnHasBeenSet = false;
706 bool m_isEncryptedHasBeenSet = false;
707 bool m_storageClassHasBeenSet = false;
708 bool m_lastRestoreTimeHasBeenSet = false;
709 bool m_parentRecoveryPointArnHasBeenSet = false;
710 bool m_compositeMemberIdentifierHasBeenSet = false;
711 bool m_isParentHasBeenSet = false;
712 bool m_resourceNameHasBeenSet = false;
713 bool m_vaultTypeHasBeenSet = false;
714 bool m_indexStatusHasBeenSet = false;
715 bool m_indexStatusMessageHasBeenSet = false;
716 bool m_encryptionKeyTypeHasBeenSet = false;
717 bool m_scanResultsHasBeenSet = false;
718 bool m_requestIdHasBeenSet = false;
719};
720
721} // namespace Model
722} // namespace Backup
723} // namespace Aws
DescribeRecoveryPointResult & WithInitiationDate(InitiationDateT &&value)
void SetSourceBackupVaultArn(SourceBackupVaultArnT &&value)
DescribeRecoveryPointResult & WithRecoveryPointArn(RecoveryPointArnT &&value)
DescribeRecoveryPointResult & WithResourceArn(ResourceArnT &&value)
AWS_BACKUP_API DescribeRecoveryPointResult()=default
DescribeRecoveryPointResult & WithCompletionDate(CompletionDateT &&value)
AWS_BACKUP_API DescribeRecoveryPointResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeRecoveryPointResult & WithLastRestoreTime(LastRestoreTimeT &&value)
DescribeRecoveryPointResult & WithCompositeMemberIdentifier(CompositeMemberIdentifierT &&value)
DescribeRecoveryPointResult & WithParentRecoveryPointArn(ParentRecoveryPointArnT &&value)
void SetParentRecoveryPointArn(ParentRecoveryPointArnT &&value)
DescribeRecoveryPointResult & WithStatusMessage(StatusMessageT &&value)
DescribeRecoveryPointResult & WithCalculatedLifecycle(CalculatedLifecycleT &&value)
DescribeRecoveryPointResult & WithBackupSizeInBytes(long long value)
DescribeRecoveryPointResult & WithBackupVaultName(BackupVaultNameT &&value)
DescribeRecoveryPointResult & WithStatus(RecoveryPointStatus value)
DescribeRecoveryPointResult & WithBackupVaultArn(BackupVaultArnT &&value)
DescribeRecoveryPointResult & WithIsEncrypted(bool value)
DescribeRecoveryPointResult & AddScanResults(ScanResultsT &&value)
DescribeRecoveryPointResult & WithCreationDate(CreationDateT &&value)
DescribeRecoveryPointResult & WithIsParent(bool value)
DescribeRecoveryPointResult & WithScanResults(ScanResultsT &&value)
DescribeRecoveryPointResult & WithIndexStatusMessage(IndexStatusMessageT &&value)
DescribeRecoveryPointResult & WithSourceBackupVaultArn(SourceBackupVaultArnT &&value)
DescribeRecoveryPointResult & WithLifecycle(LifecycleT &&value)
DescribeRecoveryPointResult & WithEncryptionKeyType(EncryptionKeyType value)
DescribeRecoveryPointResult & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
DescribeRecoveryPointResult & WithRequestId(RequestIdT &&value)
DescribeRecoveryPointResult & WithResourceName(ResourceNameT &&value)
AWS_BACKUP_API DescribeRecoveryPointResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeRecoveryPointResult & WithCreatedBy(CreatedByT &&value)
DescribeRecoveryPointResult & WithStorageClass(StorageClass value)
void SetCompositeMemberIdentifier(CompositeMemberIdentifierT &&value)
DescribeRecoveryPointResult & WithIndexStatus(IndexStatus value)
DescribeRecoveryPointResult & WithIamRoleArn(IamRoleArnT &&value)
DescribeRecoveryPointResult & WithResourceType(ResourceTypeT &&value)
const Aws::Vector< ScanResult > & GetScanResults() const
DescribeRecoveryPointResult & WithVaultType(VaultType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue