AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsBackupRecoveryPointDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/AwsBackupRecoveryPointCalculatedLifecycleDetails.h>
10#include <aws/securityhub/model/AwsBackupRecoveryPointCreatedByDetails.h>
11#include <aws/securityhub/model/AwsBackupRecoveryPointLifecycleDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_SECURITYHUB_API AwsBackupRecoveryPointDetails() = default;
42 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline long long GetBackupSizeInBytes() const { return m_backupSizeInBytes; }
50 inline bool BackupSizeInBytesHasBeenSet() const { return m_backupSizeInBytesHasBeenSet; }
51 inline void SetBackupSizeInBytes(long long value) { m_backupSizeInBytesHasBeenSet = true; m_backupSizeInBytes = value; }
52 inline AwsBackupRecoveryPointDetails& WithBackupSizeInBytes(long long value) { SetBackupSizeInBytes(value); return *this;}
54
56
59 inline const Aws::String& GetBackupVaultArn() const { return m_backupVaultArn; }
60 inline bool BackupVaultArnHasBeenSet() const { return m_backupVaultArnHasBeenSet; }
61 template<typename BackupVaultArnT = Aws::String>
62 void SetBackupVaultArn(BackupVaultArnT&& value) { m_backupVaultArnHasBeenSet = true; m_backupVaultArn = std::forward<BackupVaultArnT>(value); }
63 template<typename BackupVaultArnT = Aws::String>
64 AwsBackupRecoveryPointDetails& WithBackupVaultArn(BackupVaultArnT&& value) { SetBackupVaultArn(std::forward<BackupVaultArnT>(value)); return *this;}
66
68
74 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
75 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
76 template<typename BackupVaultNameT = Aws::String>
77 void SetBackupVaultName(BackupVaultNameT&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::forward<BackupVaultNameT>(value); }
78 template<typename BackupVaultNameT = Aws::String>
79 AwsBackupRecoveryPointDetails& WithBackupVaultName(BackupVaultNameT&& value) { SetBackupVaultName(std::forward<BackupVaultNameT>(value)); return *this;}
81
83
87 inline const AwsBackupRecoveryPointCalculatedLifecycleDetails& GetCalculatedLifecycle() const { return m_calculatedLifecycle; }
88 inline bool CalculatedLifecycleHasBeenSet() const { return m_calculatedLifecycleHasBeenSet; }
89 template<typename CalculatedLifecycleT = AwsBackupRecoveryPointCalculatedLifecycleDetails>
90 void SetCalculatedLifecycle(CalculatedLifecycleT&& value) { m_calculatedLifecycleHasBeenSet = true; m_calculatedLifecycle = std::forward<CalculatedLifecycleT>(value); }
91 template<typename CalculatedLifecycleT = AwsBackupRecoveryPointCalculatedLifecycleDetails>
92 AwsBackupRecoveryPointDetails& WithCalculatedLifecycle(CalculatedLifecycleT&& value) { SetCalculatedLifecycle(std::forward<CalculatedLifecycleT>(value)); return *this;}
94
96
102 inline const Aws::String& GetCompletionDate() const { return m_completionDate; }
103 inline bool CompletionDateHasBeenSet() const { return m_completionDateHasBeenSet; }
104 template<typename CompletionDateT = Aws::String>
105 void SetCompletionDate(CompletionDateT&& value) { m_completionDateHasBeenSet = true; m_completionDate = std::forward<CompletionDateT>(value); }
106 template<typename CompletionDateT = Aws::String>
107 AwsBackupRecoveryPointDetails& WithCompletionDate(CompletionDateT&& value) { SetCompletionDate(std::forward<CompletionDateT>(value)); return *this;}
109
111
117 inline const AwsBackupRecoveryPointCreatedByDetails& GetCreatedBy() const { return m_createdBy; }
118 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
119 template<typename CreatedByT = AwsBackupRecoveryPointCreatedByDetails>
120 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
121 template<typename CreatedByT = AwsBackupRecoveryPointCreatedByDetails>
122 AwsBackupRecoveryPointDetails& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
124
126
131 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
132 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
133 template<typename CreationDateT = Aws::String>
134 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
135 template<typename CreationDateT = Aws::String>
136 AwsBackupRecoveryPointDetails& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
138
140
144 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
145 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
146 template<typename EncryptionKeyArnT = Aws::String>
147 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
148 template<typename EncryptionKeyArnT = Aws::String>
149 AwsBackupRecoveryPointDetails& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
151
153
156 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
157 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
158 template<typename IamRoleArnT = Aws::String>
159 void SetIamRoleArn(IamRoleArnT&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::forward<IamRoleArnT>(value); }
160 template<typename IamRoleArnT = Aws::String>
161 AwsBackupRecoveryPointDetails& WithIamRoleArn(IamRoleArnT&& value) { SetIamRoleArn(std::forward<IamRoleArnT>(value)); return *this;}
163
165
170 inline bool GetIsEncrypted() const { return m_isEncrypted; }
171 inline bool IsEncryptedHasBeenSet() const { return m_isEncryptedHasBeenSet; }
172 inline void SetIsEncrypted(bool value) { m_isEncryptedHasBeenSet = true; m_isEncrypted = value; }
173 inline AwsBackupRecoveryPointDetails& WithIsEncrypted(bool value) { SetIsEncrypted(value); return *this;}
175
177
183 inline const Aws::String& GetLastRestoreTime() const { return m_lastRestoreTime; }
184 inline bool LastRestoreTimeHasBeenSet() const { return m_lastRestoreTimeHasBeenSet; }
185 template<typename LastRestoreTimeT = Aws::String>
186 void SetLastRestoreTime(LastRestoreTimeT&& value) { m_lastRestoreTimeHasBeenSet = true; m_lastRestoreTime = std::forward<LastRestoreTimeT>(value); }
187 template<typename LastRestoreTimeT = Aws::String>
188 AwsBackupRecoveryPointDetails& WithLastRestoreTime(LastRestoreTimeT&& value) { SetLastRestoreTime(std::forward<LastRestoreTimeT>(value)); return *this;}
190
192
197 inline const AwsBackupRecoveryPointLifecycleDetails& GetLifecycle() const { return m_lifecycle; }
198 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
199 template<typename LifecycleT = AwsBackupRecoveryPointLifecycleDetails>
200 void SetLifecycle(LifecycleT&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::forward<LifecycleT>(value); }
201 template<typename LifecycleT = AwsBackupRecoveryPointLifecycleDetails>
202 AwsBackupRecoveryPointDetails& WithLifecycle(LifecycleT&& value) { SetLifecycle(std::forward<LifecycleT>(value)); return *this;}
204
206
209 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
210 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
211 template<typename RecoveryPointArnT = Aws::String>
212 void SetRecoveryPointArn(RecoveryPointArnT&& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = std::forward<RecoveryPointArnT>(value); }
213 template<typename RecoveryPointArnT = Aws::String>
214 AwsBackupRecoveryPointDetails& WithRecoveryPointArn(RecoveryPointArnT&& value) { SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value)); return *this;}
216
218
222 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
223 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
224 template<typename ResourceArnT = Aws::String>
225 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
226 template<typename ResourceArnT = Aws::String>
227 AwsBackupRecoveryPointDetails& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
229
231
235 inline const Aws::String& GetResourceType() const { return m_resourceType; }
236 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
237 template<typename ResourceTypeT = Aws::String>
238 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
239 template<typename ResourceTypeT = Aws::String>
240 AwsBackupRecoveryPointDetails& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
242
244
249 inline const Aws::String& GetSourceBackupVaultArn() const { return m_sourceBackupVaultArn; }
250 inline bool SourceBackupVaultArnHasBeenSet() const { return m_sourceBackupVaultArnHasBeenSet; }
251 template<typename SourceBackupVaultArnT = Aws::String>
252 void SetSourceBackupVaultArn(SourceBackupVaultArnT&& value) { m_sourceBackupVaultArnHasBeenSet = true; m_sourceBackupVaultArn = std::forward<SourceBackupVaultArnT>(value); }
253 template<typename SourceBackupVaultArnT = Aws::String>
254 AwsBackupRecoveryPointDetails& WithSourceBackupVaultArn(SourceBackupVaultArnT&& value) { SetSourceBackupVaultArn(std::forward<SourceBackupVaultArnT>(value)); return *this;}
256
258
264 inline const Aws::String& GetStatus() const { return m_status; }
265 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
266 template<typename StatusT = Aws::String>
267 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
268 template<typename StatusT = Aws::String>
269 AwsBackupRecoveryPointDetails& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
271
273
276 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
277 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
278 template<typename StatusMessageT = Aws::String>
279 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
280 template<typename StatusMessageT = Aws::String>
281 AwsBackupRecoveryPointDetails& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
283
285
290 inline const Aws::String& GetStorageClass() const { return m_storageClass; }
291 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
292 template<typename StorageClassT = Aws::String>
293 void SetStorageClass(StorageClassT&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::forward<StorageClassT>(value); }
294 template<typename StorageClassT = Aws::String>
295 AwsBackupRecoveryPointDetails& WithStorageClass(StorageClassT&& value) { SetStorageClass(std::forward<StorageClassT>(value)); return *this;}
297 private:
298
299 long long m_backupSizeInBytes{0};
300 bool m_backupSizeInBytesHasBeenSet = false;
301
302 Aws::String m_backupVaultArn;
303 bool m_backupVaultArnHasBeenSet = false;
304
305 Aws::String m_backupVaultName;
306 bool m_backupVaultNameHasBeenSet = false;
307
308 AwsBackupRecoveryPointCalculatedLifecycleDetails m_calculatedLifecycle;
309 bool m_calculatedLifecycleHasBeenSet = false;
310
311 Aws::String m_completionDate;
312 bool m_completionDateHasBeenSet = false;
313
314 AwsBackupRecoveryPointCreatedByDetails m_createdBy;
315 bool m_createdByHasBeenSet = false;
316
317 Aws::String m_creationDate;
318 bool m_creationDateHasBeenSet = false;
319
320 Aws::String m_encryptionKeyArn;
321 bool m_encryptionKeyArnHasBeenSet = false;
322
323 Aws::String m_iamRoleArn;
324 bool m_iamRoleArnHasBeenSet = false;
325
326 bool m_isEncrypted{false};
327 bool m_isEncryptedHasBeenSet = false;
328
329 Aws::String m_lastRestoreTime;
330 bool m_lastRestoreTimeHasBeenSet = false;
331
332 AwsBackupRecoveryPointLifecycleDetails m_lifecycle;
333 bool m_lifecycleHasBeenSet = false;
334
335 Aws::String m_recoveryPointArn;
336 bool m_recoveryPointArnHasBeenSet = false;
337
338 Aws::String m_resourceArn;
339 bool m_resourceArnHasBeenSet = false;
340
341 Aws::String m_resourceType;
342 bool m_resourceTypeHasBeenSet = false;
343
344 Aws::String m_sourceBackupVaultArn;
345 bool m_sourceBackupVaultArnHasBeenSet = false;
346
347 Aws::String m_status;
348 bool m_statusHasBeenSet = false;
349
350 Aws::String m_statusMessage;
351 bool m_statusMessageHasBeenSet = false;
352
353 Aws::String m_storageClass;
354 bool m_storageClassHasBeenSet = false;
355 };
356
357} // namespace Model
358} // namespace SecurityHub
359} // namespace Aws
AwsBackupRecoveryPointDetails & WithCreatedBy(CreatedByT &&value)
AwsBackupRecoveryPointDetails & WithStatusMessage(StatusMessageT &&value)
AwsBackupRecoveryPointDetails & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
AwsBackupRecoveryPointDetails & WithBackupVaultArn(BackupVaultArnT &&value)
AwsBackupRecoveryPointDetails & WithResourceType(ResourceTypeT &&value)
AWS_SECURITYHUB_API AwsBackupRecoveryPointDetails(Aws::Utils::Json::JsonView jsonValue)
AwsBackupRecoveryPointDetails & WithIamRoleArn(IamRoleArnT &&value)
const AwsBackupRecoveryPointLifecycleDetails & GetLifecycle() const
AwsBackupRecoveryPointDetails & WithLastRestoreTime(LastRestoreTimeT &&value)
AwsBackupRecoveryPointDetails & WithRecoveryPointArn(RecoveryPointArnT &&value)
AwsBackupRecoveryPointDetails & WithBackupVaultName(BackupVaultNameT &&value)
AwsBackupRecoveryPointDetails & WithStorageClass(StorageClassT &&value)
AwsBackupRecoveryPointDetails & WithLifecycle(LifecycleT &&value)
AwsBackupRecoveryPointDetails & WithStatus(StatusT &&value)
AWS_SECURITYHUB_API AwsBackupRecoveryPointDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const AwsBackupRecoveryPointCalculatedLifecycleDetails & GetCalculatedLifecycle() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsBackupRecoveryPointDetails & WithResourceArn(ResourceArnT &&value)
AwsBackupRecoveryPointDetails & WithCompletionDate(CompletionDateT &&value)
AWS_SECURITYHUB_API AwsBackupRecoveryPointDetails()=default
AwsBackupRecoveryPointDetails & WithCreationDate(CreationDateT &&value)
AwsBackupRecoveryPointDetails & WithSourceBackupVaultArn(SourceBackupVaultArnT &&value)
AwsBackupRecoveryPointDetails & WithBackupSizeInBytes(long long value)
AwsBackupRecoveryPointDetails & WithCalculatedLifecycle(CalculatedLifecycleT &&value)
const AwsBackupRecoveryPointCreatedByDetails & GetCreatedBy() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue