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/Node.h>
33 AWS_MEMORYDB_API
Shard() =
default;
34 AWS_MEMORYDB_API
Shard(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_MEMORYDB_API
Shard&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_MEMORYDB_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
44 template <
typename NameT = Aws::String>
46 m_nameHasBeenSet =
true;
47 m_name = std::forward<NameT>(value);
49 template <
typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
63 template <
typename StatusT = Aws::String>
65 m_statusHasBeenSet =
true;
66 m_status = std::forward<StatusT>(value);
68 template <
typename StatusT = Aws::String>
81 template <
typename SlotsT = Aws::String>
83 m_slotsHasBeenSet =
true;
84 m_slots = std::forward<SlotsT>(value);
86 template <
typename SlotsT = Aws::String>
88 SetSlots(std::forward<SlotsT>(value));
99 template <
typename NodesT = Aws::Vector<Node>>
101 m_nodesHasBeenSet =
true;
102 m_nodes = std::forward<NodesT>(value);
104 template <
typename NodesT = Aws::Vector<Node>>
106 SetNodes(std::forward<NodesT>(value));
109 template <
typename NodesT = Node>
111 m_nodesHasBeenSet =
true;
112 m_nodes.emplace_back(std::forward<NodesT>(value));
124 m_numberOfNodesHasBeenSet =
true;
125 m_numberOfNodes = value;
141 int64_t m_numberOfNodes{0};
142 bool m_nameHasBeenSet =
false;
143 bool m_statusHasBeenSet =
false;
144 bool m_slotsHasBeenSet =
false;
145 bool m_nodesHasBeenSet =
false;
146 bool m_numberOfNodesHasBeenSet =
false;
AWS_MEMORYDB_API Shard & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetSlots() const
void SetNumberOfNodes(int64_t value)
Shard & WithNumberOfNodes(int64_t value)
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetStatus() const
bool NumberOfNodesHasBeenSet() const
bool NameHasBeenSet() const
Shard & WithNodes(NodesT &&value)
Shard & WithName(NameT &&value)
Shard & WithStatus(StatusT &&value)
void SetSlots(SlotsT &&value)
AWS_MEMORYDB_API Shard(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetNodes(NodesT &&value)
bool SlotsHasBeenSet() const
const Aws::Vector< Node > & GetNodes() const
void SetStatus(StatusT &&value)
int64_t GetNumberOfNodes() const
Shard & AddNodes(NodesT &&value)
bool NodesHasBeenSet() const
const Aws::String & GetName() const
AWS_MEMORYDB_API Shard()=default
void SetName(NameT &&value)
bool StatusHasBeenSet() const
Shard & WithSlots(SlotsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector