AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
RecoveryPointByResource.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/AggregatedScanResult.h>
9#include <aws/backup/model/EncryptionKeyType.h>
10#include <aws/backup/model/IndexStatus.h>
11#include <aws/backup/model/RecoveryPointStatus.h>
12#include <aws/backup/model/VaultType.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Backup {
26namespace Model {
27
35 public:
36 AWS_BACKUP_API RecoveryPointByResource() = default;
39 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
47 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
48 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
49 template <typename RecoveryPointArnT = Aws::String>
50 void SetRecoveryPointArn(RecoveryPointArnT&& value) {
51 m_recoveryPointArnHasBeenSet = true;
52 m_recoveryPointArn = std::forward<RecoveryPointArnT>(value);
53 }
54 template <typename RecoveryPointArnT = Aws::String>
55 RecoveryPointByResource& WithRecoveryPointArn(RecoveryPointArnT&& value) {
56 SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value));
57 return *this;
58 }
60
62
68 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
69 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
70 template <typename CreationDateT = Aws::Utils::DateTime>
71 void SetCreationDate(CreationDateT&& value) {
72 m_creationDateHasBeenSet = true;
73 m_creationDate = std::forward<CreationDateT>(value);
74 }
75 template <typename CreationDateT = Aws::Utils::DateTime>
76 RecoveryPointByResource& WithCreationDate(CreationDateT&& value) {
77 SetCreationDate(std::forward<CreationDateT>(value));
78 return *this;
79 }
81
83
86 inline RecoveryPointStatus GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(RecoveryPointStatus value) {
89 m_statusHasBeenSet = true;
90 m_status = value;
91 }
93 SetStatus(value);
94 return *this;
95 }
97
99
102 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
103 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
104 template <typename StatusMessageT = Aws::String>
105 void SetStatusMessage(StatusMessageT&& value) {
106 m_statusMessageHasBeenSet = true;
107 m_statusMessage = std::forward<StatusMessageT>(value);
108 }
109 template <typename StatusMessageT = Aws::String>
111 SetStatusMessage(std::forward<StatusMessageT>(value));
112 return *this;
113 }
115
117
122 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
123 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
124 template <typename EncryptionKeyArnT = Aws::String>
125 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
126 m_encryptionKeyArnHasBeenSet = true;
127 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
128 }
129 template <typename EncryptionKeyArnT = Aws::String>
130 RecoveryPointByResource& WithEncryptionKeyArn(EncryptionKeyArnT&& value) {
131 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
132 return *this;
133 }
135
137
140 inline long long GetBackupSizeBytes() const { return m_backupSizeBytes; }
141 inline bool BackupSizeBytesHasBeenSet() const { return m_backupSizeBytesHasBeenSet; }
142 inline void SetBackupSizeBytes(long long value) {
143 m_backupSizeBytesHasBeenSet = true;
144 m_backupSizeBytes = value;
145 }
147 SetBackupSizeBytes(value);
148 return *this;
149 }
151
153
158 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
159 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
160 template <typename BackupVaultNameT = Aws::String>
161 void SetBackupVaultName(BackupVaultNameT&& value) {
162 m_backupVaultNameHasBeenSet = true;
163 m_backupVaultName = std::forward<BackupVaultNameT>(value);
164 }
165 template <typename BackupVaultNameT = Aws::String>
166 RecoveryPointByResource& WithBackupVaultName(BackupVaultNameT&& value) {
167 SetBackupVaultName(std::forward<BackupVaultNameT>(value));
168 return *this;
169 }
171
173
177 inline bool GetIsParent() const { return m_isParent; }
178 inline bool IsParentHasBeenSet() const { return m_isParentHasBeenSet; }
179 inline void SetIsParent(bool value) {
180 m_isParentHasBeenSet = true;
181 m_isParent = value;
182 }
184 SetIsParent(value);
185 return *this;
186 }
188
190
193 inline const Aws::String& GetParentRecoveryPointArn() const { return m_parentRecoveryPointArn; }
194 inline bool ParentRecoveryPointArnHasBeenSet() const { return m_parentRecoveryPointArnHasBeenSet; }
195 template <typename ParentRecoveryPointArnT = Aws::String>
196 void SetParentRecoveryPointArn(ParentRecoveryPointArnT&& value) {
197 m_parentRecoveryPointArnHasBeenSet = true;
198 m_parentRecoveryPointArn = std::forward<ParentRecoveryPointArnT>(value);
199 }
200 template <typename ParentRecoveryPointArnT = Aws::String>
201 RecoveryPointByResource& WithParentRecoveryPointArn(ParentRecoveryPointArnT&& value) {
202 SetParentRecoveryPointArn(std::forward<ParentRecoveryPointArnT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::String& GetResourceName() const { return m_resourceName; }
212 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
213 template <typename ResourceNameT = Aws::String>
214 void SetResourceName(ResourceNameT&& value) {
215 m_resourceNameHasBeenSet = true;
216 m_resourceName = std::forward<ResourceNameT>(value);
217 }
218 template <typename ResourceNameT = Aws::String>
220 SetResourceName(std::forward<ResourceNameT>(value));
221 return *this;
222 }
224
226
229 inline VaultType GetVaultType() const { return m_vaultType; }
230 inline bool VaultTypeHasBeenSet() const { return m_vaultTypeHasBeenSet; }
231 inline void SetVaultType(VaultType value) {
232 m_vaultTypeHasBeenSet = true;
233 m_vaultType = value;
234 }
236 SetVaultType(value);
237 return *this;
238 }
240
242
249 inline IndexStatus GetIndexStatus() const { return m_indexStatus; }
250 inline bool IndexStatusHasBeenSet() const { return m_indexStatusHasBeenSet; }
251 inline void SetIndexStatus(IndexStatus value) {
252 m_indexStatusHasBeenSet = true;
253 m_indexStatus = value;
254 }
256 SetIndexStatus(value);
257 return *this;
258 }
260
262
266 inline const Aws::String& GetIndexStatusMessage() const { return m_indexStatusMessage; }
267 inline bool IndexStatusMessageHasBeenSet() const { return m_indexStatusMessageHasBeenSet; }
268 template <typename IndexStatusMessageT = Aws::String>
269 void SetIndexStatusMessage(IndexStatusMessageT&& value) {
270 m_indexStatusMessageHasBeenSet = true;
271 m_indexStatusMessage = std::forward<IndexStatusMessageT>(value);
272 }
273 template <typename IndexStatusMessageT = Aws::String>
274 RecoveryPointByResource& WithIndexStatusMessage(IndexStatusMessageT&& value) {
275 SetIndexStatusMessage(std::forward<IndexStatusMessageT>(value));
276 return *this;
277 }
279
281
286 inline EncryptionKeyType GetEncryptionKeyType() const { return m_encryptionKeyType; }
287 inline bool EncryptionKeyTypeHasBeenSet() const { return m_encryptionKeyTypeHasBeenSet; }
289 m_encryptionKeyTypeHasBeenSet = true;
290 m_encryptionKeyType = value;
291 }
294 return *this;
295 }
297
299
304 inline const AggregatedScanResult& GetAggregatedScanResult() const { return m_aggregatedScanResult; }
305 inline bool AggregatedScanResultHasBeenSet() const { return m_aggregatedScanResultHasBeenSet; }
306 template <typename AggregatedScanResultT = AggregatedScanResult>
307 void SetAggregatedScanResult(AggregatedScanResultT&& value) {
308 m_aggregatedScanResultHasBeenSet = true;
309 m_aggregatedScanResult = std::forward<AggregatedScanResultT>(value);
310 }
311 template <typename AggregatedScanResultT = AggregatedScanResult>
312 RecoveryPointByResource& WithAggregatedScanResult(AggregatedScanResultT&& value) {
313 SetAggregatedScanResult(std::forward<AggregatedScanResultT>(value));
314 return *this;
315 }
317 private:
318 Aws::String m_recoveryPointArn;
319
320 Aws::Utils::DateTime m_creationDate{};
321
323
324 Aws::String m_statusMessage;
325
326 Aws::String m_encryptionKeyArn;
327
328 long long m_backupSizeBytes{0};
329
330 Aws::String m_backupVaultName;
331
332 bool m_isParent{false};
333
334 Aws::String m_parentRecoveryPointArn;
335
336 Aws::String m_resourceName;
337
338 VaultType m_vaultType{VaultType::NOT_SET};
339
340 IndexStatus m_indexStatus{IndexStatus::NOT_SET};
341
342 Aws::String m_indexStatusMessage;
343
345
346 AggregatedScanResult m_aggregatedScanResult;
347 bool m_recoveryPointArnHasBeenSet = false;
348 bool m_creationDateHasBeenSet = false;
349 bool m_statusHasBeenSet = false;
350 bool m_statusMessageHasBeenSet = false;
351 bool m_encryptionKeyArnHasBeenSet = false;
352 bool m_backupSizeBytesHasBeenSet = false;
353 bool m_backupVaultNameHasBeenSet = false;
354 bool m_isParentHasBeenSet = false;
355 bool m_parentRecoveryPointArnHasBeenSet = false;
356 bool m_resourceNameHasBeenSet = false;
357 bool m_vaultTypeHasBeenSet = false;
358 bool m_indexStatusHasBeenSet = false;
359 bool m_indexStatusMessageHasBeenSet = false;
360 bool m_encryptionKeyTypeHasBeenSet = false;
361 bool m_aggregatedScanResultHasBeenSet = false;
362};
363
364} // namespace Model
365} // namespace Backup
366} // namespace Aws
RecoveryPointByResource & WithRecoveryPointArn(RecoveryPointArnT &&value)
RecoveryPointByResource & WithParentRecoveryPointArn(ParentRecoveryPointArnT &&value)
RecoveryPointByResource & WithCreationDate(CreationDateT &&value)
RecoveryPointByResource & WithStatus(RecoveryPointStatus value)
AWS_BACKUP_API RecoveryPointByResource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
RecoveryPointByResource & WithIsParent(bool value)
RecoveryPointByResource & WithBackupVaultName(BackupVaultNameT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetEncryptionKeyArn(EncryptionKeyArnT &&value)
RecoveryPointByResource & WithIndexStatus(IndexStatus value)
AWS_BACKUP_API RecoveryPointByResource(Aws::Utils::Json::JsonView jsonValue)
void SetIndexStatusMessage(IndexStatusMessageT &&value)
RecoveryPointByResource & WithIndexStatusMessage(IndexStatusMessageT &&value)
RecoveryPointByResource & WithResourceName(ResourceNameT &&value)
const AggregatedScanResult & GetAggregatedScanResult() const
RecoveryPointByResource & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
AWS_BACKUP_API RecoveryPointByResource()=default
RecoveryPointByResource & WithEncryptionKeyType(EncryptionKeyType value)
void SetAggregatedScanResult(AggregatedScanResultT &&value)
void SetParentRecoveryPointArn(ParentRecoveryPointArnT &&value)
RecoveryPointByResource & WithBackupSizeBytes(long long value)
RecoveryPointByResource & WithVaultType(VaultType value)
void SetRecoveryPointArn(RecoveryPointArnT &&value)
RecoveryPointByResource & WithStatusMessage(StatusMessageT &&value)
RecoveryPointByResource & WithAggregatedScanResult(AggregatedScanResultT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue