AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeRecoveryPointResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/backup/model/RecoveryPointCreator.h>
10#include <aws/backup/model/RecoveryPointStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/backup/model/CalculatedLifecycle.h>
13#include <aws/backup/model/Lifecycle.h>
14#include <aws/backup/model/StorageClass.h>
15#include <aws/backup/model/VaultType.h>
16#include <aws/backup/model/IndexStatus.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace Backup
32{
33namespace Model
34{
36 {
37 public:
38 AWS_BACKUP_API DescribeRecoveryPointResult() = default;
41
42
44
48 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
49 template<typename RecoveryPointArnT = Aws::String>
50 void SetRecoveryPointArn(RecoveryPointArnT&& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = std::forward<RecoveryPointArnT>(value); }
51 template<typename RecoveryPointArnT = Aws::String>
52 DescribeRecoveryPointResult& WithRecoveryPointArn(RecoveryPointArnT&& value) { SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value)); return *this;}
54
56
61 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
62 template<typename BackupVaultNameT = Aws::String>
63 void SetBackupVaultName(BackupVaultNameT&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::forward<BackupVaultNameT>(value); }
64 template<typename BackupVaultNameT = Aws::String>
65 DescribeRecoveryPointResult& WithBackupVaultName(BackupVaultNameT&& value) { SetBackupVaultName(std::forward<BackupVaultNameT>(value)); return *this;}
67
69
73 inline const Aws::String& GetBackupVaultArn() const { return m_backupVaultArn; }
74 template<typename BackupVaultArnT = Aws::String>
75 void SetBackupVaultArn(BackupVaultArnT&& value) { m_backupVaultArnHasBeenSet = true; m_backupVaultArn = std::forward<BackupVaultArnT>(value); }
76 template<typename BackupVaultArnT = Aws::String>
77 DescribeRecoveryPointResult& WithBackupVaultArn(BackupVaultArnT&& value) { SetBackupVaultArn(std::forward<BackupVaultArnT>(value)); return *this;}
79
81
88 inline const Aws::String& GetSourceBackupVaultArn() const { return m_sourceBackupVaultArn; }
89 template<typename SourceBackupVaultArnT = Aws::String>
90 void SetSourceBackupVaultArn(SourceBackupVaultArnT&& value) { m_sourceBackupVaultArnHasBeenSet = true; m_sourceBackupVaultArn = std::forward<SourceBackupVaultArnT>(value); }
91 template<typename SourceBackupVaultArnT = Aws::String>
92 DescribeRecoveryPointResult& WithSourceBackupVaultArn(SourceBackupVaultArnT&& value) { SetSourceBackupVaultArn(std::forward<SourceBackupVaultArnT>(value)); return *this;}
94
96
100 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
101 template<typename ResourceArnT = Aws::String>
102 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
103 template<typename ResourceArnT = Aws::String>
104 DescribeRecoveryPointResult& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
106
108
113 inline const Aws::String& GetResourceType() const { return m_resourceType; }
114 template<typename ResourceTypeT = Aws::String>
115 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
116 template<typename ResourceTypeT = Aws::String>
117 DescribeRecoveryPointResult& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
119
121
127 inline const RecoveryPointCreator& GetCreatedBy() const { return m_createdBy; }
128 template<typename CreatedByT = RecoveryPointCreator>
129 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
130 template<typename CreatedByT = RecoveryPointCreator>
131 DescribeRecoveryPointResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
133
135
139 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
140 template<typename IamRoleArnT = Aws::String>
141 void SetIamRoleArn(IamRoleArnT&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::forward<IamRoleArnT>(value); }
142 template<typename IamRoleArnT = Aws::String>
143 DescribeRecoveryPointResult& WithIamRoleArn(IamRoleArnT&& value) { SetIamRoleArn(std::forward<IamRoleArnT>(value)); return *this;}
145
147
182 inline RecoveryPointStatus GetStatus() const { return m_status; }
183 inline void SetStatus(RecoveryPointStatus value) { m_statusHasBeenSet = true; m_status = value; }
186
188
191 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
192 template<typename StatusMessageT = Aws::String>
193 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
194 template<typename StatusMessageT = Aws::String>
195 DescribeRecoveryPointResult& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
197
199
205 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
206 template<typename CreationDateT = Aws::Utils::DateTime>
207 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
208 template<typename CreationDateT = Aws::Utils::DateTime>
209 DescribeRecoveryPointResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
211
213
217 inline const Aws::Utils::DateTime& GetInitiationDate() const { return m_initiationDate; }
218 template<typename InitiationDateT = Aws::Utils::DateTime>
219 void SetInitiationDate(InitiationDateT&& value) { m_initiationDateHasBeenSet = true; m_initiationDate = std::forward<InitiationDateT>(value); }
220 template<typename InitiationDateT = Aws::Utils::DateTime>
221 DescribeRecoveryPointResult& WithInitiationDate(InitiationDateT&& value) { SetInitiationDate(std::forward<InitiationDateT>(value)); return *this;}
223
225
231 inline const Aws::Utils::DateTime& GetCompletionDate() const { return m_completionDate; }
232 template<typename CompletionDateT = Aws::Utils::DateTime>
233 void SetCompletionDate(CompletionDateT&& value) { m_completionDateHasBeenSet = true; m_completionDate = std::forward<CompletionDateT>(value); }
234 template<typename CompletionDateT = Aws::Utils::DateTime>
235 DescribeRecoveryPointResult& WithCompletionDate(CompletionDateT&& value) { SetCompletionDate(std::forward<CompletionDateT>(value)); return *this;}
237
239
242 inline long long GetBackupSizeInBytes() const { return m_backupSizeInBytes; }
243 inline void SetBackupSizeInBytes(long long value) { m_backupSizeInBytesHasBeenSet = true; m_backupSizeInBytes = value; }
244 inline DescribeRecoveryPointResult& WithBackupSizeInBytes(long long value) { SetBackupSizeInBytes(value); return *this;}
246
248
252 inline const CalculatedLifecycle& GetCalculatedLifecycle() const { return m_calculatedLifecycle; }
253 template<typename CalculatedLifecycleT = CalculatedLifecycle>
254 void SetCalculatedLifecycle(CalculatedLifecycleT&& value) { m_calculatedLifecycleHasBeenSet = true; m_calculatedLifecycle = std::forward<CalculatedLifecycleT>(value); }
255 template<typename CalculatedLifecycleT = CalculatedLifecycle>
256 DescribeRecoveryPointResult& WithCalculatedLifecycle(CalculatedLifecycleT&& value) { SetCalculatedLifecycle(std::forward<CalculatedLifecycleT>(value)); return *this;}
258
260
273 inline const Lifecycle& GetLifecycle() const { return m_lifecycle; }
274 template<typename LifecycleT = Lifecycle>
275 void SetLifecycle(LifecycleT&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::forward<LifecycleT>(value); }
276 template<typename LifecycleT = Lifecycle>
277 DescribeRecoveryPointResult& WithLifecycle(LifecycleT&& value) { SetLifecycle(std::forward<LifecycleT>(value)); return *this;}
279
281
285 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
286 template<typename EncryptionKeyArnT = Aws::String>
287 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
288 template<typename EncryptionKeyArnT = Aws::String>
289 DescribeRecoveryPointResult& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
291
293
298 inline bool GetIsEncrypted() const { return m_isEncrypted; }
299 inline void SetIsEncrypted(bool value) { m_isEncryptedHasBeenSet = true; m_isEncrypted = value; }
300 inline DescribeRecoveryPointResult& WithIsEncrypted(bool value) { SetIsEncrypted(value); return *this;}
302
304
308 inline StorageClass GetStorageClass() const { return m_storageClass; }
309 inline void SetStorageClass(StorageClass value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
312
314
320 inline const Aws::Utils::DateTime& GetLastRestoreTime() const { return m_lastRestoreTime; }
321 template<typename LastRestoreTimeT = Aws::Utils::DateTime>
322 void SetLastRestoreTime(LastRestoreTimeT&& value) { m_lastRestoreTimeHasBeenSet = true; m_lastRestoreTime = std::forward<LastRestoreTimeT>(value); }
323 template<typename LastRestoreTimeT = Aws::Utils::DateTime>
324 DescribeRecoveryPointResult& WithLastRestoreTime(LastRestoreTimeT&& value) { SetLastRestoreTime(std::forward<LastRestoreTimeT>(value)); return *this;}
326
328
333 inline const Aws::String& GetParentRecoveryPointArn() const { return m_parentRecoveryPointArn; }
334 template<typename ParentRecoveryPointArnT = Aws::String>
335 void SetParentRecoveryPointArn(ParentRecoveryPointArnT&& value) { m_parentRecoveryPointArnHasBeenSet = true; m_parentRecoveryPointArn = std::forward<ParentRecoveryPointArnT>(value); }
336 template<typename ParentRecoveryPointArnT = Aws::String>
337 DescribeRecoveryPointResult& WithParentRecoveryPointArn(ParentRecoveryPointArnT&& value) { SetParentRecoveryPointArn(std::forward<ParentRecoveryPointArnT>(value)); return *this;}
339
341
348 inline const Aws::String& GetCompositeMemberIdentifier() const { return m_compositeMemberIdentifier; }
349 template<typename CompositeMemberIdentifierT = Aws::String>
350 void SetCompositeMemberIdentifier(CompositeMemberIdentifierT&& value) { m_compositeMemberIdentifierHasBeenSet = true; m_compositeMemberIdentifier = std::forward<CompositeMemberIdentifierT>(value); }
351 template<typename CompositeMemberIdentifierT = Aws::String>
352 DescribeRecoveryPointResult& WithCompositeMemberIdentifier(CompositeMemberIdentifierT&& value) { SetCompositeMemberIdentifier(std::forward<CompositeMemberIdentifierT>(value)); return *this;}
354
356
360 inline bool GetIsParent() const { return m_isParent; }
361 inline void SetIsParent(bool value) { m_isParentHasBeenSet = true; m_isParent = value; }
362 inline DescribeRecoveryPointResult& WithIsParent(bool value) { SetIsParent(value); return *this;}
364
366
369 inline const Aws::String& GetResourceName() const { return m_resourceName; }
370 template<typename ResourceNameT = Aws::String>
371 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
372 template<typename ResourceNameT = Aws::String>
373 DescribeRecoveryPointResult& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
375
377
380 inline VaultType GetVaultType() const { return m_vaultType; }
381 inline void SetVaultType(VaultType value) { m_vaultTypeHasBeenSet = true; m_vaultType = value; }
382 inline DescribeRecoveryPointResult& WithVaultType(VaultType value) { SetVaultType(value); return *this;}
384
386
393 inline IndexStatus GetIndexStatus() const { return m_indexStatus; }
394 inline void SetIndexStatus(IndexStatus value) { m_indexStatusHasBeenSet = true; m_indexStatus = value; }
397
399
403 inline const Aws::String& GetIndexStatusMessage() const { return m_indexStatusMessage; }
404 template<typename IndexStatusMessageT = Aws::String>
405 void SetIndexStatusMessage(IndexStatusMessageT&& value) { m_indexStatusMessageHasBeenSet = true; m_indexStatusMessage = std::forward<IndexStatusMessageT>(value); }
406 template<typename IndexStatusMessageT = Aws::String>
407 DescribeRecoveryPointResult& WithIndexStatusMessage(IndexStatusMessageT&& value) { SetIndexStatusMessage(std::forward<IndexStatusMessageT>(value)); return *this;}
409
411
412 inline const Aws::String& GetRequestId() const { return m_requestId; }
413 template<typename RequestIdT = Aws::String>
414 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
415 template<typename RequestIdT = Aws::String>
416 DescribeRecoveryPointResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
418 private:
419
420 Aws::String m_recoveryPointArn;
421 bool m_recoveryPointArnHasBeenSet = false;
422
423 Aws::String m_backupVaultName;
424 bool m_backupVaultNameHasBeenSet = false;
425
426 Aws::String m_backupVaultArn;
427 bool m_backupVaultArnHasBeenSet = false;
428
429 Aws::String m_sourceBackupVaultArn;
430 bool m_sourceBackupVaultArnHasBeenSet = false;
431
432 Aws::String m_resourceArn;
433 bool m_resourceArnHasBeenSet = false;
434
435 Aws::String m_resourceType;
436 bool m_resourceTypeHasBeenSet = false;
437
438 RecoveryPointCreator m_createdBy;
439 bool m_createdByHasBeenSet = false;
440
441 Aws::String m_iamRoleArn;
442 bool m_iamRoleArnHasBeenSet = false;
443
445 bool m_statusHasBeenSet = false;
446
447 Aws::String m_statusMessage;
448 bool m_statusMessageHasBeenSet = false;
449
450 Aws::Utils::DateTime m_creationDate{};
451 bool m_creationDateHasBeenSet = false;
452
453 Aws::Utils::DateTime m_initiationDate{};
454 bool m_initiationDateHasBeenSet = false;
455
456 Aws::Utils::DateTime m_completionDate{};
457 bool m_completionDateHasBeenSet = false;
458
459 long long m_backupSizeInBytes{0};
460 bool m_backupSizeInBytesHasBeenSet = false;
461
462 CalculatedLifecycle m_calculatedLifecycle;
463 bool m_calculatedLifecycleHasBeenSet = false;
464
465 Lifecycle m_lifecycle;
466 bool m_lifecycleHasBeenSet = false;
467
468 Aws::String m_encryptionKeyArn;
469 bool m_encryptionKeyArnHasBeenSet = false;
470
471 bool m_isEncrypted{false};
472 bool m_isEncryptedHasBeenSet = false;
473
474 StorageClass m_storageClass{StorageClass::NOT_SET};
475 bool m_storageClassHasBeenSet = false;
476
477 Aws::Utils::DateTime m_lastRestoreTime{};
478 bool m_lastRestoreTimeHasBeenSet = false;
479
480 Aws::String m_parentRecoveryPointArn;
481 bool m_parentRecoveryPointArnHasBeenSet = false;
482
483 Aws::String m_compositeMemberIdentifier;
484 bool m_compositeMemberIdentifierHasBeenSet = false;
485
486 bool m_isParent{false};
487 bool m_isParentHasBeenSet = false;
488
489 Aws::String m_resourceName;
490 bool m_resourceNameHasBeenSet = false;
491
492 VaultType m_vaultType{VaultType::NOT_SET};
493 bool m_vaultTypeHasBeenSet = false;
494
495 IndexStatus m_indexStatus{IndexStatus::NOT_SET};
496 bool m_indexStatusHasBeenSet = false;
497
498 Aws::String m_indexStatusMessage;
499 bool m_indexStatusMessageHasBeenSet = false;
500
501 Aws::String m_requestId;
502 bool m_requestIdHasBeenSet = false;
503 };
504
505} // namespace Model
506} // namespace Backup
507} // 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 & WithCreationDate(CreationDateT &&value)
DescribeRecoveryPointResult & WithIsParent(bool value)
DescribeRecoveryPointResult & WithIndexStatusMessage(IndexStatusMessageT &&value)
DescribeRecoveryPointResult & WithSourceBackupVaultArn(SourceBackupVaultArnT &&value)
DescribeRecoveryPointResult & WithLifecycle(LifecycleT &&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)
DescribeRecoveryPointResult & WithVaultType(VaultType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue