AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GlobalReplicationGroup.h
1
6#pragma once
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/GlobalNodeGroup.h>
12#include <aws/elasticache/model/GlobalReplicationGroupMember.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElastiCache {
23namespace Model {
24
36 public:
37 AWS_ELASTICACHE_API GlobalReplicationGroup() = default;
38 AWS_ELASTICACHE_API GlobalReplicationGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICACHE_API GlobalReplicationGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
45
48 inline const Aws::String& GetGlobalReplicationGroupId() const { return m_globalReplicationGroupId; }
49 inline bool GlobalReplicationGroupIdHasBeenSet() const { return m_globalReplicationGroupIdHasBeenSet; }
50 template <typename GlobalReplicationGroupIdT = Aws::String>
51 void SetGlobalReplicationGroupId(GlobalReplicationGroupIdT&& value) {
52 m_globalReplicationGroupIdHasBeenSet = true;
53 m_globalReplicationGroupId = std::forward<GlobalReplicationGroupIdT>(value);
54 }
55 template <typename GlobalReplicationGroupIdT = Aws::String>
56 GlobalReplicationGroup& WithGlobalReplicationGroupId(GlobalReplicationGroupIdT&& value) {
57 SetGlobalReplicationGroupId(std::forward<GlobalReplicationGroupIdT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetGlobalReplicationGroupDescription() const { return m_globalReplicationGroupDescription; }
67 inline bool GlobalReplicationGroupDescriptionHasBeenSet() const { return m_globalReplicationGroupDescriptionHasBeenSet; }
68 template <typename GlobalReplicationGroupDescriptionT = Aws::String>
69 void SetGlobalReplicationGroupDescription(GlobalReplicationGroupDescriptionT&& value) {
70 m_globalReplicationGroupDescriptionHasBeenSet = true;
71 m_globalReplicationGroupDescription = std::forward<GlobalReplicationGroupDescriptionT>(value);
72 }
73 template <typename GlobalReplicationGroupDescriptionT = Aws::String>
74 GlobalReplicationGroup& WithGlobalReplicationGroupDescription(GlobalReplicationGroupDescriptionT&& value) {
75 SetGlobalReplicationGroupDescription(std::forward<GlobalReplicationGroupDescriptionT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetStatus() const { return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 template <typename StatusT = Aws::String>
87 void SetStatus(StatusT&& value) {
88 m_statusHasBeenSet = true;
89 m_status = std::forward<StatusT>(value);
90 }
91 template <typename StatusT = Aws::String>
93 SetStatus(std::forward<StatusT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetCacheNodeType() const { return m_cacheNodeType; }
103 inline bool CacheNodeTypeHasBeenSet() const { return m_cacheNodeTypeHasBeenSet; }
104 template <typename CacheNodeTypeT = Aws::String>
105 void SetCacheNodeType(CacheNodeTypeT&& value) {
106 m_cacheNodeTypeHasBeenSet = true;
107 m_cacheNodeType = std::forward<CacheNodeTypeT>(value);
108 }
109 template <typename CacheNodeTypeT = Aws::String>
110 GlobalReplicationGroup& WithCacheNodeType(CacheNodeTypeT&& value) {
111 SetCacheNodeType(std::forward<CacheNodeTypeT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetEngine() const { return m_engine; }
121 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
122 template <typename EngineT = Aws::String>
123 void SetEngine(EngineT&& value) {
124 m_engineHasBeenSet = true;
125 m_engine = std::forward<EngineT>(value);
126 }
127 template <typename EngineT = Aws::String>
129 SetEngine(std::forward<EngineT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
139 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
140 template <typename EngineVersionT = Aws::String>
141 void SetEngineVersion(EngineVersionT&& value) {
142 m_engineVersionHasBeenSet = true;
143 m_engineVersion = std::forward<EngineVersionT>(value);
144 }
145 template <typename EngineVersionT = Aws::String>
146 GlobalReplicationGroup& WithEngineVersion(EngineVersionT&& value) {
147 SetEngineVersion(std::forward<EngineVersionT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Vector<GlobalReplicationGroupMember>& GetMembers() const { return m_members; }
157 inline bool MembersHasBeenSet() const { return m_membersHasBeenSet; }
158 template <typename MembersT = Aws::Vector<GlobalReplicationGroupMember>>
159 void SetMembers(MembersT&& value) {
160 m_membersHasBeenSet = true;
161 m_members = std::forward<MembersT>(value);
162 }
163 template <typename MembersT = Aws::Vector<GlobalReplicationGroupMember>>
165 SetMembers(std::forward<MembersT>(value));
166 return *this;
167 }
168 template <typename MembersT = GlobalReplicationGroupMember>
170 m_membersHasBeenSet = true;
171 m_members.emplace_back(std::forward<MembersT>(value));
172 return *this;
173 }
175
177
180 inline bool GetClusterEnabled() const { return m_clusterEnabled; }
181 inline bool ClusterEnabledHasBeenSet() const { return m_clusterEnabledHasBeenSet; }
182 inline void SetClusterEnabled(bool value) {
183 m_clusterEnabledHasBeenSet = true;
184 m_clusterEnabled = value;
185 }
187 SetClusterEnabled(value);
188 return *this;
189 }
191
193
197 inline const Aws::Vector<GlobalNodeGroup>& GetGlobalNodeGroups() const { return m_globalNodeGroups; }
198 inline bool GlobalNodeGroupsHasBeenSet() const { return m_globalNodeGroupsHasBeenSet; }
199 template <typename GlobalNodeGroupsT = Aws::Vector<GlobalNodeGroup>>
200 void SetGlobalNodeGroups(GlobalNodeGroupsT&& value) {
201 m_globalNodeGroupsHasBeenSet = true;
202 m_globalNodeGroups = std::forward<GlobalNodeGroupsT>(value);
203 }
204 template <typename GlobalNodeGroupsT = Aws::Vector<GlobalNodeGroup>>
205 GlobalReplicationGroup& WithGlobalNodeGroups(GlobalNodeGroupsT&& value) {
206 SetGlobalNodeGroups(std::forward<GlobalNodeGroupsT>(value));
207 return *this;
208 }
209 template <typename GlobalNodeGroupsT = GlobalNodeGroup>
210 GlobalReplicationGroup& AddGlobalNodeGroups(GlobalNodeGroupsT&& value) {
211 m_globalNodeGroupsHasBeenSet = true;
212 m_globalNodeGroups.emplace_back(std::forward<GlobalNodeGroupsT>(value));
213 return *this;
214 }
216
218
222 inline bool GetAuthTokenEnabled() const { return m_authTokenEnabled; }
223 inline bool AuthTokenEnabledHasBeenSet() const { return m_authTokenEnabledHasBeenSet; }
224 inline void SetAuthTokenEnabled(bool value) {
225 m_authTokenEnabledHasBeenSet = true;
226 m_authTokenEnabled = value;
227 }
229 SetAuthTokenEnabled(value);
230 return *this;
231 }
233
235
240 inline bool GetTransitEncryptionEnabled() const { return m_transitEncryptionEnabled; }
241 inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
242 inline void SetTransitEncryptionEnabled(bool value) {
243 m_transitEncryptionEnabledHasBeenSet = true;
244 m_transitEncryptionEnabled = value;
245 }
248 return *this;
249 }
251
253
262 inline bool GetAtRestEncryptionEnabled() const { return m_atRestEncryptionEnabled; }
263 inline bool AtRestEncryptionEnabledHasBeenSet() const { return m_atRestEncryptionEnabledHasBeenSet; }
264 inline void SetAtRestEncryptionEnabled(bool value) {
265 m_atRestEncryptionEnabledHasBeenSet = true;
266 m_atRestEncryptionEnabled = value;
267 }
270 return *this;
271 }
273
275
278 inline const Aws::String& GetARN() const { return m_aRN; }
279 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
280 template <typename ARNT = Aws::String>
281 void SetARN(ARNT&& value) {
282 m_aRNHasBeenSet = true;
283 m_aRN = std::forward<ARNT>(value);
284 }
285 template <typename ARNT = Aws::String>
287 SetARN(std::forward<ARNT>(value));
288 return *this;
289 }
291 private:
292 Aws::String m_globalReplicationGroupId;
293
294 Aws::String m_globalReplicationGroupDescription;
295
296 Aws::String m_status;
297
298 Aws::String m_cacheNodeType;
299
300 Aws::String m_engine;
301
302 Aws::String m_engineVersion;
303
305
306 bool m_clusterEnabled{false};
307
308 Aws::Vector<GlobalNodeGroup> m_globalNodeGroups;
309
310 bool m_authTokenEnabled{false};
311
312 bool m_transitEncryptionEnabled{false};
313
314 bool m_atRestEncryptionEnabled{false};
315
316 Aws::String m_aRN;
317 bool m_globalReplicationGroupIdHasBeenSet = false;
318 bool m_globalReplicationGroupDescriptionHasBeenSet = false;
319 bool m_statusHasBeenSet = false;
320 bool m_cacheNodeTypeHasBeenSet = false;
321 bool m_engineHasBeenSet = false;
322 bool m_engineVersionHasBeenSet = false;
323 bool m_membersHasBeenSet = false;
324 bool m_clusterEnabledHasBeenSet = false;
325 bool m_globalNodeGroupsHasBeenSet = false;
326 bool m_authTokenEnabledHasBeenSet = false;
327 bool m_transitEncryptionEnabledHasBeenSet = false;
328 bool m_atRestEncryptionEnabledHasBeenSet = false;
329 bool m_aRNHasBeenSet = false;
330};
331
332} // namespace Model
333} // namespace ElastiCache
334} // namespace Aws
GlobalReplicationGroup & WithGlobalReplicationGroupId(GlobalReplicationGroupIdT &&value)
void SetGlobalReplicationGroupId(GlobalReplicationGroupIdT &&value)
AWS_ELASTICACHE_API GlobalReplicationGroup()=default
GlobalReplicationGroup & WithGlobalNodeGroups(GlobalNodeGroupsT &&value)
GlobalReplicationGroup & WithAuthTokenEnabled(bool value)
AWS_ELASTICACHE_API GlobalReplicationGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
GlobalReplicationGroup & AddMembers(MembersT &&value)
GlobalReplicationGroup & WithMembers(MembersT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICACHE_API GlobalReplicationGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< GlobalReplicationGroupMember > & GetMembers() const
GlobalReplicationGroup & WithCacheNodeType(CacheNodeTypeT &&value)
GlobalReplicationGroup & WithGlobalReplicationGroupDescription(GlobalReplicationGroupDescriptionT &&value)
const Aws::String & GetGlobalReplicationGroupDescription() const
GlobalReplicationGroup & AddGlobalNodeGroups(GlobalNodeGroupsT &&value)
GlobalReplicationGroup & WithStatus(StatusT &&value)
GlobalReplicationGroup & WithClusterEnabled(bool value)
GlobalReplicationGroup & WithTransitEncryptionEnabled(bool value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetGlobalReplicationGroupDescription(GlobalReplicationGroupDescriptionT &&value)
GlobalReplicationGroup & WithEngineVersion(EngineVersionT &&value)
GlobalReplicationGroup & WithARN(ARNT &&value)
const Aws::Vector< GlobalNodeGroup > & GetGlobalNodeGroups() const
GlobalReplicationGroup & WithAtRestEncryptionEnabled(bool value)
GlobalReplicationGroup & WithEngine(EngineT &&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