AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename BackupIdT = Aws::String>
59 void SetBackupId(BackupIdT&& value) { m_backupIdHasBeenSet = true; m_backupId = std::forward<BackupIdT>(value); }
60 template<typename BackupIdT = Aws::String>
61 Backup& WithBackupId(BackupIdT&& value) { SetBackupId(std::forward<BackupIdT>(value)); return *this;}
63
65
77 inline BackupLifecycle GetLifecycle() const { return m_lifecycle; }
78 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
79 inline void SetLifecycle(BackupLifecycle value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
80 inline Backup& WithLifecycle(BackupLifecycle value) { SetLifecycle(value); return *this;}
82
84
87 inline const BackupFailureDetails& GetFailureDetails() const { return m_failureDetails; }
88 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
89 template<typename FailureDetailsT = BackupFailureDetails>
90 void SetFailureDetails(FailureDetailsT&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::forward<FailureDetailsT>(value); }
91 template<typename FailureDetailsT = BackupFailureDetails>
92 Backup& WithFailureDetails(FailureDetailsT&& value) { SetFailureDetails(std::forward<FailureDetailsT>(value)); return *this;}
94
96
99 inline BackupType GetType() const { return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 inline void SetType(BackupType value) { m_typeHasBeenSet = true; m_type = value; }
102 inline Backup& WithType(BackupType value) { SetType(value); return *this;}
104
106
107 inline int GetProgressPercent() const { return m_progressPercent; }
108 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
109 inline void SetProgressPercent(int value) { m_progressPercentHasBeenSet = true; m_progressPercent = value; }
110 inline Backup& WithProgressPercent(int value) { SetProgressPercent(value); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
118 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
119 template<typename CreationTimeT = Aws::Utils::DateTime>
120 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
121 template<typename CreationTimeT = Aws::Utils::DateTime>
122 Backup& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
124
126
130 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
131 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
132 template<typename KmsKeyIdT = Aws::String>
133 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
134 template<typename KmsKeyIdT = Aws::String>
135 Backup& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
137
139
142 inline const Aws::String& GetResourceARN() const { return m_resourceARN; }
143 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
144 template<typename ResourceARNT = Aws::String>
145 void SetResourceARN(ResourceARNT&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::forward<ResourceARNT>(value); }
146 template<typename ResourceARNT = Aws::String>
147 Backup& WithResourceARN(ResourceARNT&& value) { SetResourceARN(std::forward<ResourceARNT>(value)); return *this;}
149
151
154 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 template<typename TagsT = Aws::Vector<Tag>>
157 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
158 template<typename TagsT = Aws::Vector<Tag>>
159 Backup& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
160 template<typename TagsT = Tag>
161 Backup& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
163
165
169 inline const FileSystem& GetFileSystem() const { return m_fileSystem; }
170 inline bool FileSystemHasBeenSet() const { return m_fileSystemHasBeenSet; }
171 template<typename FileSystemT = FileSystem>
172 void SetFileSystem(FileSystemT&& value) { m_fileSystemHasBeenSet = true; m_fileSystem = std::forward<FileSystemT>(value); }
173 template<typename FileSystemT = FileSystem>
174 Backup& WithFileSystem(FileSystemT&& value) { SetFileSystem(std::forward<FileSystemT>(value)); return *this;}
176
178
182 inline const ActiveDirectoryBackupAttributes& GetDirectoryInformation() const { return m_directoryInformation; }
183 inline bool DirectoryInformationHasBeenSet() const { return m_directoryInformationHasBeenSet; }
184 template<typename DirectoryInformationT = ActiveDirectoryBackupAttributes>
185 void SetDirectoryInformation(DirectoryInformationT&& value) { m_directoryInformationHasBeenSet = true; m_directoryInformation = std::forward<DirectoryInformationT>(value); }
186 template<typename DirectoryInformationT = ActiveDirectoryBackupAttributes>
187 Backup& WithDirectoryInformation(DirectoryInformationT&& value) { SetDirectoryInformation(std::forward<DirectoryInformationT>(value)); return *this;}
189
191
192 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
193 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
194 template<typename OwnerIdT = Aws::String>
195 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
196 template<typename OwnerIdT = Aws::String>
197 Backup& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
199
201
202 inline const Aws::String& GetSourceBackupId() const { return m_sourceBackupId; }
203 inline bool SourceBackupIdHasBeenSet() const { return m_sourceBackupIdHasBeenSet; }
204 template<typename SourceBackupIdT = Aws::String>
205 void SetSourceBackupId(SourceBackupIdT&& value) { m_sourceBackupIdHasBeenSet = true; m_sourceBackupId = std::forward<SourceBackupIdT>(value); }
206 template<typename SourceBackupIdT = Aws::String>
207 Backup& WithSourceBackupId(SourceBackupIdT&& value) { SetSourceBackupId(std::forward<SourceBackupIdT>(value)); return *this;}
209
211
215 inline const Aws::String& GetSourceBackupRegion() const { return m_sourceBackupRegion; }
216 inline bool SourceBackupRegionHasBeenSet() const { return m_sourceBackupRegionHasBeenSet; }
217 template<typename SourceBackupRegionT = Aws::String>
218 void SetSourceBackupRegion(SourceBackupRegionT&& value) { m_sourceBackupRegionHasBeenSet = true; m_sourceBackupRegion = std::forward<SourceBackupRegionT>(value); }
219 template<typename SourceBackupRegionT = Aws::String>
220 Backup& WithSourceBackupRegion(SourceBackupRegionT&& value) { SetSourceBackupRegion(std::forward<SourceBackupRegionT>(value)); return *this;}
222
224
227 inline ResourceType GetResourceType() const { return m_resourceType; }
228 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
229 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
230 inline Backup& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
232
234
235 inline const Volume& GetVolume() const { return m_volume; }
236 inline bool VolumeHasBeenSet() const { return m_volumeHasBeenSet; }
237 template<typename VolumeT = Volume>
238 void SetVolume(VolumeT&& value) { m_volumeHasBeenSet = true; m_volume = std::forward<VolumeT>(value); }
239 template<typename VolumeT = Volume>
240 Backup& WithVolume(VolumeT&& value) { SetVolume(std::forward<VolumeT>(value)); return *this;}
242
244
248 inline long long GetSizeInBytes() const { return m_sizeInBytes; }
249 inline bool SizeInBytesHasBeenSet() const { return m_sizeInBytesHasBeenSet; }
250 inline void SetSizeInBytes(long long value) { m_sizeInBytesHasBeenSet = true; m_sizeInBytes = value; }
251 inline Backup& WithSizeInBytes(long long value) { SetSizeInBytes(value); return *this;}
253 private:
254
255 Aws::String m_backupId;
256 bool m_backupIdHasBeenSet = false;
257
259 bool m_lifecycleHasBeenSet = false;
260
261 BackupFailureDetails m_failureDetails;
262 bool m_failureDetailsHasBeenSet = false;
263
265 bool m_typeHasBeenSet = false;
266
267 int m_progressPercent{0};
268 bool m_progressPercentHasBeenSet = false;
269
270 Aws::Utils::DateTime m_creationTime{};
271 bool m_creationTimeHasBeenSet = false;
272
273 Aws::String m_kmsKeyId;
274 bool m_kmsKeyIdHasBeenSet = false;
275
276 Aws::String m_resourceARN;
277 bool m_resourceARNHasBeenSet = false;
278
279 Aws::Vector<Tag> m_tags;
280 bool m_tagsHasBeenSet = false;
281
282 FileSystem m_fileSystem;
283 bool m_fileSystemHasBeenSet = false;
284
285 ActiveDirectoryBackupAttributes m_directoryInformation;
286 bool m_directoryInformationHasBeenSet = false;
287
288 Aws::String m_ownerId;
289 bool m_ownerIdHasBeenSet = false;
290
291 Aws::String m_sourceBackupId;
292 bool m_sourceBackupIdHasBeenSet = false;
293
294 Aws::String m_sourceBackupRegion;
295 bool m_sourceBackupRegionHasBeenSet = false;
296
297 ResourceType m_resourceType{ResourceType::NOT_SET};
298 bool m_resourceTypeHasBeenSet = false;
299
300 Volume m_volume;
301 bool m_volumeHasBeenSet = false;
302
303 long long m_sizeInBytes{0};
304 bool m_sizeInBytesHasBeenSet = false;
305 };
306
307} // namespace Model
308} // namespace FSx
309} // namespace Aws
const Aws::String & GetOwnerId() const
Definition Backup.h:192
Backup & AddTags(TagsT &&value)
Definition Backup.h:161
Backup & WithSourceBackupRegion(SourceBackupRegionT &&value)
Definition Backup.h:220
bool BackupIdHasBeenSet() const
Definition Backup.h:57
void SetFileSystem(FileSystemT &&value)
Definition Backup.h:172
Backup & WithResourceARN(ResourceARNT &&value)
Definition Backup.h:147
Backup & WithType(BackupType value)
Definition Backup.h:102
bool FileSystemHasBeenSet() const
Definition Backup.h:170
const Aws::Utils::DateTime & GetCreationTime() const
Definition Backup.h:117
const Aws::String & GetBackupId() const
Definition Backup.h:56
const Volume & GetVolume() const
Definition Backup.h:235
bool ResourceARNHasBeenSet() const
Definition Backup.h:143
const Aws::String & GetResourceARN() const
Definition Backup.h:142
Backup & WithFileSystem(FileSystemT &&value)
Definition Backup.h:174
Backup & WithResourceType(ResourceType value)
Definition Backup.h:230
const BackupFailureDetails & GetFailureDetails() const
Definition Backup.h:87
AWS_FSX_API Backup(Aws::Utils::Json::JsonView jsonValue)
Backup & WithVolume(VolumeT &&value)
Definition Backup.h:240
ResourceType GetResourceType() const
Definition Backup.h:227
const Aws::String & GetSourceBackupId() const
Definition Backup.h:202
bool FailureDetailsHasBeenSet() const
Definition Backup.h:88
const Aws::Vector< Tag > & GetTags() const
Definition Backup.h:154
bool LifecycleHasBeenSet() const
Definition Backup.h:78
void SetDirectoryInformation(DirectoryInformationT &&value)
Definition Backup.h:185
void SetType(BackupType value)
Definition Backup.h:101
void SetVolume(VolumeT &&value)
Definition Backup.h:238
bool OwnerIdHasBeenSet() const
Definition Backup.h:193
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
bool TypeHasBeenSet() const
Definition Backup.h:100
void SetBackupId(BackupIdT &&value)
Definition Backup.h:59
Backup & WithDirectoryInformation(DirectoryInformationT &&value)
Definition Backup.h:187
bool VolumeHasBeenSet() const
Definition Backup.h:236
AWS_FSX_API Backup()=default
Backup & WithSourceBackupId(SourceBackupIdT &&value)
Definition Backup.h:207
Backup & WithFailureDetails(FailureDetailsT &&value)
Definition Backup.h:92
Backup & WithKmsKeyId(KmsKeyIdT &&value)
Definition Backup.h:135
bool ProgressPercentHasBeenSet() const
Definition Backup.h:108
BackupType GetType() const
Definition Backup.h:99
void SetSourceBackupRegion(SourceBackupRegionT &&value)
Definition Backup.h:218
void SetFailureDetails(FailureDetailsT &&value)
Definition Backup.h:90
bool ResourceTypeHasBeenSet() const
Definition Backup.h:228
bool SourceBackupRegionHasBeenSet() const
Definition Backup.h:216
Backup & WithBackupId(BackupIdT &&value)
Definition Backup.h:61
const FileSystem & GetFileSystem() const
Definition Backup.h:169
Backup & WithTags(TagsT &&value)
Definition Backup.h:159
Backup & WithOwnerId(OwnerIdT &&value)
Definition Backup.h:197
const Aws::String & GetSourceBackupRegion() const
Definition Backup.h:215
Backup & WithLifecycle(BackupLifecycle value)
Definition Backup.h:80
void SetSourceBackupId(SourceBackupIdT &&value)
Definition Backup.h:205
bool DirectoryInformationHasBeenSet() const
Definition Backup.h:183
void SetResourceType(ResourceType value)
Definition Backup.h:229
bool SizeInBytesHasBeenSet() const
Definition Backup.h:249
Backup & WithSizeInBytes(long long value)
Definition Backup.h:251
void SetCreationTime(CreationTimeT &&value)
Definition Backup.h:120
BackupLifecycle GetLifecycle() const
Definition Backup.h:77
bool CreationTimeHasBeenSet() const
Definition Backup.h:118
int GetProgressPercent() const
Definition Backup.h:107
void SetKmsKeyId(KmsKeyIdT &&value)
Definition Backup.h:133
Backup & WithCreationTime(CreationTimeT &&value)
Definition Backup.h:122
const ActiveDirectoryBackupAttributes & GetDirectoryInformation() const
Definition Backup.h:182
void SetSizeInBytes(long long value)
Definition Backup.h:250
bool TagsHasBeenSet() const
Definition Backup.h:155
const Aws::String & GetKmsKeyId() const
Definition Backup.h:130
void SetTags(TagsT &&value)
Definition Backup.h:157
long long GetSizeInBytes() const
Definition Backup.h:248
bool SourceBackupIdHasBeenSet() const
Definition Backup.h:203
void SetResourceARN(ResourceARNT &&value)
Definition Backup.h:145
bool KmsKeyIdHasBeenSet() const
Definition Backup.h:131
void SetProgressPercent(int value)
Definition Backup.h:109
Backup & WithProgressPercent(int value)
Definition Backup.h:110
void SetOwnerId(OwnerIdT &&value)
Definition Backup.h:195
void SetLifecycle(BackupLifecycle value)
Definition Backup.h:79
AWS_FSX_API Backup & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue