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/ShardDetail.h>
34 AWS_MEMORYDB_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
42 template <
typename NameT = Aws::String>
44 m_nameHasBeenSet =
true;
45 m_name = std::forward<NameT>(value);
47 template <
typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
60 template <
typename DescriptionT = Aws::String>
62 m_descriptionHasBeenSet =
true;
63 m_description = std::forward<DescriptionT>(value);
65 template <
typename DescriptionT = Aws::String>
78 template <
typename NodeTypeT = Aws::String>
80 m_nodeTypeHasBeenSet =
true;
81 m_nodeType = std::forward<NodeTypeT>(value);
83 template <
typename NodeTypeT = Aws::String>
96 template <
typename EngineT = Aws::String>
98 m_engineHasBeenSet =
true;
99 m_engine = std::forward<EngineT>(value);
101 template <
typename EngineT = Aws::String>
114 template <
typename EngineVersionT = Aws::String>
116 m_engineVersionHasBeenSet =
true;
117 m_engineVersion = std::forward<EngineVersionT>(value);
119 template <
typename EngineVersionT = Aws::String>
132 template <
typename Ma
intenanceWindowT = Aws::String>
134 m_maintenanceWindowHasBeenSet =
true;
135 m_maintenanceWindow = std::forward<MaintenanceWindowT>(value);
137 template <
typename Ma
intenanceWindowT = Aws::String>
151 template <
typename TopicArnT = Aws::String>
153 m_topicArnHasBeenSet =
true;
154 m_topicArn = std::forward<TopicArnT>(value);
156 template <
typename TopicArnT = Aws::String>
167 inline int64_t
GetPort()
const {
return m_port; }
170 m_portHasBeenSet =
true;
185 template <
typename ParameterGroupNameT = Aws::String>
187 m_parameterGroupNameHasBeenSet =
true;
188 m_parameterGroupName = std::forward<ParameterGroupNameT>(value);
190 template <
typename ParameterGroupNameT = Aws::String>
203 template <
typename SubnetGroupNameT = Aws::String>
205 m_subnetGroupNameHasBeenSet =
true;
206 m_subnetGroupName = std::forward<SubnetGroupNameT>(value);
208 template <
typename SubnetGroupNameT = Aws::String>
221 template <
typename VpcIdT = Aws::String>
223 m_vpcIdHasBeenSet =
true;
224 m_vpcId = std::forward<VpcIdT>(value);
226 template <
typename VpcIdT = Aws::String>
228 SetVpcId(std::forward<VpcIdT>(value));
240 m_snapshotRetentionLimitHasBeenSet =
true;
241 m_snapshotRetentionLimit = value;
255 template <
typename SnapshotWindowT = Aws::String>
257 m_snapshotWindowHasBeenSet =
true;
258 m_snapshotWindow = std::forward<SnapshotWindowT>(value);
260 template <
typename SnapshotWindowT = Aws::String>
274 m_numShardsHasBeenSet =
true;
289 template <
typename ShardsT = Aws::Vector<ShardDetail>>
291 m_shardsHasBeenSet =
true;
292 m_shards = std::forward<ShardsT>(value);
294 template <
typename ShardsT = Aws::Vector<ShardDetail>>
299 template <
typename ShardsT = ShardDetail>
301 m_shardsHasBeenSet =
true;
302 m_shards.emplace_back(std::forward<ShardsT>(value));
314 template <
typename MultiRegionParameterGroupNameT = Aws::String>
316 m_multiRegionParameterGroupNameHasBeenSet =
true;
317 m_multiRegionParameterGroupName = std::forward<MultiRegionParameterGroupNameT>(value);
319 template <
typename MultiRegionParameterGroupNameT = Aws::String>
333 template <
typename MultiRegionClusterNameT = Aws::String>
335 m_multiRegionClusterNameHasBeenSet =
true;
336 m_multiRegionClusterName = std::forward<MultiRegionClusterNameT>(value);
338 template <
typename MultiRegionClusterNameT = Aws::String>
367 int64_t m_snapshotRetentionLimit{0};
371 int64_t m_numShards{0};
378 bool m_nameHasBeenSet =
false;
379 bool m_descriptionHasBeenSet =
false;
380 bool m_nodeTypeHasBeenSet =
false;
381 bool m_engineHasBeenSet =
false;
382 bool m_engineVersionHasBeenSet =
false;
383 bool m_maintenanceWindowHasBeenSet =
false;
384 bool m_topicArnHasBeenSet =
false;
385 bool m_portHasBeenSet =
false;
386 bool m_parameterGroupNameHasBeenSet =
false;
387 bool m_subnetGroupNameHasBeenSet =
false;
388 bool m_vpcIdHasBeenSet =
false;
389 bool m_snapshotRetentionLimitHasBeenSet =
false;
390 bool m_snapshotWindowHasBeenSet =
false;
391 bool m_numShardsHasBeenSet =
false;
392 bool m_shardsHasBeenSet =
false;
393 bool m_multiRegionParameterGroupNameHasBeenSet =
false;
394 bool m_multiRegionClusterNameHasBeenSet =
false;
AWS_MEMORYDB_API ClusterConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool EngineVersionHasBeenSet() const
bool SnapshotRetentionLimitHasBeenSet() const
const Aws::String & GetVpcId() const
AWS_MEMORYDB_API ClusterConfiguration()=default
bool MultiRegionParameterGroupNameHasBeenSet() const
ClusterConfiguration & WithNumShards(int64_t value)
void SetShards(ShardsT &&value)
void SetTopicArn(TopicArnT &&value)
ClusterConfiguration & WithTopicArn(TopicArnT &&value)
bool MultiRegionClusterNameHasBeenSet() const
const Aws::String & GetNodeType() const
bool SnapshotWindowHasBeenSet() const
void SetSnapshotRetentionLimit(int64_t value)
const Aws::String & GetMaintenanceWindow() const
ClusterConfiguration & WithSnapshotWindow(SnapshotWindowT &&value)
bool SubnetGroupNameHasBeenSet() const
bool DescriptionHasBeenSet() const
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetMultiRegionClusterName(MultiRegionClusterNameT &&value)
ClusterConfiguration & WithPort(int64_t value)
void SetMultiRegionParameterGroupName(MultiRegionParameterGroupNameT &&value)
void SetSnapshotWindow(SnapshotWindowT &&value)
ClusterConfiguration & WithVpcId(VpcIdT &&value)
const Aws::String & GetMultiRegionParameterGroupName() const
const Aws::String & GetEngineVersion() const
ClusterConfiguration & WithNodeType(NodeTypeT &&value)
bool ShardsHasBeenSet() const
void SetMaintenanceWindow(MaintenanceWindowT &&value)
int64_t GetNumShards() const
const Aws::Vector< ShardDetail > & GetShards() const
ClusterConfiguration & WithSnapshotRetentionLimit(int64_t value)
ClusterConfiguration & WithName(NameT &&value)
void SetVpcId(VpcIdT &&value)
int64_t GetSnapshotRetentionLimit() const
bool ParameterGroupNameHasBeenSet() const
ClusterConfiguration & WithDescription(DescriptionT &&value)
const Aws::String & GetSnapshotWindow() const
bool NameHasBeenSet() const
ClusterConfiguration & WithShards(ShardsT &&value)
void SetName(NameT &&value)
const Aws::String & GetName() const
const Aws::String & GetSubnetGroupName() const
ClusterConfiguration & WithMaintenanceWindow(MaintenanceWindowT &&value)
void SetEngineVersion(EngineVersionT &&value)
const Aws::String & GetEngine() const
const Aws::String & GetParameterGroupName() const
void SetParameterGroupName(ParameterGroupNameT &&value)
bool PortHasBeenSet() const
bool EngineHasBeenSet() const
void SetDescription(DescriptionT &&value)
bool MaintenanceWindowHasBeenSet() const
AWS_MEMORYDB_API ClusterConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetPort(int64_t value)
void SetNodeType(NodeTypeT &&value)
bool NodeTypeHasBeenSet() const
const Aws::String & GetTopicArn() const
ClusterConfiguration & AddShards(ShardsT &&value)
ClusterConfiguration & WithEngine(EngineT &&value)
void SetNumShards(int64_t value)
ClusterConfiguration & WithMultiRegionClusterName(MultiRegionClusterNameT &&value)
void SetEngine(EngineT &&value)
ClusterConfiguration & WithMultiRegionParameterGroupName(MultiRegionParameterGroupNameT &&value)
ClusterConfiguration & WithParameterGroupName(ParameterGroupNameT &&value)
bool NumShardsHasBeenSet() const
void SetSubnetGroupName(SubnetGroupNameT &&value)
bool TopicArnHasBeenSet() const
const Aws::String & GetMultiRegionClusterName() const
const Aws::String & GetDescription() const
ClusterConfiguration & WithSubnetGroupName(SubnetGroupNameT &&value)
bool VpcIdHasBeenSet() const
ClusterConfiguration & WithEngineVersion(EngineVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector