7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/AZStatus.h>
12#include <aws/memorydb/model/ClusterPendingUpdates.h>
13#include <aws/memorydb/model/DataTieringStatus.h>
14#include <aws/memorydb/model/Endpoint.h>
15#include <aws/memorydb/model/IpDiscovery.h>
16#include <aws/memorydb/model/NetworkType.h>
17#include <aws/memorydb/model/SecurityGroupMembership.h>
18#include <aws/memorydb/model/Shard.h>
40 AWS_MEMORYDB_API
Cluster(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_MEMORYDB_API
Cluster&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
42 AWS_MEMORYDB_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
51 template <
typename NameT = Aws::String>
53 m_nameHasBeenSet =
true;
54 m_name = std::forward<NameT>(value);
56 template <
typename NameT = Aws::String>
58 SetName(std::forward<NameT>(value));
69 template <
typename DescriptionT = Aws::String>
71 m_descriptionHasBeenSet =
true;
72 m_description = std::forward<DescriptionT>(value);
74 template <
typename DescriptionT = Aws::String>
87 template <
typename StatusT = Aws::String>
89 m_statusHasBeenSet =
true;
90 m_status = std::forward<StatusT>(value);
92 template <
typename StatusT = Aws::String>
105 template <
typename PendingUpdatesT = ClusterPendingUpdates>
107 m_pendingUpdatesHasBeenSet =
true;
108 m_pendingUpdates = std::forward<PendingUpdatesT>(value);
110 template <
typename PendingUpdatesT = ClusterPendingUpdates>
123 template <
typename MultiRegionClusterNameT = Aws::String>
125 m_multiRegionClusterNameHasBeenSet =
true;
126 m_multiRegionClusterName = std::forward<MultiRegionClusterNameT>(value);
128 template <
typename MultiRegionClusterNameT = Aws::String>
142 m_numberOfShardsHasBeenSet =
true;
143 m_numberOfShards = value;
157 template <
typename ShardsT = Aws::Vector<Shard>>
159 m_shardsHasBeenSet =
true;
160 m_shards = std::forward<ShardsT>(value);
162 template <
typename ShardsT = Aws::Vector<Shard>>
167 template <
typename ShardsT = Shard>
169 m_shardsHasBeenSet =
true;
170 m_shards.emplace_back(std::forward<ShardsT>(value));
183 m_availabilityModeHasBeenSet =
true;
184 m_availabilityMode = value;
198 template <
typename ClusterEndpo
intT = Endpo
int>
200 m_clusterEndpointHasBeenSet =
true;
201 m_clusterEndpoint = std::forward<ClusterEndpointT>(value);
203 template <
typename ClusterEndpo
intT = Endpo
int>
216 template <
typename NodeTypeT = Aws::String>
218 m_nodeTypeHasBeenSet =
true;
219 m_nodeType = std::forward<NodeTypeT>(value);
221 template <
typename NodeTypeT = Aws::String>
234 template <
typename EngineT = Aws::String>
236 m_engineHasBeenSet =
true;
237 m_engine = std::forward<EngineT>(value);
239 template <
typename EngineT = Aws::String>
252 template <
typename EngineVersionT = Aws::String>
254 m_engineVersionHasBeenSet =
true;
255 m_engineVersion = std::forward<EngineVersionT>(value);
257 template <
typename EngineVersionT = Aws::String>
270 template <
typename EnginePatchVersionT = Aws::String>
272 m_enginePatchVersionHasBeenSet =
true;
273 m_enginePatchVersion = std::forward<EnginePatchVersionT>(value);
275 template <
typename EnginePatchVersionT = Aws::String>
288 template <
typename ParameterGroupNameT = Aws::String>
290 m_parameterGroupNameHasBeenSet =
true;
291 m_parameterGroupName = std::forward<ParameterGroupNameT>(value);
293 template <
typename ParameterGroupNameT = Aws::String>
307 template <
typename ParameterGroupStatusT = Aws::String>
309 m_parameterGroupStatusHasBeenSet =
true;
310 m_parameterGroupStatus = std::forward<ParameterGroupStatusT>(value);
312 template <
typename ParameterGroupStatusT = Aws::String>
325 template <
typename SecurityGroupsT = Aws::Vector<SecurityGroupMembership>>
327 m_securityGroupsHasBeenSet =
true;
328 m_securityGroups = std::forward<SecurityGroupsT>(value);
330 template <
typename SecurityGroupsT = Aws::Vector<SecurityGroupMembership>>
335 template <
typename SecurityGroupsT = SecurityGroupMembership>
337 m_securityGroupsHasBeenSet =
true;
338 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
349 template <
typename SubnetGroupNameT = Aws::String>
351 m_subnetGroupNameHasBeenSet =
true;
352 m_subnetGroupName = std::forward<SubnetGroupNameT>(value);
354 template <
typename SubnetGroupNameT = Aws::String>
368 m_tLSEnabledHasBeenSet =
true;
369 m_tLSEnabled = value;
383 template <
typename KmsKeyIdT = Aws::String>
385 m_kmsKeyIdHasBeenSet =
true;
386 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
388 template <
typename KmsKeyIdT = Aws::String>
401 template <
typename ARNT = Aws::String>
403 m_aRNHasBeenSet =
true;
404 m_aRN = std::forward<ARNT>(value);
406 template <
typename ARNT = Aws::String>
408 SetARN(std::forward<ARNT>(value));
419 template <
typename SnsTopicArnT = Aws::String>
421 m_snsTopicArnHasBeenSet =
true;
422 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
424 template <
typename SnsTopicArnT = Aws::String>
437 template <
typename SnsTopicStatusT = Aws::String>
439 m_snsTopicStatusHasBeenSet =
true;
440 m_snsTopicStatus = std::forward<SnsTopicStatusT>(value);
442 template <
typename SnsTopicStatusT = Aws::String>
458 m_snapshotRetentionLimitHasBeenSet =
true;
459 m_snapshotRetentionLimit = value;
475 template <
typename Ma
intenanceWindowT = Aws::String>
477 m_maintenanceWindowHasBeenSet =
true;
478 m_maintenanceWindow = std::forward<MaintenanceWindowT>(value);
480 template <
typename Ma
intenanceWindowT = Aws::String>
495 template <
typename SnapshotWindowT = Aws::String>
497 m_snapshotWindowHasBeenSet =
true;
498 m_snapshotWindow = std::forward<SnapshotWindowT>(value);
500 template <
typename SnapshotWindowT = Aws::String>
513 template <
typename ACLNameT = Aws::String>
515 m_aCLNameHasBeenSet =
true;
516 m_aCLName = std::forward<ACLNameT>(value);
518 template <
typename ACLNameT = Aws::String>
533 m_autoMinorVersionUpgradeHasBeenSet =
true;
534 m_autoMinorVersionUpgrade = value;
553 m_dataTieringHasBeenSet =
true;
554 m_dataTiering = value;
571 m_networkTypeHasBeenSet =
true;
572 m_networkType = value;
589 m_ipDiscoveryHasBeenSet =
true;
590 m_ipDiscovery = value;
608 int64_t m_numberOfShards{0};
614 Endpoint m_clusterEndpoint;
632 bool m_tLSEnabled{
false};
642 int64_t m_snapshotRetentionLimit{0};
650 bool m_autoMinorVersionUpgrade{
false};
657 bool m_nameHasBeenSet =
false;
658 bool m_descriptionHasBeenSet =
false;
659 bool m_statusHasBeenSet =
false;
660 bool m_pendingUpdatesHasBeenSet =
false;
661 bool m_multiRegionClusterNameHasBeenSet =
false;
662 bool m_numberOfShardsHasBeenSet =
false;
663 bool m_shardsHasBeenSet =
false;
664 bool m_availabilityModeHasBeenSet =
false;
665 bool m_clusterEndpointHasBeenSet =
false;
666 bool m_nodeTypeHasBeenSet =
false;
667 bool m_engineHasBeenSet =
false;
668 bool m_engineVersionHasBeenSet =
false;
669 bool m_enginePatchVersionHasBeenSet =
false;
670 bool m_parameterGroupNameHasBeenSet =
false;
671 bool m_parameterGroupStatusHasBeenSet =
false;
672 bool m_securityGroupsHasBeenSet =
false;
673 bool m_subnetGroupNameHasBeenSet =
false;
674 bool m_tLSEnabledHasBeenSet =
false;
675 bool m_kmsKeyIdHasBeenSet =
false;
676 bool m_aRNHasBeenSet =
false;
677 bool m_snsTopicArnHasBeenSet =
false;
678 bool m_snsTopicStatusHasBeenSet =
false;
679 bool m_snapshotRetentionLimitHasBeenSet =
false;
680 bool m_maintenanceWindowHasBeenSet =
false;
681 bool m_snapshotWindowHasBeenSet =
false;
682 bool m_aCLNameHasBeenSet =
false;
683 bool m_autoMinorVersionUpgradeHasBeenSet =
false;
684 bool m_dataTieringHasBeenSet =
false;
685 bool m_networkTypeHasBeenSet =
false;
686 bool m_ipDiscoveryHasBeenSet =
false;
bool IpDiscoveryHasBeenSet() const
Cluster & WithAvailabilityMode(AZStatus value)
const Aws::String & GetDescription() const
Cluster & WithSnsTopicArn(SnsTopicArnT &&value)
void SetMultiRegionClusterName(MultiRegionClusterNameT &&value)
Cluster & WithStatus(StatusT &&value)
bool ACLNameHasBeenSet() const
AWS_MEMORYDB_API Cluster & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetARN() const
void SetNumberOfShards(int64_t value)
void SetClusterEndpoint(ClusterEndpointT &&value)
Cluster & WithSnapshotRetentionLimit(int64_t value)
void SetDescription(DescriptionT &&value)
Cluster & AddShards(ShardsT &&value)
Cluster & WithSubnetGroupName(SubnetGroupNameT &&value)
AZStatus GetAvailabilityMode() const
const Aws::String & GetKmsKeyId() const
const Aws::String & GetMultiRegionClusterName() const
void SetDataTiering(DataTieringStatus value)
void SetKmsKeyId(KmsKeyIdT &&value)
void SetSubnetGroupName(SubnetGroupNameT &&value)
Cluster & WithParameterGroupName(ParameterGroupNameT &&value)
Cluster & WithEnginePatchVersion(EnginePatchVersionT &&value)
void SetParameterGroupStatus(ParameterGroupStatusT &&value)
Cluster & WithTLSEnabled(bool value)
Cluster & WithEngine(EngineT &&value)
Cluster & AddSecurityGroups(SecurityGroupsT &&value)
bool MultiRegionClusterNameHasBeenSet() const
const Aws::String & GetSnsTopicArn() const
bool ClusterEndpointHasBeenSet() const
const Aws::String & GetSnapshotWindow() const
void SetParameterGroupName(ParameterGroupNameT &&value)
void SetARN(ARNT &&value)
const Aws::String & GetName() const
AWS_MEMORYDB_API Cluster()=default
void SetIpDiscovery(IpDiscovery value)
void SetAvailabilityMode(AZStatus value)
Cluster & WithACLName(ACLNameT &&value)
bool SnapshotWindowHasBeenSet() const
int64_t GetSnapshotRetentionLimit() const
void SetSnsTopicStatus(SnsTopicStatusT &&value)
bool NodeTypeHasBeenSet() const
Cluster & WithShards(ShardsT &&value)
void SetStatus(StatusT &&value)
Cluster & WithSnapshotWindow(SnapshotWindowT &&value)
bool AutoMinorVersionUpgradeHasBeenSet() const
void SetEngineVersion(EngineVersionT &&value)
bool AvailabilityModeHasBeenSet() const
bool DescriptionHasBeenSet() const
bool MaintenanceWindowHasBeenSet() const
const Aws::String & GetMaintenanceWindow() const
bool SubnetGroupNameHasBeenSet() const
const Aws::Vector< SecurityGroupMembership > & GetSecurityGroups() const
void SetPendingUpdates(PendingUpdatesT &&value)
Cluster & WithIpDiscovery(IpDiscovery value)
bool KmsKeyIdHasBeenSet() const
bool DataTieringHasBeenSet() const
bool EngineHasBeenSet() const
const Aws::String & GetParameterGroupStatus() const
bool ShardsHasBeenSet() const
Cluster & WithName(NameT &&value)
bool ParameterGroupNameHasBeenSet() const
Cluster & WithMaintenanceWindow(MaintenanceWindowT &&value)
NetworkType GetNetworkType() const
bool ParameterGroupStatusHasBeenSet() const
Cluster & WithClusterEndpoint(ClusterEndpointT &&value)
bool GetAutoMinorVersionUpgrade() const
Cluster & WithARN(ARNT &&value)
const Aws::String & GetACLName() const
Cluster & WithParameterGroupStatus(ParameterGroupStatusT &&value)
const Aws::String & GetParameterGroupName() const
Cluster & WithAutoMinorVersionUpgrade(bool value)
bool NetworkTypeHasBeenSet() const
Cluster & WithEngineVersion(EngineVersionT &&value)
const Endpoint & GetClusterEndpoint() const
const Aws::String & GetEngine() const
bool ARNHasBeenSet() const
void SetMaintenanceWindow(MaintenanceWindowT &&value)
const Aws::Vector< Shard > & GetShards() const
void SetNetworkType(NetworkType value)
bool NumberOfShardsHasBeenSet() const
const Aws::String & GetSnsTopicStatus() const
bool StatusHasBeenSet() const
void SetNodeType(NodeTypeT &&value)
bool EngineVersionHasBeenSet() const
const Aws::String & GetStatus() const
Cluster & WithMultiRegionClusterName(MultiRegionClusterNameT &&value)
Cluster & WithNodeType(NodeTypeT &&value)
void SetEnginePatchVersion(EnginePatchVersionT &&value)
bool SnsTopicArnHasBeenSet() const
Cluster & WithSnsTopicStatus(SnsTopicStatusT &&value)
void SetTLSEnabled(bool value)
bool TLSEnabledHasBeenSet() const
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetAutoMinorVersionUpgrade(bool value)
const Aws::String & GetSubnetGroupName() const
const Aws::String & GetEngineVersion() const
void SetSnapshotRetentionLimit(int64_t value)
IpDiscovery GetIpDiscovery() const
AWS_MEMORYDB_API Cluster(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
int64_t GetNumberOfShards() const
bool GetTLSEnabled() const
bool PendingUpdatesHasBeenSet() const
Cluster & WithPendingUpdates(PendingUpdatesT &&value)
void SetName(NameT &&value)
Cluster & WithDataTiering(DataTieringStatus value)
void SetSnsTopicArn(SnsTopicArnT &&value)
const Aws::String & GetNodeType() const
bool SecurityGroupsHasBeenSet() const
void SetSnapshotWindow(SnapshotWindowT &&value)
const Aws::String & GetEnginePatchVersion() const
void SetSecurityGroups(SecurityGroupsT &&value)
Cluster & WithDescription(DescriptionT &&value)
void SetACLName(ACLNameT &&value)
void SetEngine(EngineT &&value)
void SetShards(ShardsT &&value)
Cluster & WithSecurityGroups(SecurityGroupsT &&value)
Cluster & WithNumberOfShards(int64_t value)
bool SnsTopicStatusHasBeenSet() const
const ClusterPendingUpdates & GetPendingUpdates() const
bool EnginePatchVersionHasBeenSet() const
Cluster & WithKmsKeyId(KmsKeyIdT &&value)
bool SnapshotRetentionLimitHasBeenSet() const
Cluster & WithNetworkType(NetworkType value)
DataTieringStatus GetDataTiering() const
bool NameHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector