AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
RecoveryPointByBackupVault.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/AggregatedScanResult.h>
9#include <aws/backup/model/CalculatedLifecycle.h>
10#include <aws/backup/model/EncryptionKeyType.h>
11#include <aws/backup/model/IndexStatus.h>
12#include <aws/backup/model/Lifecycle.h>
13#include <aws/backup/model/RecoveryPointCreator.h>
14#include <aws/backup/model/RecoveryPointStatus.h>
15#include <aws/backup/model/VaultType.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Backup {
29namespace Model {
30
38 public:
39 AWS_BACKUP_API RecoveryPointByBackupVault() = default;
42 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
50 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
51 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
52 template <typename RecoveryPointArnT = Aws::String>
53 void SetRecoveryPointArn(RecoveryPointArnT&& value) {
54 m_recoveryPointArnHasBeenSet = true;
55 m_recoveryPointArn = std::forward<RecoveryPointArnT>(value);
56 }
57 template <typename RecoveryPointArnT = Aws::String>
59 SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value));
60 return *this;
61 }
63
65
70 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
71 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
72 template <typename BackupVaultNameT = Aws::String>
73 void SetBackupVaultName(BackupVaultNameT&& value) {
74 m_backupVaultNameHasBeenSet = true;
75 m_backupVaultName = std::forward<BackupVaultNameT>(value);
76 }
77 template <typename BackupVaultNameT = Aws::String>
79 SetBackupVaultName(std::forward<BackupVaultNameT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetBackupVaultArn() const { return m_backupVaultArn; }
90 inline bool BackupVaultArnHasBeenSet() const { return m_backupVaultArnHasBeenSet; }
91 template <typename BackupVaultArnT = Aws::String>
92 void SetBackupVaultArn(BackupVaultArnT&& value) {
93 m_backupVaultArnHasBeenSet = true;
94 m_backupVaultArn = std::forward<BackupVaultArnT>(value);
95 }
96 template <typename BackupVaultArnT = Aws::String>
98 SetBackupVaultArn(std::forward<BackupVaultArnT>(value));
99 return *this;
100 }
102
104
109 inline const Aws::String& GetSourceBackupVaultArn() const { return m_sourceBackupVaultArn; }
110 inline bool SourceBackupVaultArnHasBeenSet() const { return m_sourceBackupVaultArnHasBeenSet; }
111 template <typename SourceBackupVaultArnT = Aws::String>
112 void SetSourceBackupVaultArn(SourceBackupVaultArnT&& value) {
113 m_sourceBackupVaultArnHasBeenSet = true;
114 m_sourceBackupVaultArn = std::forward<SourceBackupVaultArnT>(value);
115 }
116 template <typename SourceBackupVaultArnT = Aws::String>
117 RecoveryPointByBackupVault& WithSourceBackupVaultArn(SourceBackupVaultArnT&& value) {
118 SetSourceBackupVaultArn(std::forward<SourceBackupVaultArnT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
129 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
130 template <typename ResourceArnT = Aws::String>
131 void SetResourceArn(ResourceArnT&& value) {
132 m_resourceArnHasBeenSet = true;
133 m_resourceArn = std::forward<ResourceArnT>(value);
134 }
135 template <typename ResourceArnT = Aws::String>
137 SetResourceArn(std::forward<ResourceArnT>(value));
138 return *this;
139 }
141
143
149 inline const Aws::String& GetResourceType() const { return m_resourceType; }
150 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
151 template <typename ResourceTypeT = Aws::String>
152 void SetResourceType(ResourceTypeT&& value) {
153 m_resourceTypeHasBeenSet = true;
154 m_resourceType = std::forward<ResourceTypeT>(value);
155 }
156 template <typename ResourceTypeT = Aws::String>
158 SetResourceType(std::forward<ResourceTypeT>(value));
159 return *this;
160 }
162
164
170 inline const RecoveryPointCreator& GetCreatedBy() const { return m_createdBy; }
171 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
172 template <typename CreatedByT = RecoveryPointCreator>
173 void SetCreatedBy(CreatedByT&& value) {
174 m_createdByHasBeenSet = true;
175 m_createdBy = std::forward<CreatedByT>(value);
176 }
177 template <typename CreatedByT = RecoveryPointCreator>
179 SetCreatedBy(std::forward<CreatedByT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
190 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
191 template <typename IamRoleArnT = Aws::String>
192 void SetIamRoleArn(IamRoleArnT&& value) {
193 m_iamRoleArnHasBeenSet = true;
194 m_iamRoleArn = std::forward<IamRoleArnT>(value);
195 }
196 template <typename IamRoleArnT = Aws::String>
198 SetIamRoleArn(std::forward<IamRoleArnT>(value));
199 return *this;
200 }
202
204
207 inline RecoveryPointStatus GetStatus() const { return m_status; }
208 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
209 inline void SetStatus(RecoveryPointStatus value) {
210 m_statusHasBeenSet = true;
211 m_status = value;
212 }
214 SetStatus(value);
215 return *this;
216 }
218
220
223 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
224 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
225 template <typename StatusMessageT = Aws::String>
226 void SetStatusMessage(StatusMessageT&& value) {
227 m_statusMessageHasBeenSet = true;
228 m_statusMessage = std::forward<StatusMessageT>(value);
229 }
230 template <typename StatusMessageT = Aws::String>
232 SetStatusMessage(std::forward<StatusMessageT>(value));
233 return *this;
234 }
236
238
244 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
245 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
246 template <typename CreationDateT = Aws::Utils::DateTime>
247 void SetCreationDate(CreationDateT&& value) {
248 m_creationDateHasBeenSet = true;
249 m_creationDate = std::forward<CreationDateT>(value);
250 }
251 template <typename CreationDateT = Aws::Utils::DateTime>
253 SetCreationDate(std::forward<CreationDateT>(value));
254 return *this;
255 }
257
259
263 inline const Aws::Utils::DateTime& GetInitiationDate() const { return m_initiationDate; }
264 inline bool InitiationDateHasBeenSet() const { return m_initiationDateHasBeenSet; }
265 template <typename InitiationDateT = Aws::Utils::DateTime>
266 void SetInitiationDate(InitiationDateT&& value) {
267 m_initiationDateHasBeenSet = true;
268 m_initiationDate = std::forward<InitiationDateT>(value);
269 }
270 template <typename InitiationDateT = Aws::Utils::DateTime>
272 SetInitiationDate(std::forward<InitiationDateT>(value));
273 return *this;
274 }
276
278
284 inline const Aws::Utils::DateTime& GetCompletionDate() const { return m_completionDate; }
285 inline bool CompletionDateHasBeenSet() const { return m_completionDateHasBeenSet; }
286 template <typename CompletionDateT = Aws::Utils::DateTime>
287 void SetCompletionDate(CompletionDateT&& value) {
288 m_completionDateHasBeenSet = true;
289 m_completionDate = std::forward<CompletionDateT>(value);
290 }
291 template <typename CompletionDateT = Aws::Utils::DateTime>
293 SetCompletionDate(std::forward<CompletionDateT>(value));
294 return *this;
295 }
297
299
302 inline long long GetBackupSizeInBytes() const { return m_backupSizeInBytes; }
303 inline bool BackupSizeInBytesHasBeenSet() const { return m_backupSizeInBytesHasBeenSet; }
304 inline void SetBackupSizeInBytes(long long value) {
305 m_backupSizeInBytesHasBeenSet = true;
306 m_backupSizeInBytes = value;
307 }
310 return *this;
311 }
313
315
319 inline const CalculatedLifecycle& GetCalculatedLifecycle() const { return m_calculatedLifecycle; }
320 inline bool CalculatedLifecycleHasBeenSet() const { return m_calculatedLifecycleHasBeenSet; }
321 template <typename CalculatedLifecycleT = CalculatedLifecycle>
322 void SetCalculatedLifecycle(CalculatedLifecycleT&& value) {
323 m_calculatedLifecycleHasBeenSet = true;
324 m_calculatedLifecycle = std::forward<CalculatedLifecycleT>(value);
325 }
326 template <typename CalculatedLifecycleT = CalculatedLifecycle>
328 SetCalculatedLifecycle(std::forward<CalculatedLifecycleT>(value));
329 return *this;
330 }
332
334
347 inline const Lifecycle& GetLifecycle() const { return m_lifecycle; }
348 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
349 template <typename LifecycleT = Lifecycle>
350 void SetLifecycle(LifecycleT&& value) {
351 m_lifecycleHasBeenSet = true;
352 m_lifecycle = std::forward<LifecycleT>(value);
353 }
354 template <typename LifecycleT = Lifecycle>
356 SetLifecycle(std::forward<LifecycleT>(value));
357 return *this;
358 }
360
362
367 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
368 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
369 template <typename EncryptionKeyArnT = Aws::String>
370 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
371 m_encryptionKeyArnHasBeenSet = true;
372 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
373 }
374 template <typename EncryptionKeyArnT = Aws::String>
376 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
377 return *this;
378 }
380
382
387 inline bool GetIsEncrypted() const { return m_isEncrypted; }
388 inline bool IsEncryptedHasBeenSet() const { return m_isEncryptedHasBeenSet; }
389 inline void SetIsEncrypted(bool value) {
390 m_isEncryptedHasBeenSet = true;
391 m_isEncrypted = value;
392 }
394 SetIsEncrypted(value);
395 return *this;
396 }
398
400
406 inline const Aws::Utils::DateTime& GetLastRestoreTime() const { return m_lastRestoreTime; }
407 inline bool LastRestoreTimeHasBeenSet() const { return m_lastRestoreTimeHasBeenSet; }
408 template <typename LastRestoreTimeT = Aws::Utils::DateTime>
409 void SetLastRestoreTime(LastRestoreTimeT&& value) {
410 m_lastRestoreTimeHasBeenSet = true;
411 m_lastRestoreTime = std::forward<LastRestoreTimeT>(value);
412 }
413 template <typename LastRestoreTimeT = Aws::Utils::DateTime>
415 SetLastRestoreTime(std::forward<LastRestoreTimeT>(value));
416 return *this;
417 }
419
421
424 inline const Aws::String& GetParentRecoveryPointArn() const { return m_parentRecoveryPointArn; }
425 inline bool ParentRecoveryPointArnHasBeenSet() const { return m_parentRecoveryPointArnHasBeenSet; }
426 template <typename ParentRecoveryPointArnT = Aws::String>
427 void SetParentRecoveryPointArn(ParentRecoveryPointArnT&& value) {
428 m_parentRecoveryPointArnHasBeenSet = true;
429 m_parentRecoveryPointArn = std::forward<ParentRecoveryPointArnT>(value);
430 }
431 template <typename ParentRecoveryPointArnT = Aws::String>
432 RecoveryPointByBackupVault& WithParentRecoveryPointArn(ParentRecoveryPointArnT&& value) {
433 SetParentRecoveryPointArn(std::forward<ParentRecoveryPointArnT>(value));
434 return *this;
435 }
437
439
446 inline const Aws::String& GetCompositeMemberIdentifier() const { return m_compositeMemberIdentifier; }
447 inline bool CompositeMemberIdentifierHasBeenSet() const { return m_compositeMemberIdentifierHasBeenSet; }
448 template <typename CompositeMemberIdentifierT = Aws::String>
449 void SetCompositeMemberIdentifier(CompositeMemberIdentifierT&& value) {
450 m_compositeMemberIdentifierHasBeenSet = true;
451 m_compositeMemberIdentifier = std::forward<CompositeMemberIdentifierT>(value);
452 }
453 template <typename CompositeMemberIdentifierT = Aws::String>
454 RecoveryPointByBackupVault& WithCompositeMemberIdentifier(CompositeMemberIdentifierT&& value) {
455 SetCompositeMemberIdentifier(std::forward<CompositeMemberIdentifierT>(value));
456 return *this;
457 }
459
461
465 inline bool GetIsParent() const { return m_isParent; }
466 inline bool IsParentHasBeenSet() const { return m_isParentHasBeenSet; }
467 inline void SetIsParent(bool value) {
468 m_isParentHasBeenSet = true;
469 m_isParent = value;
470 }
472 SetIsParent(value);
473 return *this;
474 }
476
478
481 inline const Aws::String& GetResourceName() const { return m_resourceName; }
482 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
483 template <typename ResourceNameT = Aws::String>
484 void SetResourceName(ResourceNameT&& value) {
485 m_resourceNameHasBeenSet = true;
486 m_resourceName = std::forward<ResourceNameT>(value);
487 }
488 template <typename ResourceNameT = Aws::String>
490 SetResourceName(std::forward<ResourceNameT>(value));
491 return *this;
492 }
494
496
499 inline VaultType GetVaultType() const { return m_vaultType; }
500 inline bool VaultTypeHasBeenSet() const { return m_vaultTypeHasBeenSet; }
501 inline void SetVaultType(VaultType value) {
502 m_vaultTypeHasBeenSet = true;
503 m_vaultType = value;
504 }
506 SetVaultType(value);
507 return *this;
508 }
510
512
519 inline IndexStatus GetIndexStatus() const { return m_indexStatus; }
520 inline bool IndexStatusHasBeenSet() const { return m_indexStatusHasBeenSet; }
521 inline void SetIndexStatus(IndexStatus value) {
522 m_indexStatusHasBeenSet = true;
523 m_indexStatus = value;
524 }
526 SetIndexStatus(value);
527 return *this;
528 }
530
532
536 inline const Aws::String& GetIndexStatusMessage() const { return m_indexStatusMessage; }
537 inline bool IndexStatusMessageHasBeenSet() const { return m_indexStatusMessageHasBeenSet; }
538 template <typename IndexStatusMessageT = Aws::String>
539 void SetIndexStatusMessage(IndexStatusMessageT&& value) {
540 m_indexStatusMessageHasBeenSet = true;
541 m_indexStatusMessage = std::forward<IndexStatusMessageT>(value);
542 }
543 template <typename IndexStatusMessageT = Aws::String>
545 SetIndexStatusMessage(std::forward<IndexStatusMessageT>(value));
546 return *this;
547 }
549
551
556 inline EncryptionKeyType GetEncryptionKeyType() const { return m_encryptionKeyType; }
557 inline bool EncryptionKeyTypeHasBeenSet() const { return m_encryptionKeyTypeHasBeenSet; }
559 m_encryptionKeyTypeHasBeenSet = true;
560 m_encryptionKeyType = value;
561 }
564 return *this;
565 }
567
569
574 inline const AggregatedScanResult& GetAggregatedScanResult() const { return m_aggregatedScanResult; }
575 inline bool AggregatedScanResultHasBeenSet() const { return m_aggregatedScanResultHasBeenSet; }
576 template <typename AggregatedScanResultT = AggregatedScanResult>
577 void SetAggregatedScanResult(AggregatedScanResultT&& value) {
578 m_aggregatedScanResultHasBeenSet = true;
579 m_aggregatedScanResult = std::forward<AggregatedScanResultT>(value);
580 }
581 template <typename AggregatedScanResultT = AggregatedScanResult>
582 RecoveryPointByBackupVault& WithAggregatedScanResult(AggregatedScanResultT&& value) {
583 SetAggregatedScanResult(std::forward<AggregatedScanResultT>(value));
584 return *this;
585 }
587 private:
588 Aws::String m_recoveryPointArn;
589
590 Aws::String m_backupVaultName;
591
592 Aws::String m_backupVaultArn;
593
594 Aws::String m_sourceBackupVaultArn;
595
596 Aws::String m_resourceArn;
597
598 Aws::String m_resourceType;
599
600 RecoveryPointCreator m_createdBy;
601
602 Aws::String m_iamRoleArn;
603
605
606 Aws::String m_statusMessage;
607
608 Aws::Utils::DateTime m_creationDate{};
609
610 Aws::Utils::DateTime m_initiationDate{};
611
612 Aws::Utils::DateTime m_completionDate{};
613
614 long long m_backupSizeInBytes{0};
615
616 CalculatedLifecycle m_calculatedLifecycle;
617
618 Lifecycle m_lifecycle;
619
620 Aws::String m_encryptionKeyArn;
621
622 bool m_isEncrypted{false};
623
624 Aws::Utils::DateTime m_lastRestoreTime{};
625
626 Aws::String m_parentRecoveryPointArn;
627
628 Aws::String m_compositeMemberIdentifier;
629
630 bool m_isParent{false};
631
632 Aws::String m_resourceName;
633
634 VaultType m_vaultType{VaultType::NOT_SET};
635
636 IndexStatus m_indexStatus{IndexStatus::NOT_SET};
637
638 Aws::String m_indexStatusMessage;
639
641
642 AggregatedScanResult m_aggregatedScanResult;
643 bool m_recoveryPointArnHasBeenSet = false;
644 bool m_backupVaultNameHasBeenSet = false;
645 bool m_backupVaultArnHasBeenSet = false;
646 bool m_sourceBackupVaultArnHasBeenSet = false;
647 bool m_resourceArnHasBeenSet = false;
648 bool m_resourceTypeHasBeenSet = false;
649 bool m_createdByHasBeenSet = false;
650 bool m_iamRoleArnHasBeenSet = false;
651 bool m_statusHasBeenSet = false;
652 bool m_statusMessageHasBeenSet = false;
653 bool m_creationDateHasBeenSet = false;
654 bool m_initiationDateHasBeenSet = false;
655 bool m_completionDateHasBeenSet = false;
656 bool m_backupSizeInBytesHasBeenSet = false;
657 bool m_calculatedLifecycleHasBeenSet = false;
658 bool m_lifecycleHasBeenSet = false;
659 bool m_encryptionKeyArnHasBeenSet = false;
660 bool m_isEncryptedHasBeenSet = false;
661 bool m_lastRestoreTimeHasBeenSet = false;
662 bool m_parentRecoveryPointArnHasBeenSet = false;
663 bool m_compositeMemberIdentifierHasBeenSet = false;
664 bool m_isParentHasBeenSet = false;
665 bool m_resourceNameHasBeenSet = false;
666 bool m_vaultTypeHasBeenSet = false;
667 bool m_indexStatusHasBeenSet = false;
668 bool m_indexStatusMessageHasBeenSet = false;
669 bool m_encryptionKeyTypeHasBeenSet = false;
670 bool m_aggregatedScanResultHasBeenSet = false;
671};
672
673} // namespace Model
674} // namespace Backup
675} // namespace Aws
void SetAggregatedScanResult(AggregatedScanResultT &&value)
RecoveryPointByBackupVault & WithCalculatedLifecycle(CalculatedLifecycleT &&value)
RecoveryPointByBackupVault & WithCompositeMemberIdentifier(CompositeMemberIdentifierT &&value)
AWS_BACKUP_API RecoveryPointByBackupVault & operator=(Aws::Utils::Json::JsonView jsonValue)
RecoveryPointByBackupVault & WithParentRecoveryPointArn(ParentRecoveryPointArnT &&value)
RecoveryPointByBackupVault & WithStatusMessage(StatusMessageT &&value)
void SetParentRecoveryPointArn(ParentRecoveryPointArnT &&value)
const Aws::Utils::DateTime & GetInitiationDate() const
RecoveryPointByBackupVault & WithRecoveryPointArn(RecoveryPointArnT &&value)
const AggregatedScanResult & GetAggregatedScanResult() const
void SetCalculatedLifecycle(CalculatedLifecycleT &&value)
RecoveryPointByBackupVault & WithIsParent(bool value)
RecoveryPointByBackupVault & WithBackupVaultArn(BackupVaultArnT &&value)
RecoveryPointByBackupVault & WithIamRoleArn(IamRoleArnT &&value)
AWS_BACKUP_API RecoveryPointByBackupVault()=default
const CalculatedLifecycle & GetCalculatedLifecycle() const
RecoveryPointByBackupVault & WithInitiationDate(InitiationDateT &&value)
RecoveryPointByBackupVault & WithLifecycle(LifecycleT &&value)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourceBackupVaultArn(SourceBackupVaultArnT &&value)
RecoveryPointByBackupVault & WithResourceName(ResourceNameT &&value)
RecoveryPointByBackupVault & WithCompletionDate(CompletionDateT &&value)
RecoveryPointByBackupVault & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
RecoveryPointByBackupVault & WithIndexStatusMessage(IndexStatusMessageT &&value)
const Aws::Utils::DateTime & GetCompletionDate() const
RecoveryPointByBackupVault & WithBackupVaultName(BackupVaultNameT &&value)
RecoveryPointByBackupVault & WithCreatedBy(CreatedByT &&value)
RecoveryPointByBackupVault & WithResourceType(ResourceTypeT &&value)
AWS_BACKUP_API RecoveryPointByBackupVault(Aws::Utils::Json::JsonView jsonValue)
RecoveryPointByBackupVault & WithBackupSizeInBytes(long long value)
void SetCompositeMemberIdentifier(CompositeMemberIdentifierT &&value)
RecoveryPointByBackupVault & WithResourceArn(ResourceArnT &&value)
RecoveryPointByBackupVault & WithVaultType(VaultType value)
RecoveryPointByBackupVault & WithEncryptionKeyType(EncryptionKeyType value)
RecoveryPointByBackupVault & WithStatus(RecoveryPointStatus value)
RecoveryPointByBackupVault & WithCreationDate(CreationDateT &&value)
const Aws::Utils::DateTime & GetLastRestoreTime() const
RecoveryPointByBackupVault & WithIndexStatus(IndexStatus value)
RecoveryPointByBackupVault & WithSourceBackupVaultArn(SourceBackupVaultArnT &&value)
RecoveryPointByBackupVault & WithAggregatedScanResult(AggregatedScanResultT &&value)
RecoveryPointByBackupVault & WithLastRestoreTime(LastRestoreTimeT &&value)
RecoveryPointByBackupVault & WithIsEncrypted(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue