AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NodeGroup.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace ElastiCache
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_ELASTICACHE_API NodeGroup();
40 AWS_ELASTICACHE_API NodeGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_ELASTICACHE_API NodeGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
55 inline const Aws::String& GetNodeGroupId() const{ return m_nodeGroupId; }
56 inline bool NodeGroupIdHasBeenSet() const { return m_nodeGroupIdHasBeenSet; }
57 inline void SetNodeGroupId(const Aws::String& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = value; }
58 inline void SetNodeGroupId(Aws::String&& value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId = std::move(value); }
59 inline void SetNodeGroupId(const char* value) { m_nodeGroupIdHasBeenSet = true; m_nodeGroupId.assign(value); }
60 inline NodeGroup& WithNodeGroupId(const Aws::String& value) { SetNodeGroupId(value); return *this;}
61 inline NodeGroup& WithNodeGroupId(Aws::String&& value) { SetNodeGroupId(std::move(value)); return *this;}
62 inline NodeGroup& WithNodeGroupId(const char* value) { SetNodeGroupId(value); return *this;}
64
66
70 inline const Aws::String& GetStatus() const{ return m_status; }
71 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
72 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
73 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
74 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
75 inline NodeGroup& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
76 inline NodeGroup& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
77 inline NodeGroup& WithStatus(const char* value) { SetStatus(value); return *this;}
79
81
84 inline const Endpoint& GetPrimaryEndpoint() const{ return m_primaryEndpoint; }
85 inline bool PrimaryEndpointHasBeenSet() const { return m_primaryEndpointHasBeenSet; }
86 inline void SetPrimaryEndpoint(const Endpoint& value) { m_primaryEndpointHasBeenSet = true; m_primaryEndpoint = value; }
87 inline void SetPrimaryEndpoint(Endpoint&& value) { m_primaryEndpointHasBeenSet = true; m_primaryEndpoint = std::move(value); }
88 inline NodeGroup& WithPrimaryEndpoint(const Endpoint& value) { SetPrimaryEndpoint(value); return *this;}
89 inline NodeGroup& WithPrimaryEndpoint(Endpoint&& value) { SetPrimaryEndpoint(std::move(value)); return *this;}
91
93
97 inline const Endpoint& GetReaderEndpoint() const{ return m_readerEndpoint; }
98 inline bool ReaderEndpointHasBeenSet() const { return m_readerEndpointHasBeenSet; }
99 inline void SetReaderEndpoint(const Endpoint& value) { m_readerEndpointHasBeenSet = true; m_readerEndpoint = value; }
100 inline void SetReaderEndpoint(Endpoint&& value) { m_readerEndpointHasBeenSet = true; m_readerEndpoint = std::move(value); }
101 inline NodeGroup& WithReaderEndpoint(const Endpoint& value) { SetReaderEndpoint(value); return *this;}
102 inline NodeGroup& WithReaderEndpoint(Endpoint&& value) { SetReaderEndpoint(std::move(value)); return *this;}
104
106
109 inline const Aws::String& GetSlots() const{ return m_slots; }
110 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
111 inline void SetSlots(const Aws::String& value) { m_slotsHasBeenSet = true; m_slots = value; }
112 inline void SetSlots(Aws::String&& value) { m_slotsHasBeenSet = true; m_slots = std::move(value); }
113 inline void SetSlots(const char* value) { m_slotsHasBeenSet = true; m_slots.assign(value); }
114 inline NodeGroup& WithSlots(const Aws::String& value) { SetSlots(value); return *this;}
115 inline NodeGroup& WithSlots(Aws::String&& value) { SetSlots(std::move(value)); return *this;}
116 inline NodeGroup& WithSlots(const char* value) { SetSlots(value); return *this;}
118
120
124 inline const Aws::Vector<NodeGroupMember>& GetNodeGroupMembers() const{ return m_nodeGroupMembers; }
125 inline bool NodeGroupMembersHasBeenSet() const { return m_nodeGroupMembersHasBeenSet; }
126 inline void SetNodeGroupMembers(const Aws::Vector<NodeGroupMember>& value) { m_nodeGroupMembersHasBeenSet = true; m_nodeGroupMembers = value; }
127 inline void SetNodeGroupMembers(Aws::Vector<NodeGroupMember>&& value) { m_nodeGroupMembersHasBeenSet = true; m_nodeGroupMembers = std::move(value); }
129 inline NodeGroup& WithNodeGroupMembers(Aws::Vector<NodeGroupMember>&& value) { SetNodeGroupMembers(std::move(value)); return *this;}
130 inline NodeGroup& AddNodeGroupMembers(const NodeGroupMember& value) { m_nodeGroupMembersHasBeenSet = true; m_nodeGroupMembers.push_back(value); return *this; }
131 inline NodeGroup& AddNodeGroupMembers(NodeGroupMember&& value) { m_nodeGroupMembersHasBeenSet = true; m_nodeGroupMembers.push_back(std::move(value)); return *this; }
133 private:
134
135 Aws::String m_nodeGroupId;
136 bool m_nodeGroupIdHasBeenSet = false;
137
138 Aws::String m_status;
139 bool m_statusHasBeenSet = false;
140
141 Endpoint m_primaryEndpoint;
142 bool m_primaryEndpointHasBeenSet = false;
143
144 Endpoint m_readerEndpoint;
145 bool m_readerEndpointHasBeenSet = false;
146
147 Aws::String m_slots;
148 bool m_slotsHasBeenSet = false;
149
150 Aws::Vector<NodeGroupMember> m_nodeGroupMembers;
151 bool m_nodeGroupMembersHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace ElastiCache
156} // namespace Aws
NodeGroup & WithNodeGroupMembers(const Aws::Vector< NodeGroupMember > &value)
Definition NodeGroup.h:128
AWS_ELASTICACHE_API NodeGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Endpoint & GetPrimaryEndpoint() const
Definition NodeGroup.h:84
NodeGroup & WithReaderEndpoint(Endpoint &&value)
Definition NodeGroup.h:102
NodeGroup & WithNodeGroupId(const Aws::String &value)
Definition NodeGroup.h:60
void SetPrimaryEndpoint(const Endpoint &value)
Definition NodeGroup.h:86
NodeGroup & WithStatus(const char *value)
Definition NodeGroup.h:77
NodeGroup & WithStatus(Aws::String &&value)
Definition NodeGroup.h:76
void SetReaderEndpoint(Endpoint &&value)
Definition NodeGroup.h:100
void SetNodeGroupMembers(const Aws::Vector< NodeGroupMember > &value)
Definition NodeGroup.h:126
NodeGroup & AddNodeGroupMembers(NodeGroupMember &&value)
Definition NodeGroup.h:131
NodeGroup & WithSlots(Aws::String &&value)
Definition NodeGroup.h:115
void SetStatus(Aws::String &&value)
Definition NodeGroup.h:73
void SetNodeGroupId(const Aws::String &value)
Definition NodeGroup.h:57
void SetNodeGroupId(Aws::String &&value)
Definition NodeGroup.h:58
const Endpoint & GetReaderEndpoint() const
Definition NodeGroup.h:97
void SetStatus(const Aws::String &value)
Definition NodeGroup.h:72
NodeGroup & WithNodeGroupMembers(Aws::Vector< NodeGroupMember > &&value)
Definition NodeGroup.h:129
NodeGroup & WithReaderEndpoint(const Endpoint &value)
Definition NodeGroup.h:101
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NodeGroup & WithNodeGroupId(Aws::String &&value)
Definition NodeGroup.h:61
void SetNodeGroupMembers(Aws::Vector< NodeGroupMember > &&value)
Definition NodeGroup.h:127
void SetSlots(const char *value)
Definition NodeGroup.h:113
void SetStatus(const char *value)
Definition NodeGroup.h:74
NodeGroup & WithPrimaryEndpoint(Endpoint &&value)
Definition NodeGroup.h:89
const Aws::String & GetNodeGroupId() const
Definition NodeGroup.h:55
NodeGroup & WithStatus(const Aws::String &value)
Definition NodeGroup.h:75
NodeGroup & AddNodeGroupMembers(const NodeGroupMember &value)
Definition NodeGroup.h:130
AWS_ELASTICACHE_API NodeGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
NodeGroup & WithPrimaryEndpoint(const Endpoint &value)
Definition NodeGroup.h:88
AWS_ELASTICACHE_API NodeGroup()
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetSlots() const
Definition NodeGroup.h:109
const Aws::Vector< NodeGroupMember > & GetNodeGroupMembers() const
Definition NodeGroup.h:124
void SetPrimaryEndpoint(Endpoint &&value)
Definition NodeGroup.h:87
void SetSlots(const Aws::String &value)
Definition NodeGroup.h:111
void SetSlots(Aws::String &&value)
Definition NodeGroup.h:112
void SetReaderEndpoint(const Endpoint &value)
Definition NodeGroup.h:99
NodeGroup & WithNodeGroupId(const char *value)
Definition NodeGroup.h:62
void SetNodeGroupId(const char *value)
Definition NodeGroup.h:59
NodeGroup & WithSlots(const Aws::String &value)
Definition NodeGroup.h:114
const Aws::String & GetStatus() const
Definition NodeGroup.h:70
NodeGroup & WithSlots(const char *value)
Definition NodeGroup.h:116
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