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>
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>
89 template<
typename FailureDetailsT = BackupFailureDetails>
90 void SetFailureDetails(FailureDetailsT&& value) { m_failureDetailsHasBeenSet =
true; m_failureDetails = std::forward<FailureDetailsT>(value); }
91 template<
typename FailureDetailsT = BackupFailureDetails>
109 inline void SetProgressPercent(
int value) { m_progressPercentHasBeenSet =
true; m_progressPercent = value; }
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>
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>
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>
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>>
160 template<
typename TagsT = Tag>
161 Backup&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
171 template<
typename FileSystemT = FileSystem>
172 void SetFileSystem(FileSystemT&& value) { m_fileSystemHasBeenSet =
true; m_fileSystem = std::forward<FileSystemT>(value); }
173 template<
typename FileSystemT = FileSystem>
184 template<
typename DirectoryInformationT = ActiveDirectoryBackupAttributes>
185 void SetDirectoryInformation(DirectoryInformationT&& value) { m_directoryInformationHasBeenSet =
true; m_directoryInformation = std::forward<DirectoryInformationT>(value); }
186 template<
typename DirectoryInformationT = ActiveDirectoryBackupAttributes>
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>
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>
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>
237 template<
typename VolumeT = Volume>
238 void SetVolume(VolumeT&& value) { m_volumeHasBeenSet =
true; m_volume = std::forward<VolumeT>(value); }
239 template<
typename VolumeT = Volume>
250 inline void SetSizeInBytes(
long long value) { m_sizeInBytesHasBeenSet =
true; m_sizeInBytes = value; }
256 bool m_backupIdHasBeenSet =
false;
259 bool m_lifecycleHasBeenSet =
false;
261 BackupFailureDetails m_failureDetails;
262 bool m_failureDetailsHasBeenSet =
false;
265 bool m_typeHasBeenSet =
false;
267 int m_progressPercent{0};
268 bool m_progressPercentHasBeenSet =
false;
271 bool m_creationTimeHasBeenSet =
false;
274 bool m_kmsKeyIdHasBeenSet =
false;
277 bool m_resourceARNHasBeenSet =
false;
280 bool m_tagsHasBeenSet =
false;
282 FileSystem m_fileSystem;
283 bool m_fileSystemHasBeenSet =
false;
285 ActiveDirectoryBackupAttributes m_directoryInformation;
286 bool m_directoryInformationHasBeenSet =
false;
289 bool m_ownerIdHasBeenSet =
false;
292 bool m_sourceBackupIdHasBeenSet =
false;
295 bool m_sourceBackupRegionHasBeenSet =
false;
298 bool m_resourceTypeHasBeenSet =
false;
301 bool m_volumeHasBeenSet =
false;
303 long long m_sizeInBytes{0};
304 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