7#include <aws/cloudhsmv2/CloudHSMV2_EXPORTS.h>
8#include <aws/cloudhsmv2/model/BackupState.h>
9#include <aws/cloudhsmv2/model/ClusterMode.h>
10#include <aws/cloudhsmv2/model/Tag.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/crt/cbor/Cbor.h>
41 AWS_CLOUDHSMV2_API
Backup() =
default;
42 AWS_CLOUDHSMV2_API
Backup(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
43 AWS_CLOUDHSMV2_API
Backup&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
44 AWS_CLOUDHSMV2_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
52 template <
typename BackupIdT = Aws::String>
54 m_backupIdHasBeenSet =
true;
55 m_backupId = std::forward<BackupIdT>(value);
57 template <
typename BackupIdT = Aws::String>
70 template <
typename BackupArnT = Aws::String>
72 m_backupArnHasBeenSet =
true;
73 m_backupArn = std::forward<BackupArnT>(value);
75 template <
typename BackupArnT = Aws::String>
89 m_backupStateHasBeenSet =
true;
90 m_backupState = value;
104 template <
typename ClusterIdT = Aws::String>
106 m_clusterIdHasBeenSet =
true;
107 m_clusterId = std::forward<ClusterIdT>(value);
109 template <
typename ClusterIdT = Aws::String>
122 template <
typename CreateTimestampT = Aws::Utils::DateTime>
124 m_createTimestampHasBeenSet =
true;
125 m_createTimestamp = std::forward<CreateTimestampT>(value);
127 template <
typename CreateTimestampT = Aws::Utils::DateTime>
140 template <
typename CopyTimestampT = Aws::Utils::DateTime>
142 m_copyTimestampHasBeenSet =
true;
143 m_copyTimestamp = std::forward<CopyTimestampT>(value);
145 template <
typename CopyTimestampT = Aws::Utils::DateTime>
162 m_neverExpiresHasBeenSet =
true;
163 m_neverExpires = value;
178 template <
typename SourceRegionT = Aws::String>
180 m_sourceRegionHasBeenSet =
true;
181 m_sourceRegion = std::forward<SourceRegionT>(value);
183 template <
typename SourceRegionT = Aws::String>
197 template <
typename SourceBackupT = Aws::String>
199 m_sourceBackupHasBeenSet =
true;
200 m_sourceBackup = std::forward<SourceBackupT>(value);
202 template <
typename SourceBackupT = Aws::String>
216 template <
typename SourceClusterT = Aws::String>
218 m_sourceClusterHasBeenSet =
true;
219 m_sourceCluster = std::forward<SourceClusterT>(value);
221 template <
typename SourceClusterT = Aws::String>
234 template <
typename DeleteTimestampT = Aws::Utils::DateTime>
236 m_deleteTimestampHasBeenSet =
true;
237 m_deleteTimestamp = std::forward<DeleteTimestampT>(value);
239 template <
typename DeleteTimestampT = Aws::Utils::DateTime>
252 template <
typename TagListT = Aws::Vector<Tag>>
254 m_tagListHasBeenSet =
true;
255 m_tagList = std::forward<TagListT>(value);
257 template <
typename TagListT = Aws::Vector<Tag>>
262 template <
typename TagListT = Tag>
264 m_tagListHasBeenSet =
true;
265 m_tagList.emplace_back(std::forward<TagListT>(value));
276 template <
typename HsmTypeT = Aws::String>
278 m_hsmTypeHasBeenSet =
true;
279 m_hsmType = std::forward<HsmTypeT>(value);
281 template <
typename HsmTypeT = Aws::String>
295 m_modeHasBeenSet =
true;
316 bool m_neverExpires{
false};
331 bool m_backupIdHasBeenSet =
false;
332 bool m_backupArnHasBeenSet =
false;
333 bool m_backupStateHasBeenSet =
false;
334 bool m_clusterIdHasBeenSet =
false;
335 bool m_createTimestampHasBeenSet =
false;
336 bool m_copyTimestampHasBeenSet =
false;
337 bool m_neverExpiresHasBeenSet =
false;
338 bool m_sourceRegionHasBeenSet =
false;
339 bool m_sourceBackupHasBeenSet =
false;
340 bool m_sourceClusterHasBeenSet =
false;
341 bool m_deleteTimestampHasBeenSet =
false;
342 bool m_tagListHasBeenSet =
false;
343 bool m_hsmTypeHasBeenSet =
false;
344 bool m_modeHasBeenSet =
false;
bool SourceRegionHasBeenSet() const
Backup & WithSourceCluster(SourceClusterT &&value)
bool ClusterIdHasBeenSet() const
const Aws::String & GetSourceCluster() const
void SetBackupId(BackupIdT &&value)
void SetCopyTimestamp(CopyTimestampT &&value)
Backup & WithDeleteTimestamp(DeleteTimestampT &&value)
Backup & WithSourceBackup(SourceBackupT &&value)
bool BackupIdHasBeenSet() const
bool SourceClusterHasBeenSet() const
void SetClusterId(ClusterIdT &&value)
bool SourceBackupHasBeenSet() const
void SetNeverExpires(bool value)
const Aws::Utils::DateTime & GetDeleteTimestamp() const
void SetSourceBackup(SourceBackupT &&value)
const Aws::String & GetBackupArn() const
Backup & WithClusterId(ClusterIdT &&value)
Backup & WithCreateTimestamp(CreateTimestampT &&value)
AWS_CLOUDHSMV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDHSMV2_API Backup & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool NeverExpiresHasBeenSet() const
const Aws::Utils::DateTime & GetCopyTimestamp() const
Backup & WithNeverExpires(bool value)
Backup & WithHsmType(HsmTypeT &&value)
BackupState GetBackupState() const
const Aws::Vector< Tag > & GetTagList() const
void SetSourceRegion(SourceRegionT &&value)
Backup & WithCopyTimestamp(CopyTimestampT &&value)
void SetBackupArn(BackupArnT &&value)
void SetSourceCluster(SourceClusterT &&value)
Backup & WithBackupId(BackupIdT &&value)
const Aws::String & GetBackupId() const
Backup & WithBackupArn(BackupArnT &&value)
const Aws::String & GetSourceBackup() const
const Aws::String & GetClusterId() const
Backup & WithMode(ClusterMode value)
AWS_CLOUDHSMV2_API Backup()=default
ClusterMode GetMode() const
void SetTagList(TagListT &&value)
Backup & WithSourceRegion(SourceRegionT &&value)
void SetMode(ClusterMode value)
Backup & AddTagList(TagListT &&value)
const Aws::String & GetSourceRegion() const
bool HsmTypeHasBeenSet() const
AWS_CLOUDHSMV2_API Backup(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool BackupArnHasBeenSet() const
Backup & WithTagList(TagListT &&value)
bool TagListHasBeenSet() const
bool BackupStateHasBeenSet() const
const Aws::String & GetHsmType() const
bool DeleteTimestampHasBeenSet() const
void SetCreateTimestamp(CreateTimestampT &&value)
void SetHsmType(HsmTypeT &&value)
void SetBackupState(BackupState value)
bool CopyTimestampHasBeenSet() const
bool ModeHasBeenSet() const
Backup & WithBackupState(BackupState value)
bool GetNeverExpires() const
void SetDeleteTimestamp(DeleteTimestampT &&value)
bool CreateTimestampHasBeenSet() const
const Aws::Utils::DateTime & GetCreateTimestamp() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector