7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/Endpoint.h>
12#include <aws/elasticache/model/NodeGroupMember.h>
22namespace ElastiCache {
51 template <
typename NodeGroupIdT = Aws::String>
53 m_nodeGroupIdHasBeenSet =
true;
54 m_nodeGroupId = std::forward<NodeGroupIdT>(value);
56 template <
typename NodeGroupIdT = Aws::String>
70 template <
typename StatusT = Aws::String>
72 m_statusHasBeenSet =
true;
73 m_status = std::forward<StatusT>(value);
75 template <
typename StatusT = Aws::String>
88 template <
typename PrimaryEndpo
intT = Endpo
int>
90 m_primaryEndpointHasBeenSet =
true;
91 m_primaryEndpoint = std::forward<PrimaryEndpointT>(value);
93 template <
typename PrimaryEndpo
intT = Endpo
int>
107 template <
typename ReaderEndpo
intT = Endpo
int>
109 m_readerEndpointHasBeenSet =
true;
110 m_readerEndpoint = std::forward<ReaderEndpointT>(value);
112 template <
typename ReaderEndpo
intT = Endpo
int>
125 template <
typename SlotsT = Aws::String>
127 m_slotsHasBeenSet =
true;
128 m_slots = std::forward<SlotsT>(value);
130 template <
typename SlotsT = Aws::String>
132 SetSlots(std::forward<SlotsT>(value));
144 template <
typename NodeGroupMembersT = Aws::Vector<NodeGroupMember>>
146 m_nodeGroupMembersHasBeenSet =
true;
147 m_nodeGroupMembers = std::forward<NodeGroupMembersT>(value);
149 template <
typename NodeGroupMembersT = Aws::Vector<NodeGroupMember>>
154 template <
typename NodeGroupMembersT = NodeGroupMember>
156 m_nodeGroupMembersHasBeenSet =
true;
157 m_nodeGroupMembers.emplace_back(std::forward<NodeGroupMembersT>(value));
173 bool m_nodeGroupIdHasBeenSet =
false;
174 bool m_statusHasBeenSet =
false;
175 bool m_primaryEndpointHasBeenSet =
false;
176 bool m_readerEndpointHasBeenSet =
false;
177 bool m_slotsHasBeenSet =
false;
178 bool m_nodeGroupMembersHasBeenSet =
false;
AWS_ELASTICACHE_API NodeGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NodeGroup & WithStatus(StatusT &&value)
const Endpoint & GetPrimaryEndpoint() const
NodeGroup & AddNodeGroupMembers(NodeGroupMembersT &&value)
bool PrimaryEndpointHasBeenSet() const
bool NodeGroupIdHasBeenSet() const
bool StatusHasBeenSet() const
NodeGroup & WithSlots(SlotsT &&value)
bool NodeGroupMembersHasBeenSet() const
const Endpoint & GetReaderEndpoint() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetPrimaryEndpoint(PrimaryEndpointT &&value)
const Aws::String & GetNodeGroupId() const
void SetStatus(StatusT &&value)
void SetNodeGroupId(NodeGroupIdT &&value)
AWS_ELASTICACHE_API NodeGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ReaderEndpointHasBeenSet() const
void SetReaderEndpoint(ReaderEndpointT &&value)
NodeGroup & WithPrimaryEndpoint(PrimaryEndpointT &&value)
AWS_ELASTICACHE_API NodeGroup()=default
void SetNodeGroupMembers(NodeGroupMembersT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetSlots() const
const Aws::Vector< NodeGroupMember > & GetNodeGroupMembers() const
NodeGroup & WithNodeGroupMembers(NodeGroupMembersT &&value)
bool SlotsHasBeenSet() const
NodeGroup & WithNodeGroupId(NodeGroupIdT &&value)
const Aws::String & GetStatus() const
void SetSlots(SlotsT &&value)
NodeGroup & WithReaderEndpoint(ReaderEndpointT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream