7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/fsx/FSx_EXPORTS.h>
11#include <aws/fsx/model/ActiveDirectoryBackupAttributes.h>
12#include <aws/fsx/model/BackupFailureDetails.h>
13#include <aws/fsx/model/BackupLifecycle.h>
14#include <aws/fsx/model/BackupType.h>
15#include <aws/fsx/model/FileSystem.h>
16#include <aws/fsx/model/ResourceType.h>
17#include <aws/fsx/model/Tag.h>
18#include <aws/fsx/model/Volume.h>
52 template <
typename BackupIdT = Aws::String>
54 m_backupIdHasBeenSet =
true;
55 m_backupId = std::forward<BackupIdT>(value);
57 template <
typename BackupIdT = Aws::String>
80 m_lifecycleHasBeenSet =
true;
95 template <
typename FailureDetailsT = BackupFailureDetails>
97 m_failureDetailsHasBeenSet =
true;
98 m_failureDetails = std::forward<FailureDetailsT>(value);
100 template <
typename FailureDetailsT = BackupFailureDetails>
114 m_typeHasBeenSet =
true;
128 m_progressPercentHasBeenSet =
true;
129 m_progressPercent = value;
143 template <
typename CreationTimeT = Aws::Utils::DateTime>
145 m_creationTimeHasBeenSet =
true;
146 m_creationTime = std::forward<CreationTimeT>(value);
148 template <
typename CreationTimeT = Aws::Utils::DateTime>
162 template <
typename KmsKeyIdT = Aws::String>
164 m_kmsKeyIdHasBeenSet =
true;
165 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
167 template <
typename KmsKeyIdT = Aws::String>
180 template <
typename ResourceARNT = Aws::String>
182 m_resourceARNHasBeenSet =
true;
183 m_resourceARN = std::forward<ResourceARNT>(value);
185 template <
typename ResourceARNT = Aws::String>
198 template <
typename TagsT = Aws::Vector<Tag>>
200 m_tagsHasBeenSet =
true;
201 m_tags = std::forward<TagsT>(value);
203 template <
typename TagsT = Aws::Vector<Tag>>
205 SetTags(std::forward<TagsT>(value));
208 template <
typename TagsT = Tag>
210 m_tagsHasBeenSet =
true;
211 m_tags.emplace_back(std::forward<TagsT>(value));
223 template <
typename FileSystemT = FileSystem>
225 m_fileSystemHasBeenSet =
true;
226 m_fileSystem = std::forward<FileSystemT>(value);
228 template <
typename FileSystemT = FileSystem>
242 template <
typename DirectoryInformationT = ActiveDirectoryBackupAttributes>
244 m_directoryInformationHasBeenSet =
true;
245 m_directoryInformation = std::forward<DirectoryInformationT>(value);
247 template <
typename DirectoryInformationT = ActiveDirectoryBackupAttributes>
258 template <
typename OwnerIdT = Aws::String>
260 m_ownerIdHasBeenSet =
true;
261 m_ownerId = std::forward<OwnerIdT>(value);
263 template <
typename OwnerIdT = Aws::String>
274 template <
typename SourceBackupIdT = Aws::String>
276 m_sourceBackupIdHasBeenSet =
true;
277 m_sourceBackupId = std::forward<SourceBackupIdT>(value);
279 template <
typename SourceBackupIdT = Aws::String>
293 template <
typename SourceBackupRegionT = Aws::String>
295 m_sourceBackupRegionHasBeenSet =
true;
296 m_sourceBackupRegion = std::forward<SourceBackupRegionT>(value);
298 template <
typename SourceBackupRegionT = Aws::String>
312 m_resourceTypeHasBeenSet =
true;
313 m_resourceType = value;
325 template <
typename VolumeT = Volume>
327 m_volumeHasBeenSet =
true;
328 m_volume = std::forward<VolumeT>(value);
330 template <
typename VolumeT = Volume>
345 m_sizeInBytesHasBeenSet =
true;
346 m_sizeInBytes = value;
358 BackupFailureDetails m_failureDetails;
362 int m_progressPercent{0};
372 FileSystem m_fileSystem;
374 ActiveDirectoryBackupAttributes m_directoryInformation;
386 long long m_sizeInBytes{0};
387 bool m_backupIdHasBeenSet =
false;
388 bool m_lifecycleHasBeenSet =
false;
389 bool m_failureDetailsHasBeenSet =
false;
390 bool m_typeHasBeenSet =
false;
391 bool m_progressPercentHasBeenSet =
false;
392 bool m_creationTimeHasBeenSet =
false;
393 bool m_kmsKeyIdHasBeenSet =
false;
394 bool m_resourceARNHasBeenSet =
false;
395 bool m_tagsHasBeenSet =
false;
396 bool m_fileSystemHasBeenSet =
false;
397 bool m_directoryInformationHasBeenSet =
false;
398 bool m_ownerIdHasBeenSet =
false;
399 bool m_sourceBackupIdHasBeenSet =
false;
400 bool m_sourceBackupRegionHasBeenSet =
false;
401 bool m_resourceTypeHasBeenSet =
false;
402 bool m_volumeHasBeenSet =
false;
403 bool m_sizeInBytesHasBeenSet =
false;
const Aws::String & GetOwnerId() const
Backup & AddTags(TagsT &&value)
Backup & WithSourceBackupRegion(SourceBackupRegionT &&value)
bool BackupIdHasBeenSet() const
void SetFileSystem(FileSystemT &&value)
Backup & WithResourceARN(ResourceARNT &&value)
Backup & WithType(BackupType value)
bool FileSystemHasBeenSet() const
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::String & GetBackupId() const
const Volume & GetVolume() const
bool ResourceARNHasBeenSet() const
const Aws::String & GetResourceARN() const
Backup & WithFileSystem(FileSystemT &&value)
Backup & WithResourceType(ResourceType value)
const BackupFailureDetails & GetFailureDetails() const
AWS_FSX_API Backup(Aws::Utils::Json::JsonView jsonValue)
Backup & WithVolume(VolumeT &&value)
ResourceType GetResourceType() const
const Aws::String & GetSourceBackupId() const
bool FailureDetailsHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
bool LifecycleHasBeenSet() const
void SetDirectoryInformation(DirectoryInformationT &&value)
void SetType(BackupType value)
void SetVolume(VolumeT &&value)
bool OwnerIdHasBeenSet() const
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
bool TypeHasBeenSet() const
void SetBackupId(BackupIdT &&value)
Backup & WithDirectoryInformation(DirectoryInformationT &&value)
bool VolumeHasBeenSet() const
AWS_FSX_API Backup()=default
Backup & WithSourceBackupId(SourceBackupIdT &&value)
Backup & WithFailureDetails(FailureDetailsT &&value)
Backup & WithKmsKeyId(KmsKeyIdT &&value)
bool ProgressPercentHasBeenSet() const
BackupType GetType() const
void SetSourceBackupRegion(SourceBackupRegionT &&value)
void SetFailureDetails(FailureDetailsT &&value)
bool ResourceTypeHasBeenSet() const
bool SourceBackupRegionHasBeenSet() const
Backup & WithBackupId(BackupIdT &&value)
const FileSystem & GetFileSystem() const
Backup & WithTags(TagsT &&value)
Backup & WithOwnerId(OwnerIdT &&value)
const Aws::String & GetSourceBackupRegion() const
Backup & WithLifecycle(BackupLifecycle value)
void SetSourceBackupId(SourceBackupIdT &&value)
bool DirectoryInformationHasBeenSet() const
void SetResourceType(ResourceType value)
bool SizeInBytesHasBeenSet() const
Backup & WithSizeInBytes(long long value)
void SetCreationTime(CreationTimeT &&value)
BackupLifecycle GetLifecycle() const
bool CreationTimeHasBeenSet() const
int GetProgressPercent() const
void SetKmsKeyId(KmsKeyIdT &&value)
Backup & WithCreationTime(CreationTimeT &&value)
const ActiveDirectoryBackupAttributes & GetDirectoryInformation() const
void SetSizeInBytes(long long value)
bool TagsHasBeenSet() const
const Aws::String & GetKmsKeyId() const
void SetTags(TagsT &&value)
long long GetSizeInBytes() const
bool SourceBackupIdHasBeenSet() const
void SetResourceARN(ResourceARNT &&value)
bool KmsKeyIdHasBeenSet() const
void SetProgressPercent(int value)
Backup & WithProgressPercent(int value)
void SetOwnerId(OwnerIdT &&value)
void SetLifecycle(BackupLifecycle value)
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