AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Backup.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fsx/model/BackupLifecycle.h>
10#include <aws/fsx/model/BackupFailureDetails.h>
11#include <aws/fsx/model/BackupType.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/fsx/model/FileSystem.h>
15#include <aws/fsx/model/ActiveDirectoryBackupAttributes.h>
16#include <aws/fsx/model/ResourceType.h>
17#include <aws/fsx/model/Volume.h>
18#include <aws/fsx/model/Tag.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace FSx
32{
33namespace Model
34{
35
43 class Backup
44 {
45 public:
46 AWS_FSX_API Backup();
47 AWS_FSX_API Backup(Aws::Utils::Json::JsonView jsonValue);
50
51
53
56 inline const Aws::String& GetBackupId() const{ return m_backupId; }
57 inline bool BackupIdHasBeenSet() const { return m_backupIdHasBeenSet; }
58 inline void SetBackupId(const Aws::String& value) { m_backupIdHasBeenSet = true; m_backupId = value; }
59 inline void SetBackupId(Aws::String&& value) { m_backupIdHasBeenSet = true; m_backupId = std::move(value); }
60 inline void SetBackupId(const char* value) { m_backupIdHasBeenSet = true; m_backupId.assign(value); }
61 inline Backup& WithBackupId(const Aws::String& value) { SetBackupId(value); return *this;}
62 inline Backup& WithBackupId(Aws::String&& value) { SetBackupId(std::move(value)); return *this;}
63 inline Backup& WithBackupId(const char* value) { SetBackupId(value); return *this;}
65
67
79 inline const BackupLifecycle& GetLifecycle() const{ return m_lifecycle; }
80 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
81 inline void SetLifecycle(const BackupLifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
82 inline void SetLifecycle(BackupLifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
83 inline Backup& WithLifecycle(const BackupLifecycle& value) { SetLifecycle(value); return *this;}
84 inline Backup& WithLifecycle(BackupLifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
86
88
91 inline const BackupFailureDetails& GetFailureDetails() const{ return m_failureDetails; }
92 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
93 inline void SetFailureDetails(const BackupFailureDetails& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = value; }
94 inline void SetFailureDetails(BackupFailureDetails&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::move(value); }
95 inline Backup& WithFailureDetails(const BackupFailureDetails& value) { SetFailureDetails(value); return *this;}
96 inline Backup& WithFailureDetails(BackupFailureDetails&& value) { SetFailureDetails(std::move(value)); return *this;}
98
100
103 inline const BackupType& GetType() const{ return m_type; }
104 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
105 inline void SetType(const BackupType& value) { m_typeHasBeenSet = true; m_type = value; }
106 inline void SetType(BackupType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
107 inline Backup& WithType(const BackupType& value) { SetType(value); return *this;}
108 inline Backup& WithType(BackupType&& value) { SetType(std::move(value)); return *this;}
110
112
113 inline int GetProgressPercent() const{ return m_progressPercent; }
114 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
115 inline void SetProgressPercent(int value) { m_progressPercentHasBeenSet = true; m_progressPercent = value; }
116 inline Backup& WithProgressPercent(int value) { SetProgressPercent(value); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
124 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
125 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
126 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
127 inline Backup& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
128 inline Backup& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
130
132
136 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
137 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
138 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
139 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
140 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
141 inline Backup& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
142 inline Backup& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
143 inline Backup& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
145
147
150 inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
151 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
152 inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
153 inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
154 inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
155 inline Backup& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
156 inline Backup& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
157 inline Backup& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
159
161
164 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
165 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
166 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
167 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
168 inline Backup& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
169 inline Backup& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
170 inline Backup& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
171 inline Backup& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
173
175
179 inline const FileSystem& GetFileSystem() const{ return m_fileSystem; }
180 inline bool FileSystemHasBeenSet() const { return m_fileSystemHasBeenSet; }
181 inline void SetFileSystem(const FileSystem& value) { m_fileSystemHasBeenSet = true; m_fileSystem = value; }
182 inline void SetFileSystem(FileSystem&& value) { m_fileSystemHasBeenSet = true; m_fileSystem = std::move(value); }
183 inline Backup& WithFileSystem(const FileSystem& value) { SetFileSystem(value); return *this;}
184 inline Backup& WithFileSystem(FileSystem&& value) { SetFileSystem(std::move(value)); return *this;}
186
188
192 inline const ActiveDirectoryBackupAttributes& GetDirectoryInformation() const{ return m_directoryInformation; }
193 inline bool DirectoryInformationHasBeenSet() const { return m_directoryInformationHasBeenSet; }
194 inline void SetDirectoryInformation(const ActiveDirectoryBackupAttributes& value) { m_directoryInformationHasBeenSet = true; m_directoryInformation = value; }
195 inline void SetDirectoryInformation(ActiveDirectoryBackupAttributes&& value) { m_directoryInformationHasBeenSet = true; m_directoryInformation = std::move(value); }
199
201
202 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
203 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
204 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
205 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
206 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
207 inline Backup& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
208 inline Backup& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
209 inline Backup& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
211
213
214 inline const Aws::String& GetSourceBackupId() const{ return m_sourceBackupId; }
215 inline bool SourceBackupIdHasBeenSet() const { return m_sourceBackupIdHasBeenSet; }
216 inline void SetSourceBackupId(const Aws::String& value) { m_sourceBackupIdHasBeenSet = true; m_sourceBackupId = value; }
217 inline void SetSourceBackupId(Aws::String&& value) { m_sourceBackupIdHasBeenSet = true; m_sourceBackupId = std::move(value); }
218 inline void SetSourceBackupId(const char* value) { m_sourceBackupIdHasBeenSet = true; m_sourceBackupId.assign(value); }
219 inline Backup& WithSourceBackupId(const Aws::String& value) { SetSourceBackupId(value); return *this;}
220 inline Backup& WithSourceBackupId(Aws::String&& value) { SetSourceBackupId(std::move(value)); return *this;}
221 inline Backup& WithSourceBackupId(const char* value) { SetSourceBackupId(value); return *this;}
223
225
229 inline const Aws::String& GetSourceBackupRegion() const{ return m_sourceBackupRegion; }
230 inline bool SourceBackupRegionHasBeenSet() const { return m_sourceBackupRegionHasBeenSet; }
231 inline void SetSourceBackupRegion(const Aws::String& value) { m_sourceBackupRegionHasBeenSet = true; m_sourceBackupRegion = value; }
232 inline void SetSourceBackupRegion(Aws::String&& value) { m_sourceBackupRegionHasBeenSet = true; m_sourceBackupRegion = std::move(value); }
233 inline void SetSourceBackupRegion(const char* value) { m_sourceBackupRegionHasBeenSet = true; m_sourceBackupRegion.assign(value); }
234 inline Backup& WithSourceBackupRegion(const Aws::String& value) { SetSourceBackupRegion(value); return *this;}
235 inline Backup& WithSourceBackupRegion(Aws::String&& value) { SetSourceBackupRegion(std::move(value)); return *this;}
236 inline Backup& WithSourceBackupRegion(const char* value) { SetSourceBackupRegion(value); return *this;}
238
240
243 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
244 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
245 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
246 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
247 inline Backup& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
248 inline Backup& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
250
252
253 inline const Volume& GetVolume() const{ return m_volume; }
254 inline bool VolumeHasBeenSet() const { return m_volumeHasBeenSet; }
255 inline void SetVolume(const Volume& value) { m_volumeHasBeenSet = true; m_volume = value; }
256 inline void SetVolume(Volume&& value) { m_volumeHasBeenSet = true; m_volume = std::move(value); }
257 inline Backup& WithVolume(const Volume& value) { SetVolume(value); return *this;}
258 inline Backup& WithVolume(Volume&& value) { SetVolume(std::move(value)); return *this;}
260 private:
261
262 Aws::String m_backupId;
263 bool m_backupIdHasBeenSet = false;
264
265 BackupLifecycle m_lifecycle;
266 bool m_lifecycleHasBeenSet = false;
267
268 BackupFailureDetails m_failureDetails;
269 bool m_failureDetailsHasBeenSet = false;
270
271 BackupType m_type;
272 bool m_typeHasBeenSet = false;
273
274 int m_progressPercent;
275 bool m_progressPercentHasBeenSet = false;
276
277 Aws::Utils::DateTime m_creationTime;
278 bool m_creationTimeHasBeenSet = false;
279
280 Aws::String m_kmsKeyId;
281 bool m_kmsKeyIdHasBeenSet = false;
282
283 Aws::String m_resourceARN;
284 bool m_resourceARNHasBeenSet = false;
285
286 Aws::Vector<Tag> m_tags;
287 bool m_tagsHasBeenSet = false;
288
289 FileSystem m_fileSystem;
290 bool m_fileSystemHasBeenSet = false;
291
292 ActiveDirectoryBackupAttributes m_directoryInformation;
293 bool m_directoryInformationHasBeenSet = false;
294
295 Aws::String m_ownerId;
296 bool m_ownerIdHasBeenSet = false;
297
298 Aws::String m_sourceBackupId;
299 bool m_sourceBackupIdHasBeenSet = false;
300
301 Aws::String m_sourceBackupRegion;
302 bool m_sourceBackupRegionHasBeenSet = false;
303
304 ResourceType m_resourceType;
305 bool m_resourceTypeHasBeenSet = false;
306
307 Volume m_volume;
308 bool m_volumeHasBeenSet = false;
309 };
310
311} // namespace Model
312} // namespace FSx
313} // namespace Aws
void SetBackupId(Aws::String &&value)
Definition Backup.h:59
void SetFileSystem(const FileSystem &value)
Definition Backup.h:181
const Aws::String & GetOwnerId() const
Definition Backup.h:202
Backup & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Backup.h:127
void SetResourceType(ResourceType &&value)
Definition Backup.h:246
bool BackupIdHasBeenSet() const
Definition Backup.h:57
Backup & WithFileSystem(FileSystem &&value)
Definition Backup.h:184
void SetLifecycle(const BackupLifecycle &value)
Definition Backup.h:81
void SetType(BackupType &&value)
Definition Backup.h:106
void SetFailureDetails(const BackupFailureDetails &value)
Definition Backup.h:93
Backup & WithOwnerId(Aws::String &&value)
Definition Backup.h:208
void SetKmsKeyId(Aws::String &&value)
Definition Backup.h:139
bool FileSystemHasBeenSet() const
Definition Backup.h:180
Backup & WithSourceBackupRegion(const char *value)
Definition Backup.h:236
Backup & WithKmsKeyId(const char *value)
Definition Backup.h:143
Backup & WithSourceBackupRegion(const Aws::String &value)
Definition Backup.h:234
void SetDirectoryInformation(ActiveDirectoryBackupAttributes &&value)
Definition Backup.h:195
void SetOwnerId(const char *value)
Definition Backup.h:206
const Aws::Utils::DateTime & GetCreationTime() const
Definition Backup.h:123
const Aws::String & GetBackupId() const
Definition Backup.h:56
const Volume & GetVolume() const
Definition Backup.h:253
bool ResourceARNHasBeenSet() const
Definition Backup.h:151
const Aws::String & GetResourceARN() const
Definition Backup.h:150
Backup & WithBackupId(const Aws::String &value)
Definition Backup.h:61
void SetResourceType(const ResourceType &value)
Definition Backup.h:245
const BackupFailureDetails & GetFailureDetails() const
Definition Backup.h:91
AWS_FSX_API Backup(Aws::Utils::Json::JsonView jsonValue)
void SetTags(const Aws::Vector< Tag > &value)
Definition Backup.h:166
Backup & WithVolume(Volume &&value)
Definition Backup.h:258
void SetKmsKeyId(const Aws::String &value)
Definition Backup.h:138
const Aws::String & GetSourceBackupId() const
Definition Backup.h:214
bool FailureDetailsHasBeenSet() const
Definition Backup.h:92
const Aws::Vector< Tag > & GetTags() const
Definition Backup.h:164
bool LifecycleHasBeenSet() const
Definition Backup.h:80
void SetSourceBackupRegion(const char *value)
Definition Backup.h:233
bool OwnerIdHasBeenSet() const
Definition Backup.h:203
Backup & WithType(const BackupType &value)
Definition Backup.h:107
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
bool TypeHasBeenSet() const
Definition Backup.h:104
Backup & WithResourceARN(const char *value)
Definition Backup.h:157
const BackupLifecycle & GetLifecycle() const
Definition Backup.h:79
Backup & WithResourceARN(const Aws::String &value)
Definition Backup.h:155
Backup & WithBackupId(Aws::String &&value)
Definition Backup.h:62
bool VolumeHasBeenSet() const
Definition Backup.h:254
Backup & AddTags(const Tag &value)
Definition Backup.h:170
void SetResourceARN(const char *value)
Definition Backup.h:154
Backup & WithBackupId(const char *value)
Definition Backup.h:63
Backup & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Backup.h:128
void SetVolume(Volume &&value)
Definition Backup.h:256
Backup & WithTags(const Aws::Vector< Tag > &value)
Definition Backup.h:168
bool ProgressPercentHasBeenSet() const
Definition Backup.h:114
void SetType(const BackupType &value)
Definition Backup.h:105
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Backup.h:125
void SetSourceBackupRegion(const Aws::String &value)
Definition Backup.h:231
Backup & WithLifecycle(const BackupLifecycle &value)
Definition Backup.h:83
void SetSourceBackupRegion(Aws::String &&value)
Definition Backup.h:232
Backup & WithResourceType(const ResourceType &value)
Definition Backup.h:247
void SetTags(Aws::Vector< Tag > &&value)
Definition Backup.h:167
Backup & WithOwnerId(const char *value)
Definition Backup.h:209
void SetOwnerId(const Aws::String &value)
Definition Backup.h:204
Backup & WithKmsKeyId(Aws::String &&value)
Definition Backup.h:142
bool ResourceTypeHasBeenSet() const
Definition Backup.h:244
Backup & WithFailureDetails(BackupFailureDetails &&value)
Definition Backup.h:96
bool SourceBackupRegionHasBeenSet() const
Definition Backup.h:230
void SetDirectoryInformation(const ActiveDirectoryBackupAttributes &value)
Definition Backup.h:194
void SetResourceARN(Aws::String &&value)
Definition Backup.h:153
const FileSystem & GetFileSystem() const
Definition Backup.h:179
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Backup.h:126
Backup & WithType(BackupType &&value)
Definition Backup.h:108
const Aws::String & GetSourceBackupRegion() const
Definition Backup.h:229
bool DirectoryInformationHasBeenSet() const
Definition Backup.h:193
Backup & WithSourceBackupId(Aws::String &&value)
Definition Backup.h:220
Backup & WithKmsKeyId(const Aws::String &value)
Definition Backup.h:141
void SetSourceBackupId(Aws::String &&value)
Definition Backup.h:217
Backup & AddTags(Tag &&value)
Definition Backup.h:171
Backup & WithFailureDetails(const BackupFailureDetails &value)
Definition Backup.h:95
void SetKmsKeyId(const char *value)
Definition Backup.h:140
Backup & WithLifecycle(BackupLifecycle &&value)
Definition Backup.h:84
Backup & WithDirectoryInformation(const ActiveDirectoryBackupAttributes &value)
Definition Backup.h:196
void SetFileSystem(FileSystem &&value)
Definition Backup.h:182
Backup & WithTags(Aws::Vector< Tag > &&value)
Definition Backup.h:169
bool CreationTimeHasBeenSet() const
Definition Backup.h:124
int GetProgressPercent() const
Definition Backup.h:113
void SetResourceARN(const Aws::String &value)
Definition Backup.h:152
Backup & WithResourceType(ResourceType &&value)
Definition Backup.h:248
const ActiveDirectoryBackupAttributes & GetDirectoryInformation() const
Definition Backup.h:192
Backup & WithOwnerId(const Aws::String &value)
Definition Backup.h:207
void SetSourceBackupId(const Aws::String &value)
Definition Backup.h:216
bool TagsHasBeenSet() const
Definition Backup.h:165
void SetVolume(const Volume &value)
Definition Backup.h:255
void SetBackupId(const char *value)
Definition Backup.h:60
Backup & WithFileSystem(const FileSystem &value)
Definition Backup.h:183
void SetLifecycle(BackupLifecycle &&value)
Definition Backup.h:82
Backup & WithDirectoryInformation(ActiveDirectoryBackupAttributes &&value)
Definition Backup.h:197
Backup & WithSourceBackupId(const Aws::String &value)
Definition Backup.h:219
const Aws::String & GetKmsKeyId() const
Definition Backup.h:136
void SetOwnerId(Aws::String &&value)
Definition Backup.h:205
bool SourceBackupIdHasBeenSet() const
Definition Backup.h:215
const ResourceType & GetResourceType() const
Definition Backup.h:243
Backup & WithSourceBackupRegion(Aws::String &&value)
Definition Backup.h:235
Backup & WithSourceBackupId(const char *value)
Definition Backup.h:221
void SetFailureDetails(BackupFailureDetails &&value)
Definition Backup.h:94
const BackupType & GetType() const
Definition Backup.h:103
bool KmsKeyIdHasBeenSet() const
Definition Backup.h:137
void SetProgressPercent(int value)
Definition Backup.h:115
Backup & WithProgressPercent(int value)
Definition Backup.h:116
void SetBackupId(const Aws::String &value)
Definition Backup.h:58
void SetSourceBackupId(const char *value)
Definition Backup.h:218
Backup & WithResourceARN(Aws::String &&value)
Definition Backup.h:156
AWS_FSX_API Backup & operator=(Aws::Utils::Json::JsonView jsonValue)
Backup & WithVolume(const Volume &value)
Definition Backup.h:257
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue