7#include <aws/cloudhsmv2/CloudHSMV2_EXPORTS.h>
8#include <aws/cloudhsmv2/model/BackupPolicy.h>
9#include <aws/cloudhsmv2/model/BackupRetentionPolicy.h>
10#include <aws/cloudhsmv2/model/Certificates.h>
11#include <aws/cloudhsmv2/model/ClusterMode.h>
12#include <aws/cloudhsmv2/model/ClusterState.h>
13#include <aws/cloudhsmv2/model/Hsm.h>
14#include <aws/cloudhsmv2/model/NetworkType.h>
15#include <aws/cloudhsmv2/model/Tag.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/core/utils/memory/stl/AWSString.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
20#include <aws/crt/cbor/Cbor.h>
41 AWS_CLOUDHSMV2_API
Cluster(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
42 AWS_CLOUDHSMV2_API
Cluster&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
43 AWS_CLOUDHSMV2_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
52 m_backupPolicyHasBeenSet =
true;
53 m_backupPolicy = value;
67 template <
typename BackupRetentionPolicyT = BackupRetentionPolicy>
69 m_backupRetentionPolicyHasBeenSet =
true;
70 m_backupRetentionPolicy = std::forward<BackupRetentionPolicyT>(value);
72 template <
typename BackupRetentionPolicyT = BackupRetentionPolicy>
85 template <
typename ClusterIdT = Aws::String>
87 m_clusterIdHasBeenSet =
true;
88 m_clusterId = std::forward<ClusterIdT>(value);
90 template <
typename ClusterIdT = Aws::String>
103 template <
typename CreateTimestampT = Aws::Utils::DateTime>
105 m_createTimestampHasBeenSet =
true;
106 m_createTimestamp = std::forward<CreateTimestampT>(value);
108 template <
typename CreateTimestampT = Aws::Utils::DateTime>
121 template <
typename HsmsT = Aws::Vector<Hsm>>
123 m_hsmsHasBeenSet =
true;
124 m_hsms = std::forward<HsmsT>(value);
126 template <
typename HsmsT = Aws::Vector<Hsm>>
128 SetHsms(std::forward<HsmsT>(value));
131 template <
typename HsmsT = Hsm>
133 m_hsmsHasBeenSet =
true;
134 m_hsms.emplace_back(std::forward<HsmsT>(value));
145 template <
typename HsmTypeT = Aws::String>
147 m_hsmTypeHasBeenSet =
true;
148 m_hsmType = std::forward<HsmTypeT>(value);
150 template <
typename HsmTypeT = Aws::String>
164 template <
typename HsmTypeRollbackExpirationT = Aws::Utils::DateTime>
166 m_hsmTypeRollbackExpirationHasBeenSet =
true;
167 m_hsmTypeRollbackExpiration = std::forward<HsmTypeRollbackExpirationT>(value);
169 template <
typename HsmTypeRollbackExpirationT = Aws::Utils::DateTime>
182 template <
typename PreCoPasswordT = Aws::String>
184 m_preCoPasswordHasBeenSet =
true;
185 m_preCoPassword = std::forward<PreCoPasswordT>(value);
187 template <
typename PreCoPasswordT = Aws::String>
200 template <
typename SecurityGroupT = Aws::String>
202 m_securityGroupHasBeenSet =
true;
203 m_securityGroup = std::forward<SecurityGroupT>(value);
205 template <
typename SecurityGroupT = Aws::String>
219 template <
typename SourceBackupIdT = Aws::String>
221 m_sourceBackupIdHasBeenSet =
true;
222 m_sourceBackupId = std::forward<SourceBackupIdT>(value);
224 template <
typename SourceBackupIdT = Aws::String>
238 m_stateHasBeenSet =
true;
253 template <
typename StateMessageT = Aws::String>
255 m_stateMessageHasBeenSet =
true;
256 m_stateMessage = std::forward<StateMessageT>(value);
258 template <
typename StateMessageT = Aws::String>
272 template <
typename SubnetMappingT = Aws::Map<Aws::String, Aws::String>>
274 m_subnetMappingHasBeenSet =
true;
275 m_subnetMapping = std::forward<SubnetMappingT>(value);
277 template <
typename SubnetMappingT = Aws::Map<Aws::String, Aws::String>>
282 template <
typename SubnetMappingKeyT = Aws::String,
typename SubnetMappingValueT = Aws::String>
284 m_subnetMappingHasBeenSet =
true;
285 m_subnetMapping.emplace(std::forward<SubnetMappingKeyT>(key), std::forward<SubnetMappingValueT>(value));
297 template <
typename VpcIdT = Aws::String>
299 m_vpcIdHasBeenSet =
true;
300 m_vpcId = std::forward<VpcIdT>(value);
302 template <
typename VpcIdT = Aws::String>
304 SetVpcId(std::forward<VpcIdT>(value));
324 m_networkTypeHasBeenSet =
true;
325 m_networkType = value;
339 template <
typename CertificatesT = Certificates>
341 m_certificatesHasBeenSet =
true;
342 m_certificates = std::forward<CertificatesT>(value);
344 template <
typename CertificatesT = Certificates>
357 template <
typename TagListT = Aws::Vector<Tag>>
359 m_tagListHasBeenSet =
true;
360 m_tagList = std::forward<TagListT>(value);
362 template <
typename TagListT = Aws::Vector<Tag>>
367 template <
typename TagListT = Tag>
369 m_tagListHasBeenSet =
true;
370 m_tagList.emplace_back(std::forward<TagListT>(value));
382 m_modeHasBeenSet =
true;
393 BackupRetentionPolicy m_backupRetentionPolicy;
421 Certificates m_certificates;
426 bool m_backupPolicyHasBeenSet =
false;
427 bool m_backupRetentionPolicyHasBeenSet =
false;
428 bool m_clusterIdHasBeenSet =
false;
429 bool m_createTimestampHasBeenSet =
false;
430 bool m_hsmsHasBeenSet =
false;
431 bool m_hsmTypeHasBeenSet =
false;
432 bool m_hsmTypeRollbackExpirationHasBeenSet =
false;
433 bool m_preCoPasswordHasBeenSet =
false;
434 bool m_securityGroupHasBeenSet =
false;
435 bool m_sourceBackupIdHasBeenSet =
false;
436 bool m_stateHasBeenSet =
false;
437 bool m_stateMessageHasBeenSet =
false;
438 bool m_subnetMappingHasBeenSet =
false;
439 bool m_vpcIdHasBeenSet =
false;
440 bool m_networkTypeHasBeenSet =
false;
441 bool m_certificatesHasBeenSet =
false;
442 bool m_tagListHasBeenSet =
false;
443 bool m_modeHasBeenSet =
false;
bool NetworkTypeHasBeenSet() const
const Aws::String & GetStateMessage() const
Cluster & WithHsms(HsmsT &&value)
Cluster & WithVpcId(VpcIdT &&value)
Cluster & WithHsmTypeRollbackExpiration(HsmTypeRollbackExpirationT &&value)
void SetSubnetMapping(SubnetMappingT &&value)
void SetCertificates(CertificatesT &&value)
const BackupRetentionPolicy & GetBackupRetentionPolicy() const
void SetMode(ClusterMode value)
void SetSourceBackupId(SourceBackupIdT &&value)
const Aws::String & GetHsmType() const
bool HsmsHasBeenSet() const
Cluster & WithBackupRetentionPolicy(BackupRetentionPolicyT &&value)
ClusterState GetState() const
BackupPolicy GetBackupPolicy() const
NetworkType GetNetworkType() const
AWS_CLOUDHSMV2_API Cluster & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool ClusterIdHasBeenSet() const
AWS_CLOUDHSMV2_API Cluster()=default
void SetClusterId(ClusterIdT &&value)
Cluster & WithCreateTimestamp(CreateTimestampT &&value)
const Aws::Utils::DateTime & GetHsmTypeRollbackExpiration() const
Cluster & WithMode(ClusterMode value)
const Aws::Vector< Tag > & GetTagList() const
bool BackupPolicyHasBeenSet() const
bool StateMessageHasBeenSet() const
void SetPreCoPassword(PreCoPasswordT &&value)
const Aws::Utils::DateTime & GetCreateTimestamp() const
Cluster & WithNetworkType(NetworkType value)
const Aws::String & GetPreCoPassword() const
void SetBackupPolicy(BackupPolicy value)
void SetBackupRetentionPolicy(BackupRetentionPolicyT &&value)
bool SourceBackupIdHasBeenSet() const
void SetCreateTimestamp(CreateTimestampT &&value)
const Aws::String & GetSourceBackupId() const
Cluster & WithSecurityGroup(SecurityGroupT &&value)
Cluster & WithClusterId(ClusterIdT &&value)
AWS_CLOUDHSMV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
Cluster & WithSubnetMapping(SubnetMappingT &&value)
Cluster & WithCertificates(CertificatesT &&value)
void SetSecurityGroup(SecurityGroupT &&value)
Cluster & WithState(ClusterState value)
Cluster & WithTagList(TagListT &&value)
bool HsmTypeHasBeenSet() const
void SetHsms(HsmsT &&value)
bool StateHasBeenSet() const
bool CreateTimestampHasBeenSet() const
bool SecurityGroupHasBeenSet() const
bool VpcIdHasBeenSet() const
const Aws::String & GetSecurityGroup() const
bool SubnetMappingHasBeenSet() const
bool PreCoPasswordHasBeenSet() const
Cluster & WithSourceBackupId(SourceBackupIdT &&value)
bool HsmTypeRollbackExpirationHasBeenSet() const
Cluster & WithBackupPolicy(BackupPolicy value)
Cluster & AddSubnetMapping(SubnetMappingKeyT &&key, SubnetMappingValueT &&value)
Cluster & AddHsms(HsmsT &&value)
const Aws::String & GetVpcId() const
Cluster & WithStateMessage(StateMessageT &&value)
bool BackupRetentionPolicyHasBeenSet() const
bool CertificatesHasBeenSet() const
void SetState(ClusterState value)
Cluster & WithHsmType(HsmTypeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSubnetMapping() const
void SetHsmType(HsmTypeT &&value)
void SetNetworkType(NetworkType value)
AWS_CLOUDHSMV2_API Cluster(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool TagListHasBeenSet() const
void SetStateMessage(StateMessageT &&value)
ClusterMode GetMode() const
Cluster & AddTagList(TagListT &&value)
const Certificates & GetCertificates() const
void SetVpcId(VpcIdT &&value)
bool ModeHasBeenSet() const
const Aws::Vector< Hsm > & GetHsms() const
void SetTagList(TagListT &&value)
Cluster & WithPreCoPassword(PreCoPasswordT &&value)
void SetHsmTypeRollbackExpiration(HsmTypeRollbackExpirationT &&value)
const Aws::String & GetClusterId() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector