AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RecoveryPointByBackupVault.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/VaultType.h>
15#include <aws/backup/model/IndexStatus.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Backup
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_BACKUP_API RecoveryPointByBackupVault() = default;
45 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
54 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
55 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
56 template<typename RecoveryPointArnT = Aws::String>
57 void SetRecoveryPointArn(RecoveryPointArnT&& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = std::forward<RecoveryPointArnT>(value); }
58 template<typename RecoveryPointArnT = Aws::String>
59 RecoveryPointByBackupVault& WithRecoveryPointArn(RecoveryPointArnT&& value) { SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value)); return *this;}
61
63
68 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
69 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
70 template<typename BackupVaultNameT = Aws::String>
71 void SetBackupVaultName(BackupVaultNameT&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::forward<BackupVaultNameT>(value); }
72 template<typename BackupVaultNameT = Aws::String>
73 RecoveryPointByBackupVault& WithBackupVaultName(BackupVaultNameT&& value) { SetBackupVaultName(std::forward<BackupVaultNameT>(value)); return *this;}
75
77
81 inline const Aws::String& GetBackupVaultArn() const { return m_backupVaultArn; }
82 inline bool BackupVaultArnHasBeenSet() const { return m_backupVaultArnHasBeenSet; }
83 template<typename BackupVaultArnT = Aws::String>
84 void SetBackupVaultArn(BackupVaultArnT&& value) { m_backupVaultArnHasBeenSet = true; m_backupVaultArn = std::forward<BackupVaultArnT>(value); }
85 template<typename BackupVaultArnT = Aws::String>
86 RecoveryPointByBackupVault& WithBackupVaultArn(BackupVaultArnT&& value) { SetBackupVaultArn(std::forward<BackupVaultArnT>(value)); return *this;}
88
90
95 inline const Aws::String& GetSourceBackupVaultArn() const { return m_sourceBackupVaultArn; }
96 inline bool SourceBackupVaultArnHasBeenSet() const { return m_sourceBackupVaultArnHasBeenSet; }
97 template<typename SourceBackupVaultArnT = Aws::String>
98 void SetSourceBackupVaultArn(SourceBackupVaultArnT&& value) { m_sourceBackupVaultArnHasBeenSet = true; m_sourceBackupVaultArn = std::forward<SourceBackupVaultArnT>(value); }
99 template<typename SourceBackupVaultArnT = Aws::String>
100 RecoveryPointByBackupVault& WithSourceBackupVaultArn(SourceBackupVaultArnT&& value) { SetSourceBackupVaultArn(std::forward<SourceBackupVaultArnT>(value)); return *this;}
102
104
108 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
109 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
110 template<typename ResourceArnT = Aws::String>
111 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
112 template<typename ResourceArnT = Aws::String>
113 RecoveryPointByBackupVault& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
115
117
123 inline const Aws::String& GetResourceType() const { return m_resourceType; }
124 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
125 template<typename ResourceTypeT = Aws::String>
126 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
127 template<typename ResourceTypeT = Aws::String>
128 RecoveryPointByBackupVault& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
130
132
138 inline const RecoveryPointCreator& GetCreatedBy() const { return m_createdBy; }
139 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
140 template<typename CreatedByT = RecoveryPointCreator>
141 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
142 template<typename CreatedByT = RecoveryPointCreator>
143 RecoveryPointByBackupVault& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
145
147
151 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
152 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
153 template<typename IamRoleArnT = Aws::String>
154 void SetIamRoleArn(IamRoleArnT&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::forward<IamRoleArnT>(value); }
155 template<typename IamRoleArnT = Aws::String>
156 RecoveryPointByBackupVault& WithIamRoleArn(IamRoleArnT&& value) { SetIamRoleArn(std::forward<IamRoleArnT>(value)); return *this;}
158
160
163 inline RecoveryPointStatus GetStatus() const { return m_status; }
164 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
165 inline void SetStatus(RecoveryPointStatus value) { m_statusHasBeenSet = true; m_status = value; }
168
170
173 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
174 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
175 template<typename StatusMessageT = Aws::String>
176 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
177 template<typename StatusMessageT = Aws::String>
178 RecoveryPointByBackupVault& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
180
182
188 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
189 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
190 template<typename CreationDateT = Aws::Utils::DateTime>
191 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
192 template<typename CreationDateT = Aws::Utils::DateTime>
193 RecoveryPointByBackupVault& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
195
197
201 inline const Aws::Utils::DateTime& GetInitiationDate() const { return m_initiationDate; }
202 inline bool InitiationDateHasBeenSet() const { return m_initiationDateHasBeenSet; }
203 template<typename InitiationDateT = Aws::Utils::DateTime>
204 void SetInitiationDate(InitiationDateT&& value) { m_initiationDateHasBeenSet = true; m_initiationDate = std::forward<InitiationDateT>(value); }
205 template<typename InitiationDateT = Aws::Utils::DateTime>
206 RecoveryPointByBackupVault& WithInitiationDate(InitiationDateT&& value) { SetInitiationDate(std::forward<InitiationDateT>(value)); return *this;}
208
210
216 inline const Aws::Utils::DateTime& GetCompletionDate() const { return m_completionDate; }
217 inline bool CompletionDateHasBeenSet() const { return m_completionDateHasBeenSet; }
218 template<typename CompletionDateT = Aws::Utils::DateTime>
219 void SetCompletionDate(CompletionDateT&& value) { m_completionDateHasBeenSet = true; m_completionDate = std::forward<CompletionDateT>(value); }
220 template<typename CompletionDateT = Aws::Utils::DateTime>
221 RecoveryPointByBackupVault& WithCompletionDate(CompletionDateT&& value) { SetCompletionDate(std::forward<CompletionDateT>(value)); return *this;}
223
225
228 inline long long GetBackupSizeInBytes() const { return m_backupSizeInBytes; }
229 inline bool BackupSizeInBytesHasBeenSet() const { return m_backupSizeInBytesHasBeenSet; }
230 inline void SetBackupSizeInBytes(long long value) { m_backupSizeInBytesHasBeenSet = true; m_backupSizeInBytes = value; }
231 inline RecoveryPointByBackupVault& WithBackupSizeInBytes(long long value) { SetBackupSizeInBytes(value); return *this;}
233
235
239 inline const CalculatedLifecycle& GetCalculatedLifecycle() const { return m_calculatedLifecycle; }
240 inline bool CalculatedLifecycleHasBeenSet() const { return m_calculatedLifecycleHasBeenSet; }
241 template<typename CalculatedLifecycleT = CalculatedLifecycle>
242 void SetCalculatedLifecycle(CalculatedLifecycleT&& value) { m_calculatedLifecycleHasBeenSet = true; m_calculatedLifecycle = std::forward<CalculatedLifecycleT>(value); }
243 template<typename CalculatedLifecycleT = CalculatedLifecycle>
244 RecoveryPointByBackupVault& WithCalculatedLifecycle(CalculatedLifecycleT&& value) { SetCalculatedLifecycle(std::forward<CalculatedLifecycleT>(value)); return *this;}
246
248
261 inline const Lifecycle& GetLifecycle() const { return m_lifecycle; }
262 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
263 template<typename LifecycleT = Lifecycle>
264 void SetLifecycle(LifecycleT&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::forward<LifecycleT>(value); }
265 template<typename LifecycleT = Lifecycle>
266 RecoveryPointByBackupVault& WithLifecycle(LifecycleT&& value) { SetLifecycle(std::forward<LifecycleT>(value)); return *this;}
268
270
275 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
276 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
277 template<typename EncryptionKeyArnT = Aws::String>
278 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
279 template<typename EncryptionKeyArnT = Aws::String>
280 RecoveryPointByBackupVault& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
282
284
289 inline bool GetIsEncrypted() const { return m_isEncrypted; }
290 inline bool IsEncryptedHasBeenSet() const { return m_isEncryptedHasBeenSet; }
291 inline void SetIsEncrypted(bool value) { m_isEncryptedHasBeenSet = true; m_isEncrypted = value; }
292 inline RecoveryPointByBackupVault& WithIsEncrypted(bool value) { SetIsEncrypted(value); return *this;}
294
296
302 inline const Aws::Utils::DateTime& GetLastRestoreTime() const { return m_lastRestoreTime; }
303 inline bool LastRestoreTimeHasBeenSet() const { return m_lastRestoreTimeHasBeenSet; }
304 template<typename LastRestoreTimeT = Aws::Utils::DateTime>
305 void SetLastRestoreTime(LastRestoreTimeT&& value) { m_lastRestoreTimeHasBeenSet = true; m_lastRestoreTime = std::forward<LastRestoreTimeT>(value); }
306 template<typename LastRestoreTimeT = Aws::Utils::DateTime>
307 RecoveryPointByBackupVault& WithLastRestoreTime(LastRestoreTimeT&& value) { SetLastRestoreTime(std::forward<LastRestoreTimeT>(value)); return *this;}
309
311
314 inline const Aws::String& GetParentRecoveryPointArn() const { return m_parentRecoveryPointArn; }
315 inline bool ParentRecoveryPointArnHasBeenSet() const { return m_parentRecoveryPointArnHasBeenSet; }
316 template<typename ParentRecoveryPointArnT = Aws::String>
317 void SetParentRecoveryPointArn(ParentRecoveryPointArnT&& value) { m_parentRecoveryPointArnHasBeenSet = true; m_parentRecoveryPointArn = std::forward<ParentRecoveryPointArnT>(value); }
318 template<typename ParentRecoveryPointArnT = Aws::String>
319 RecoveryPointByBackupVault& WithParentRecoveryPointArn(ParentRecoveryPointArnT&& value) { SetParentRecoveryPointArn(std::forward<ParentRecoveryPointArnT>(value)); return *this;}
321
323
330 inline const Aws::String& GetCompositeMemberIdentifier() const { return m_compositeMemberIdentifier; }
331 inline bool CompositeMemberIdentifierHasBeenSet() const { return m_compositeMemberIdentifierHasBeenSet; }
332 template<typename CompositeMemberIdentifierT = Aws::String>
333 void SetCompositeMemberIdentifier(CompositeMemberIdentifierT&& value) { m_compositeMemberIdentifierHasBeenSet = true; m_compositeMemberIdentifier = std::forward<CompositeMemberIdentifierT>(value); }
334 template<typename CompositeMemberIdentifierT = Aws::String>
335 RecoveryPointByBackupVault& WithCompositeMemberIdentifier(CompositeMemberIdentifierT&& value) { SetCompositeMemberIdentifier(std::forward<CompositeMemberIdentifierT>(value)); return *this;}
337
339
343 inline bool GetIsParent() const { return m_isParent; }
344 inline bool IsParentHasBeenSet() const { return m_isParentHasBeenSet; }
345 inline void SetIsParent(bool value) { m_isParentHasBeenSet = true; m_isParent = value; }
346 inline RecoveryPointByBackupVault& WithIsParent(bool value) { SetIsParent(value); return *this;}
348
350
353 inline const Aws::String& GetResourceName() const { return m_resourceName; }
354 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
355 template<typename ResourceNameT = Aws::String>
356 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
357 template<typename ResourceNameT = Aws::String>
358 RecoveryPointByBackupVault& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
360
362
365 inline VaultType GetVaultType() const { return m_vaultType; }
366 inline bool VaultTypeHasBeenSet() const { return m_vaultTypeHasBeenSet; }
367 inline void SetVaultType(VaultType value) { m_vaultTypeHasBeenSet = true; m_vaultType = value; }
368 inline RecoveryPointByBackupVault& WithVaultType(VaultType value) { SetVaultType(value); return *this;}
370
372
379 inline IndexStatus GetIndexStatus() const { return m_indexStatus; }
380 inline bool IndexStatusHasBeenSet() const { return m_indexStatusHasBeenSet; }
381 inline void SetIndexStatus(IndexStatus value) { m_indexStatusHasBeenSet = true; m_indexStatus = value; }
384
386
390 inline const Aws::String& GetIndexStatusMessage() const { return m_indexStatusMessage; }
391 inline bool IndexStatusMessageHasBeenSet() const { return m_indexStatusMessageHasBeenSet; }
392 template<typename IndexStatusMessageT = Aws::String>
393 void SetIndexStatusMessage(IndexStatusMessageT&& value) { m_indexStatusMessageHasBeenSet = true; m_indexStatusMessage = std::forward<IndexStatusMessageT>(value); }
394 template<typename IndexStatusMessageT = Aws::String>
395 RecoveryPointByBackupVault& WithIndexStatusMessage(IndexStatusMessageT&& value) { SetIndexStatusMessage(std::forward<IndexStatusMessageT>(value)); return *this;}
397 private:
398
399 Aws::String m_recoveryPointArn;
400 bool m_recoveryPointArnHasBeenSet = false;
401
402 Aws::String m_backupVaultName;
403 bool m_backupVaultNameHasBeenSet = false;
404
405 Aws::String m_backupVaultArn;
406 bool m_backupVaultArnHasBeenSet = false;
407
408 Aws::String m_sourceBackupVaultArn;
409 bool m_sourceBackupVaultArnHasBeenSet = false;
410
411 Aws::String m_resourceArn;
412 bool m_resourceArnHasBeenSet = false;
413
414 Aws::String m_resourceType;
415 bool m_resourceTypeHasBeenSet = false;
416
417 RecoveryPointCreator m_createdBy;
418 bool m_createdByHasBeenSet = false;
419
420 Aws::String m_iamRoleArn;
421 bool m_iamRoleArnHasBeenSet = false;
422
424 bool m_statusHasBeenSet = false;
425
426 Aws::String m_statusMessage;
427 bool m_statusMessageHasBeenSet = false;
428
429 Aws::Utils::DateTime m_creationDate{};
430 bool m_creationDateHasBeenSet = false;
431
432 Aws::Utils::DateTime m_initiationDate{};
433 bool m_initiationDateHasBeenSet = false;
434
435 Aws::Utils::DateTime m_completionDate{};
436 bool m_completionDateHasBeenSet = false;
437
438 long long m_backupSizeInBytes{0};
439 bool m_backupSizeInBytesHasBeenSet = false;
440
441 CalculatedLifecycle m_calculatedLifecycle;
442 bool m_calculatedLifecycleHasBeenSet = false;
443
444 Lifecycle m_lifecycle;
445 bool m_lifecycleHasBeenSet = false;
446
447 Aws::String m_encryptionKeyArn;
448 bool m_encryptionKeyArnHasBeenSet = false;
449
450 bool m_isEncrypted{false};
451 bool m_isEncryptedHasBeenSet = false;
452
453 Aws::Utils::DateTime m_lastRestoreTime{};
454 bool m_lastRestoreTimeHasBeenSet = false;
455
456 Aws::String m_parentRecoveryPointArn;
457 bool m_parentRecoveryPointArnHasBeenSet = false;
458
459 Aws::String m_compositeMemberIdentifier;
460 bool m_compositeMemberIdentifierHasBeenSet = false;
461
462 bool m_isParent{false};
463 bool m_isParentHasBeenSet = false;
464
465 Aws::String m_resourceName;
466 bool m_resourceNameHasBeenSet = false;
467
468 VaultType m_vaultType{VaultType::NOT_SET};
469 bool m_vaultTypeHasBeenSet = false;
470
471 IndexStatus m_indexStatus{IndexStatus::NOT_SET};
472 bool m_indexStatusHasBeenSet = false;
473
474 Aws::String m_indexStatusMessage;
475 bool m_indexStatusMessageHasBeenSet = false;
476 };
477
478} // namespace Model
479} // namespace Backup
480} // namespace Aws
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)
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 & WithStatus(RecoveryPointStatus value)
RecoveryPointByBackupVault & WithCreationDate(CreationDateT &&value)
const Aws::Utils::DateTime & GetLastRestoreTime() const
RecoveryPointByBackupVault & WithIndexStatus(IndexStatus value)
RecoveryPointByBackupVault & WithSourceBackupVaultArn(SourceBackupVaultArnT &&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