AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AwsBackupRecoveryPointDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/AwsBackupRecoveryPointCalculatedLifecycleDetails.h>
10#include <aws/securityhub/model/AwsBackupRecoveryPointCreatedByDetails.h>
11#include <aws/securityhub/model/AwsBackupRecoveryPointLifecycleDetails.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub {
23namespace Model {
24
33 public:
34 AWS_SECURITYHUB_API AwsBackupRecoveryPointDetails() = default;
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline long long GetBackupSizeInBytes() const { return m_backupSizeInBytes; }
44 inline bool BackupSizeInBytesHasBeenSet() const { return m_backupSizeInBytesHasBeenSet; }
45 inline void SetBackupSizeInBytes(long long value) {
46 m_backupSizeInBytesHasBeenSet = true;
47 m_backupSizeInBytes = value;
48 }
51 return *this;
52 }
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) {
63 m_backupVaultArnHasBeenSet = true;
64 m_backupVaultArn = std::forward<BackupVaultArnT>(value);
65 }
66 template <typename BackupVaultArnT = Aws::String>
68 SetBackupVaultArn(std::forward<BackupVaultArnT>(value));
69 return *this;
70 }
72
74
80 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
81 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
82 template <typename BackupVaultNameT = Aws::String>
83 void SetBackupVaultName(BackupVaultNameT&& value) {
84 m_backupVaultNameHasBeenSet = true;
85 m_backupVaultName = std::forward<BackupVaultNameT>(value);
86 }
87 template <typename BackupVaultNameT = Aws::String>
89 SetBackupVaultName(std::forward<BackupVaultNameT>(value));
90 return *this;
91 }
93
95
99 inline const AwsBackupRecoveryPointCalculatedLifecycleDetails& GetCalculatedLifecycle() const { return m_calculatedLifecycle; }
100 inline bool CalculatedLifecycleHasBeenSet() const { return m_calculatedLifecycleHasBeenSet; }
101 template <typename CalculatedLifecycleT = AwsBackupRecoveryPointCalculatedLifecycleDetails>
102 void SetCalculatedLifecycle(CalculatedLifecycleT&& value) {
103 m_calculatedLifecycleHasBeenSet = true;
104 m_calculatedLifecycle = std::forward<CalculatedLifecycleT>(value);
105 }
106 template <typename CalculatedLifecycleT = AwsBackupRecoveryPointCalculatedLifecycleDetails>
108 SetCalculatedLifecycle(std::forward<CalculatedLifecycleT>(value));
109 return *this;
110 }
112
114
120 inline const Aws::String& GetCompletionDate() const { return m_completionDate; }
121 inline bool CompletionDateHasBeenSet() const { return m_completionDateHasBeenSet; }
122 template <typename CompletionDateT = Aws::String>
123 void SetCompletionDate(CompletionDateT&& value) {
124 m_completionDateHasBeenSet = true;
125 m_completionDate = std::forward<CompletionDateT>(value);
126 }
127 template <typename CompletionDateT = Aws::String>
129 SetCompletionDate(std::forward<CompletionDateT>(value));
130 return *this;
131 }
133
135
141 inline const AwsBackupRecoveryPointCreatedByDetails& GetCreatedBy() const { return m_createdBy; }
142 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
143 template <typename CreatedByT = AwsBackupRecoveryPointCreatedByDetails>
144 void SetCreatedBy(CreatedByT&& value) {
145 m_createdByHasBeenSet = true;
146 m_createdBy = std::forward<CreatedByT>(value);
147 }
148 template <typename CreatedByT = AwsBackupRecoveryPointCreatedByDetails>
150 SetCreatedBy(std::forward<CreatedByT>(value));
151 return *this;
152 }
154
156
161 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
162 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
163 template <typename CreationDateT = Aws::String>
164 void SetCreationDate(CreationDateT&& value) {
165 m_creationDateHasBeenSet = true;
166 m_creationDate = std::forward<CreationDateT>(value);
167 }
168 template <typename CreationDateT = Aws::String>
170 SetCreationDate(std::forward<CreationDateT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
181 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
182 template <typename EncryptionKeyArnT = Aws::String>
183 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
184 m_encryptionKeyArnHasBeenSet = true;
185 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
186 }
187 template <typename EncryptionKeyArnT = Aws::String>
189 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
199 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
200 template <typename IamRoleArnT = Aws::String>
201 void SetIamRoleArn(IamRoleArnT&& value) {
202 m_iamRoleArnHasBeenSet = true;
203 m_iamRoleArn = std::forward<IamRoleArnT>(value);
204 }
205 template <typename IamRoleArnT = Aws::String>
207 SetIamRoleArn(std::forward<IamRoleArnT>(value));
208 return *this;
209 }
211
213
218 inline bool GetIsEncrypted() const { return m_isEncrypted; }
219 inline bool IsEncryptedHasBeenSet() const { return m_isEncryptedHasBeenSet; }
220 inline void SetIsEncrypted(bool value) {
221 m_isEncryptedHasBeenSet = true;
222 m_isEncrypted = value;
223 }
225 SetIsEncrypted(value);
226 return *this;
227 }
229
231
237 inline const Aws::String& GetLastRestoreTime() const { return m_lastRestoreTime; }
238 inline bool LastRestoreTimeHasBeenSet() const { return m_lastRestoreTimeHasBeenSet; }
239 template <typename LastRestoreTimeT = Aws::String>
240 void SetLastRestoreTime(LastRestoreTimeT&& value) {
241 m_lastRestoreTimeHasBeenSet = true;
242 m_lastRestoreTime = std::forward<LastRestoreTimeT>(value);
243 }
244 template <typename LastRestoreTimeT = Aws::String>
246 SetLastRestoreTime(std::forward<LastRestoreTimeT>(value));
247 return *this;
248 }
250
252
257 inline const AwsBackupRecoveryPointLifecycleDetails& GetLifecycle() const { return m_lifecycle; }
258 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
259 template <typename LifecycleT = AwsBackupRecoveryPointLifecycleDetails>
260 void SetLifecycle(LifecycleT&& value) {
261 m_lifecycleHasBeenSet = true;
262 m_lifecycle = std::forward<LifecycleT>(value);
263 }
264 template <typename LifecycleT = AwsBackupRecoveryPointLifecycleDetails>
266 SetLifecycle(std::forward<LifecycleT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
276 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
277 template <typename RecoveryPointArnT = Aws::String>
278 void SetRecoveryPointArn(RecoveryPointArnT&& value) {
279 m_recoveryPointArnHasBeenSet = true;
280 m_recoveryPointArn = std::forward<RecoveryPointArnT>(value);
281 }
282 template <typename RecoveryPointArnT = Aws::String>
284 SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value));
285 return *this;
286 }
288
290
294 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
295 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
296 template <typename ResourceArnT = Aws::String>
297 void SetResourceArn(ResourceArnT&& value) {
298 m_resourceArnHasBeenSet = true;
299 m_resourceArn = std::forward<ResourceArnT>(value);
300 }
301 template <typename ResourceArnT = Aws::String>
303 SetResourceArn(std::forward<ResourceArnT>(value));
304 return *this;
305 }
307
309
313 inline const Aws::String& GetResourceType() const { return m_resourceType; }
314 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
315 template <typename ResourceTypeT = Aws::String>
316 void SetResourceType(ResourceTypeT&& value) {
317 m_resourceTypeHasBeenSet = true;
318 m_resourceType = std::forward<ResourceTypeT>(value);
319 }
320 template <typename ResourceTypeT = Aws::String>
322 SetResourceType(std::forward<ResourceTypeT>(value));
323 return *this;
324 }
326
328
333 inline const Aws::String& GetSourceBackupVaultArn() const { return m_sourceBackupVaultArn; }
334 inline bool SourceBackupVaultArnHasBeenSet() const { return m_sourceBackupVaultArnHasBeenSet; }
335 template <typename SourceBackupVaultArnT = Aws::String>
336 void SetSourceBackupVaultArn(SourceBackupVaultArnT&& value) {
337 m_sourceBackupVaultArnHasBeenSet = true;
338 m_sourceBackupVaultArn = std::forward<SourceBackupVaultArnT>(value);
339 }
340 template <typename SourceBackupVaultArnT = Aws::String>
342 SetSourceBackupVaultArn(std::forward<SourceBackupVaultArnT>(value));
343 return *this;
344 }
346
348
354 inline const Aws::String& GetStatus() const { return m_status; }
355 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
356 template <typename StatusT = Aws::String>
357 void SetStatus(StatusT&& value) {
358 m_statusHasBeenSet = true;
359 m_status = std::forward<StatusT>(value);
360 }
361 template <typename StatusT = Aws::String>
363 SetStatus(std::forward<StatusT>(value));
364 return *this;
365 }
367
369
372 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
373 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
374 template <typename StatusMessageT = Aws::String>
375 void SetStatusMessage(StatusMessageT&& value) {
376 m_statusMessageHasBeenSet = true;
377 m_statusMessage = std::forward<StatusMessageT>(value);
378 }
379 template <typename StatusMessageT = Aws::String>
381 SetStatusMessage(std::forward<StatusMessageT>(value));
382 return *this;
383 }
385
387
392 inline const Aws::String& GetStorageClass() const { return m_storageClass; }
393 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
394 template <typename StorageClassT = Aws::String>
395 void SetStorageClass(StorageClassT&& value) {
396 m_storageClassHasBeenSet = true;
397 m_storageClass = std::forward<StorageClassT>(value);
398 }
399 template <typename StorageClassT = Aws::String>
401 SetStorageClass(std::forward<StorageClassT>(value));
402 return *this;
403 }
405 private:
406 long long m_backupSizeInBytes{0};
407
408 Aws::String m_backupVaultArn;
409
410 Aws::String m_backupVaultName;
411
412 AwsBackupRecoveryPointCalculatedLifecycleDetails m_calculatedLifecycle;
413
414 Aws::String m_completionDate;
415
416 AwsBackupRecoveryPointCreatedByDetails m_createdBy;
417
418 Aws::String m_creationDate;
419
420 Aws::String m_encryptionKeyArn;
421
422 Aws::String m_iamRoleArn;
423
424 bool m_isEncrypted{false};
425
426 Aws::String m_lastRestoreTime;
427
428 AwsBackupRecoveryPointLifecycleDetails m_lifecycle;
429
430 Aws::String m_recoveryPointArn;
431
432 Aws::String m_resourceArn;
433
434 Aws::String m_resourceType;
435
436 Aws::String m_sourceBackupVaultArn;
437
438 Aws::String m_status;
439
440 Aws::String m_statusMessage;
441
442 Aws::String m_storageClass;
443 bool m_backupSizeInBytesHasBeenSet = false;
444 bool m_backupVaultArnHasBeenSet = false;
445 bool m_backupVaultNameHasBeenSet = false;
446 bool m_calculatedLifecycleHasBeenSet = false;
447 bool m_completionDateHasBeenSet = false;
448 bool m_createdByHasBeenSet = false;
449 bool m_creationDateHasBeenSet = false;
450 bool m_encryptionKeyArnHasBeenSet = false;
451 bool m_iamRoleArnHasBeenSet = false;
452 bool m_isEncryptedHasBeenSet = false;
453 bool m_lastRestoreTimeHasBeenSet = false;
454 bool m_lifecycleHasBeenSet = false;
455 bool m_recoveryPointArnHasBeenSet = false;
456 bool m_resourceArnHasBeenSet = false;
457 bool m_resourceTypeHasBeenSet = false;
458 bool m_sourceBackupVaultArnHasBeenSet = false;
459 bool m_statusHasBeenSet = false;
460 bool m_statusMessageHasBeenSet = false;
461 bool m_storageClassHasBeenSet = false;
462};
463
464} // namespace Model
465} // namespace SecurityHub
466} // 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