7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/memorydb/MemoryDB_EXPORTS.h>
31 AWS_MEMORYDB_API
ShardConfiguration(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_MEMORYDB_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
42 template <
typename SlotsT = Aws::String>
44 m_slotsHasBeenSet =
true;
45 m_slots = std::forward<SlotsT>(value);
47 template <
typename SlotsT = Aws::String>
49 SetSlots(std::forward<SlotsT>(value));
61 m_replicaCountHasBeenSet =
true;
62 m_replicaCount = value;
72 int64_t m_replicaCount{0};
73 bool m_slotsHasBeenSet =
false;
74 bool m_replicaCountHasBeenSet =
false;
int64_t GetReplicaCount() const
bool ReplicaCountHasBeenSet() const
const Aws::String & GetSlots() const
AWS_MEMORYDB_API ShardConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MEMORYDB_API ShardConfiguration()=default
bool SlotsHasBeenSet() const
AWS_MEMORYDB_API ShardConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetReplicaCount(int64_t value)
void SetSlots(SlotsT &&value)
ShardConfiguration & WithSlots(SlotsT &&value)
ShardConfiguration & WithReplicaCount(int64_t value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String