AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RecoveryPointByResource.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/backup/model/RecoveryPointStatus.h>
11#include <aws/backup/model/VaultType.h>
12#include <aws/backup/model/IndexStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Backup
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_BACKUP_API RecoveryPointByResource() = default;
42 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
52 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
53 template<typename RecoveryPointArnT = Aws::String>
54 void SetRecoveryPointArn(RecoveryPointArnT&& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = std::forward<RecoveryPointArnT>(value); }
55 template<typename RecoveryPointArnT = Aws::String>
56 RecoveryPointByResource& WithRecoveryPointArn(RecoveryPointArnT&& value) { SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value)); return *this;}
58
60
66 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
67 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
68 template<typename CreationDateT = Aws::Utils::DateTime>
69 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
70 template<typename CreationDateT = Aws::Utils::DateTime>
71 RecoveryPointByResource& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
73
75
78 inline RecoveryPointStatus GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(RecoveryPointStatus value) { m_statusHasBeenSet = true; m_status = value; }
81 inline RecoveryPointByResource& WithStatus(RecoveryPointStatus value) { SetStatus(value); return *this;}
83
85
88 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
89 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
90 template<typename StatusMessageT = Aws::String>
91 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
92 template<typename StatusMessageT = Aws::String>
93 RecoveryPointByResource& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
95
97
102 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
103 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
104 template<typename EncryptionKeyArnT = Aws::String>
105 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
106 template<typename EncryptionKeyArnT = Aws::String>
107 RecoveryPointByResource& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
109
111
114 inline long long GetBackupSizeBytes() const { return m_backupSizeBytes; }
115 inline bool BackupSizeBytesHasBeenSet() const { return m_backupSizeBytesHasBeenSet; }
116 inline void SetBackupSizeBytes(long long value) { m_backupSizeBytesHasBeenSet = true; m_backupSizeBytes = value; }
117 inline RecoveryPointByResource& WithBackupSizeBytes(long long value) { SetBackupSizeBytes(value); return *this;}
119
121
126 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
127 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
128 template<typename BackupVaultNameT = Aws::String>
129 void SetBackupVaultName(BackupVaultNameT&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::forward<BackupVaultNameT>(value); }
130 template<typename BackupVaultNameT = Aws::String>
131 RecoveryPointByResource& WithBackupVaultName(BackupVaultNameT&& value) { SetBackupVaultName(std::forward<BackupVaultNameT>(value)); return *this;}
133
135
139 inline bool GetIsParent() const { return m_isParent; }
140 inline bool IsParentHasBeenSet() const { return m_isParentHasBeenSet; }
141 inline void SetIsParent(bool value) { m_isParentHasBeenSet = true; m_isParent = value; }
142 inline RecoveryPointByResource& WithIsParent(bool value) { SetIsParent(value); return *this;}
144
146
149 inline const Aws::String& GetParentRecoveryPointArn() const { return m_parentRecoveryPointArn; }
150 inline bool ParentRecoveryPointArnHasBeenSet() const { return m_parentRecoveryPointArnHasBeenSet; }
151 template<typename ParentRecoveryPointArnT = Aws::String>
152 void SetParentRecoveryPointArn(ParentRecoveryPointArnT&& value) { m_parentRecoveryPointArnHasBeenSet = true; m_parentRecoveryPointArn = std::forward<ParentRecoveryPointArnT>(value); }
153 template<typename ParentRecoveryPointArnT = Aws::String>
154 RecoveryPointByResource& WithParentRecoveryPointArn(ParentRecoveryPointArnT&& value) { SetParentRecoveryPointArn(std::forward<ParentRecoveryPointArnT>(value)); return *this;}
156
158
161 inline const Aws::String& GetResourceName() const { return m_resourceName; }
162 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
163 template<typename ResourceNameT = Aws::String>
164 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
165 template<typename ResourceNameT = Aws::String>
166 RecoveryPointByResource& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
168
170
173 inline VaultType GetVaultType() const { return m_vaultType; }
174 inline bool VaultTypeHasBeenSet() const { return m_vaultTypeHasBeenSet; }
175 inline void SetVaultType(VaultType value) { m_vaultTypeHasBeenSet = true; m_vaultType = value; }
176 inline RecoveryPointByResource& WithVaultType(VaultType value) { SetVaultType(value); return *this;}
178
180
187 inline IndexStatus GetIndexStatus() const { return m_indexStatus; }
188 inline bool IndexStatusHasBeenSet() const { return m_indexStatusHasBeenSet; }
189 inline void SetIndexStatus(IndexStatus value) { m_indexStatusHasBeenSet = true; m_indexStatus = value; }
192
194
198 inline const Aws::String& GetIndexStatusMessage() const { return m_indexStatusMessage; }
199 inline bool IndexStatusMessageHasBeenSet() const { return m_indexStatusMessageHasBeenSet; }
200 template<typename IndexStatusMessageT = Aws::String>
201 void SetIndexStatusMessage(IndexStatusMessageT&& value) { m_indexStatusMessageHasBeenSet = true; m_indexStatusMessage = std::forward<IndexStatusMessageT>(value); }
202 template<typename IndexStatusMessageT = Aws::String>
203 RecoveryPointByResource& WithIndexStatusMessage(IndexStatusMessageT&& value) { SetIndexStatusMessage(std::forward<IndexStatusMessageT>(value)); return *this;}
205 private:
206
207 Aws::String m_recoveryPointArn;
208 bool m_recoveryPointArnHasBeenSet = false;
209
210 Aws::Utils::DateTime m_creationDate{};
211 bool m_creationDateHasBeenSet = false;
212
214 bool m_statusHasBeenSet = false;
215
216 Aws::String m_statusMessage;
217 bool m_statusMessageHasBeenSet = false;
218
219 Aws::String m_encryptionKeyArn;
220 bool m_encryptionKeyArnHasBeenSet = false;
221
222 long long m_backupSizeBytes{0};
223 bool m_backupSizeBytesHasBeenSet = false;
224
225 Aws::String m_backupVaultName;
226 bool m_backupVaultNameHasBeenSet = false;
227
228 bool m_isParent{false};
229 bool m_isParentHasBeenSet = false;
230
231 Aws::String m_parentRecoveryPointArn;
232 bool m_parentRecoveryPointArnHasBeenSet = false;
233
234 Aws::String m_resourceName;
235 bool m_resourceNameHasBeenSet = false;
236
237 VaultType m_vaultType{VaultType::NOT_SET};
238 bool m_vaultTypeHasBeenSet = false;
239
240 IndexStatus m_indexStatus{IndexStatus::NOT_SET};
241 bool m_indexStatusHasBeenSet = false;
242
243 Aws::String m_indexStatusMessage;
244 bool m_indexStatusMessageHasBeenSet = false;
245 };
246
247} // namespace Model
248} // namespace Backup
249} // 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)
RecoveryPointByResource & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
AWS_BACKUP_API RecoveryPointByResource()=default
void SetParentRecoveryPointArn(ParentRecoveryPointArnT &&value)
RecoveryPointByResource & WithBackupSizeBytes(long long value)
RecoveryPointByResource & WithVaultType(VaultType value)
void SetRecoveryPointArn(RecoveryPointArnT &&value)
RecoveryPointByResource & WithStatusMessage(StatusMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue