AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
IndexedRecoveryPoint.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/IndexStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Backup {
22namespace Model {
23
32 public:
33 AWS_BACKUP_API IndexedRecoveryPoint() = default;
36 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
45 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
46 template <typename RecoveryPointArnT = Aws::String>
47 void SetRecoveryPointArn(RecoveryPointArnT&& value) {
48 m_recoveryPointArnHasBeenSet = true;
49 m_recoveryPointArn = std::forward<RecoveryPointArnT>(value);
50 }
51 template <typename RecoveryPointArnT = Aws::String>
52 IndexedRecoveryPoint& WithRecoveryPointArn(RecoveryPointArnT&& value) {
53 SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetSourceResourceArn() const { return m_sourceResourceArn; }
64 inline bool SourceResourceArnHasBeenSet() const { return m_sourceResourceArnHasBeenSet; }
65 template <typename SourceResourceArnT = Aws::String>
66 void SetSourceResourceArn(SourceResourceArnT&& value) {
67 m_sourceResourceArnHasBeenSet = true;
68 m_sourceResourceArn = std::forward<SourceResourceArnT>(value);
69 }
70 template <typename SourceResourceArnT = Aws::String>
71 IndexedRecoveryPoint& WithSourceResourceArn(SourceResourceArnT&& value) {
72 SetSourceResourceArn(std::forward<SourceResourceArnT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
83 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
84 template <typename IamRoleArnT = Aws::String>
85 void SetIamRoleArn(IamRoleArnT&& value) {
86 m_iamRoleArnHasBeenSet = true;
87 m_iamRoleArn = std::forward<IamRoleArnT>(value);
88 }
89 template <typename IamRoleArnT = Aws::String>
90 IndexedRecoveryPoint& WithIamRoleArn(IamRoleArnT&& value) {
91 SetIamRoleArn(std::forward<IamRoleArnT>(value));
92 return *this;
93 }
95
97
103 inline const Aws::Utils::DateTime& GetBackupCreationDate() const { return m_backupCreationDate; }
104 inline bool BackupCreationDateHasBeenSet() const { return m_backupCreationDateHasBeenSet; }
105 template <typename BackupCreationDateT = Aws::Utils::DateTime>
106 void SetBackupCreationDate(BackupCreationDateT&& value) {
107 m_backupCreationDateHasBeenSet = true;
108 m_backupCreationDate = std::forward<BackupCreationDateT>(value);
109 }
110 template <typename BackupCreationDateT = Aws::Utils::DateTime>
111 IndexedRecoveryPoint& WithBackupCreationDate(BackupCreationDateT&& value) {
112 SetBackupCreationDate(std::forward<BackupCreationDateT>(value));
113 return *this;
114 }
116
118
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) {
127 m_resourceTypeHasBeenSet = true;
128 m_resourceType = std::forward<ResourceTypeT>(value);
129 }
130 template <typename ResourceTypeT = Aws::String>
131 IndexedRecoveryPoint& WithResourceType(ResourceTypeT&& value) {
132 SetResourceType(std::forward<ResourceTypeT>(value));
133 return *this;
134 }
136
138
144 inline const Aws::Utils::DateTime& GetIndexCreationDate() const { return m_indexCreationDate; }
145 inline bool IndexCreationDateHasBeenSet() const { return m_indexCreationDateHasBeenSet; }
146 template <typename IndexCreationDateT = Aws::Utils::DateTime>
147 void SetIndexCreationDate(IndexCreationDateT&& value) {
148 m_indexCreationDateHasBeenSet = true;
149 m_indexCreationDate = std::forward<IndexCreationDateT>(value);
150 }
151 template <typename IndexCreationDateT = Aws::Utils::DateTime>
152 IndexedRecoveryPoint& WithIndexCreationDate(IndexCreationDateT&& value) {
153 SetIndexCreationDate(std::forward<IndexCreationDateT>(value));
154 return *this;
155 }
157
159
166 inline IndexStatus GetIndexStatus() const { return m_indexStatus; }
167 inline bool IndexStatusHasBeenSet() const { return m_indexStatusHasBeenSet; }
168 inline void SetIndexStatus(IndexStatus value) {
169 m_indexStatusHasBeenSet = true;
170 m_indexStatus = value;
171 }
173 SetIndexStatus(value);
174 return *this;
175 }
177
179
183 inline const Aws::String& GetIndexStatusMessage() const { return m_indexStatusMessage; }
184 inline bool IndexStatusMessageHasBeenSet() const { return m_indexStatusMessageHasBeenSet; }
185 template <typename IndexStatusMessageT = Aws::String>
186 void SetIndexStatusMessage(IndexStatusMessageT&& value) {
187 m_indexStatusMessageHasBeenSet = true;
188 m_indexStatusMessage = std::forward<IndexStatusMessageT>(value);
189 }
190 template <typename IndexStatusMessageT = Aws::String>
191 IndexedRecoveryPoint& WithIndexStatusMessage(IndexStatusMessageT&& value) {
192 SetIndexStatusMessage(std::forward<IndexStatusMessageT>(value));
193 return *this;
194 }
196
198
203 inline const Aws::String& GetBackupVaultArn() const { return m_backupVaultArn; }
204 inline bool BackupVaultArnHasBeenSet() const { return m_backupVaultArnHasBeenSet; }
205 template <typename BackupVaultArnT = Aws::String>
206 void SetBackupVaultArn(BackupVaultArnT&& value) {
207 m_backupVaultArnHasBeenSet = true;
208 m_backupVaultArn = std::forward<BackupVaultArnT>(value);
209 }
210 template <typename BackupVaultArnT = Aws::String>
211 IndexedRecoveryPoint& WithBackupVaultArn(BackupVaultArnT&& value) {
212 SetBackupVaultArn(std::forward<BackupVaultArnT>(value));
213 return *this;
214 }
216 private:
217 Aws::String m_recoveryPointArn;
218
219 Aws::String m_sourceResourceArn;
220
221 Aws::String m_iamRoleArn;
222
223 Aws::Utils::DateTime m_backupCreationDate{};
224
225 Aws::String m_resourceType;
226
227 Aws::Utils::DateTime m_indexCreationDate{};
228
229 IndexStatus m_indexStatus{IndexStatus::NOT_SET};
230
231 Aws::String m_indexStatusMessage;
232
233 Aws::String m_backupVaultArn;
234 bool m_recoveryPointArnHasBeenSet = false;
235 bool m_sourceResourceArnHasBeenSet = false;
236 bool m_iamRoleArnHasBeenSet = false;
237 bool m_backupCreationDateHasBeenSet = false;
238 bool m_resourceTypeHasBeenSet = false;
239 bool m_indexCreationDateHasBeenSet = false;
240 bool m_indexStatusHasBeenSet = false;
241 bool m_indexStatusMessageHasBeenSet = false;
242 bool m_backupVaultArnHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace Backup
247} // namespace Aws
void SetBackupVaultArn(BackupVaultArnT &&value)
const Aws::String & GetSourceResourceArn() const
const Aws::String & GetIndexStatusMessage() const
void SetRecoveryPointArn(RecoveryPointArnT &&value)
AWS_BACKUP_API IndexedRecoveryPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSourceResourceArn(SourceResourceArnT &&value)
AWS_BACKUP_API IndexedRecoveryPoint(Aws::Utils::Json::JsonView jsonValue)
void SetIndexCreationDate(IndexCreationDateT &&value)
IndexedRecoveryPoint & WithIndexCreationDate(IndexCreationDateT &&value)
const Aws::String & GetRecoveryPointArn() const
void SetBackupCreationDate(BackupCreationDateT &&value)
IndexedRecoveryPoint & WithIndexStatus(IndexStatus value)
IndexedRecoveryPoint & WithResourceType(ResourceTypeT &&value)
IndexedRecoveryPoint & WithBackupCreationDate(BackupCreationDateT &&value)
IndexedRecoveryPoint & WithSourceResourceArn(SourceResourceArnT &&value)
void SetIndexStatusMessage(IndexStatusMessageT &&value)
AWS_BACKUP_API IndexedRecoveryPoint()=default
IndexedRecoveryPoint & WithBackupVaultArn(BackupVaultArnT &&value)
const Aws::Utils::DateTime & GetIndexCreationDate() const
IndexedRecoveryPoint & WithRecoveryPointArn(RecoveryPointArnT &&value)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetBackupCreationDate() const
IndexedRecoveryPoint & WithIndexStatusMessage(IndexStatusMessageT &&value)
IndexedRecoveryPoint & WithIamRoleArn(IamRoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue