7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticache/model/Endpoint.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticache/model/NodeGroupMember.h>
57 template<
typename NodeGroupIdT = Aws::String>
58 void SetNodeGroupId(NodeGroupIdT&& value) { m_nodeGroupIdHasBeenSet =
true; m_nodeGroupId = std::forward<NodeGroupIdT>(value); }
59 template<
typename NodeGroupIdT = Aws::String>
70 template<
typename StatusT = Aws::String>
71 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
72 template<
typename StatusT = Aws::String>
82 template<
typename PrimaryEndpo
intT = Endpo
int>
83 void SetPrimaryEndpoint(PrimaryEndpointT&& value) { m_primaryEndpointHasBeenSet =
true; m_primaryEndpoint = std::forward<PrimaryEndpointT>(value); }
84 template<
typename PrimaryEndpo
intT = Endpo
int>
95 template<
typename ReaderEndpo
intT = Endpo
int>
96 void SetReaderEndpoint(ReaderEndpointT&& value) { m_readerEndpointHasBeenSet =
true; m_readerEndpoint = std::forward<ReaderEndpointT>(value); }
97 template<
typename ReaderEndpo
intT = Endpo
int>
107 template<
typename SlotsT = Aws::String>
108 void SetSlots(SlotsT&& value) { m_slotsHasBeenSet =
true; m_slots = std::forward<SlotsT>(value); }
109 template<
typename SlotsT = Aws::String>
120 template<
typename NodeGroupMembersT = Aws::Vector<NodeGroupMember>>
121 void SetNodeGroupMembers(NodeGroupMembersT&& value) { m_nodeGroupMembersHasBeenSet =
true; m_nodeGroupMembers = std::forward<NodeGroupMembersT>(value); }
122 template<
typename NodeGroupMembersT = Aws::Vector<NodeGroupMember>>
124 template<
typename NodeGroupMembersT = NodeGroupMember>
125 NodeGroup&
AddNodeGroupMembers(NodeGroupMembersT&& value) { m_nodeGroupMembersHasBeenSet =
true; m_nodeGroupMembers.emplace_back(std::forward<NodeGroupMembersT>(value));
return *
this; }
130 bool m_nodeGroupIdHasBeenSet =
false;
133 bool m_statusHasBeenSet =
false;
136 bool m_primaryEndpointHasBeenSet =
false;
139 bool m_readerEndpointHasBeenSet =
false;
142 bool m_slotsHasBeenSet =
false;
145 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