AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GlobalReplicationGroup.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/model/GlobalReplicationGroupMember.h>
12#include <aws/elasticache/model/GlobalNodeGroup.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
40 {
41 public:
42 AWS_ELASTICACHE_API GlobalReplicationGroup();
43 AWS_ELASTICACHE_API GlobalReplicationGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_ELASTICACHE_API GlobalReplicationGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
54 inline const Aws::String& GetGlobalReplicationGroupId() const{ return m_globalReplicationGroupId; }
55 inline bool GlobalReplicationGroupIdHasBeenSet() const { return m_globalReplicationGroupIdHasBeenSet; }
56 inline void SetGlobalReplicationGroupId(const Aws::String& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = value; }
57 inline void SetGlobalReplicationGroupId(Aws::String&& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = std::move(value); }
58 inline void SetGlobalReplicationGroupId(const char* value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId.assign(value); }
61 inline GlobalReplicationGroup& WithGlobalReplicationGroupId(const char* value) { SetGlobalReplicationGroupId(value); return *this;}
63
65
68 inline const Aws::String& GetGlobalReplicationGroupDescription() const{ return m_globalReplicationGroupDescription; }
69 inline bool GlobalReplicationGroupDescriptionHasBeenSet() const { return m_globalReplicationGroupDescriptionHasBeenSet; }
70 inline void SetGlobalReplicationGroupDescription(const Aws::String& value) { m_globalReplicationGroupDescriptionHasBeenSet = true; m_globalReplicationGroupDescription = value; }
71 inline void SetGlobalReplicationGroupDescription(Aws::String&& value) { m_globalReplicationGroupDescriptionHasBeenSet = true; m_globalReplicationGroupDescription = std::move(value); }
72 inline void SetGlobalReplicationGroupDescription(const char* value) { m_globalReplicationGroupDescriptionHasBeenSet = true; m_globalReplicationGroupDescription.assign(value); }
77
79
82 inline const Aws::String& GetStatus() const{ return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
85 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
86 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
87 inline GlobalReplicationGroup& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
88 inline GlobalReplicationGroup& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
89 inline GlobalReplicationGroup& WithStatus(const char* value) { SetStatus(value); return *this;}
91
93
96 inline const Aws::String& GetCacheNodeType() const{ return m_cacheNodeType; }
97 inline bool CacheNodeTypeHasBeenSet() const { return m_cacheNodeTypeHasBeenSet; }
98 inline void SetCacheNodeType(const Aws::String& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = value; }
99 inline void SetCacheNodeType(Aws::String&& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = std::move(value); }
100 inline void SetCacheNodeType(const char* value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType.assign(value); }
101 inline GlobalReplicationGroup& WithCacheNodeType(const Aws::String& value) { SetCacheNodeType(value); return *this;}
102 inline GlobalReplicationGroup& WithCacheNodeType(Aws::String&& value) { SetCacheNodeType(std::move(value)); return *this;}
103 inline GlobalReplicationGroup& WithCacheNodeType(const char* value) { SetCacheNodeType(value); return *this;}
105
107
110 inline const Aws::String& GetEngine() const{ return m_engine; }
111 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
112 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
113 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
114 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
115 inline GlobalReplicationGroup& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
116 inline GlobalReplicationGroup& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
117 inline GlobalReplicationGroup& WithEngine(const char* value) { SetEngine(value); return *this;}
119
121
124 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
125 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
126 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
127 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
128 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
129 inline GlobalReplicationGroup& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
130 inline GlobalReplicationGroup& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
131 inline GlobalReplicationGroup& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
133
135
138 inline const Aws::Vector<GlobalReplicationGroupMember>& GetMembers() const{ return m_members; }
139 inline bool MembersHasBeenSet() const { return m_membersHasBeenSet; }
140 inline void SetMembers(const Aws::Vector<GlobalReplicationGroupMember>& value) { m_membersHasBeenSet = true; m_members = value; }
141 inline void SetMembers(Aws::Vector<GlobalReplicationGroupMember>&& value) { m_membersHasBeenSet = true; m_members = std::move(value); }
144 inline GlobalReplicationGroup& AddMembers(const GlobalReplicationGroupMember& value) { m_membersHasBeenSet = true; m_members.push_back(value); return *this; }
145 inline GlobalReplicationGroup& AddMembers(GlobalReplicationGroupMember&& value) { m_membersHasBeenSet = true; m_members.push_back(std::move(value)); return *this; }
147
149
152 inline bool GetClusterEnabled() const{ return m_clusterEnabled; }
153 inline bool ClusterEnabledHasBeenSet() const { return m_clusterEnabledHasBeenSet; }
154 inline void SetClusterEnabled(bool value) { m_clusterEnabledHasBeenSet = true; m_clusterEnabled = value; }
155 inline GlobalReplicationGroup& WithClusterEnabled(bool value) { SetClusterEnabled(value); return *this;}
157
159
163 inline const Aws::Vector<GlobalNodeGroup>& GetGlobalNodeGroups() const{ return m_globalNodeGroups; }
164 inline bool GlobalNodeGroupsHasBeenSet() const { return m_globalNodeGroupsHasBeenSet; }
165 inline void SetGlobalNodeGroups(const Aws::Vector<GlobalNodeGroup>& value) { m_globalNodeGroupsHasBeenSet = true; m_globalNodeGroups = value; }
166 inline void SetGlobalNodeGroups(Aws::Vector<GlobalNodeGroup>&& value) { m_globalNodeGroupsHasBeenSet = true; m_globalNodeGroups = std::move(value); }
169 inline GlobalReplicationGroup& AddGlobalNodeGroups(const GlobalNodeGroup& value) { m_globalNodeGroupsHasBeenSet = true; m_globalNodeGroups.push_back(value); return *this; }
170 inline GlobalReplicationGroup& AddGlobalNodeGroups(GlobalNodeGroup&& value) { m_globalNodeGroupsHasBeenSet = true; m_globalNodeGroups.push_back(std::move(value)); return *this; }
172
174
178 inline bool GetAuthTokenEnabled() const{ return m_authTokenEnabled; }
179 inline bool AuthTokenEnabledHasBeenSet() const { return m_authTokenEnabledHasBeenSet; }
180 inline void SetAuthTokenEnabled(bool value) { m_authTokenEnabledHasBeenSet = true; m_authTokenEnabled = value; }
181 inline GlobalReplicationGroup& WithAuthTokenEnabled(bool value) { SetAuthTokenEnabled(value); return *this;}
183
185
190 inline bool GetTransitEncryptionEnabled() const{ return m_transitEncryptionEnabled; }
191 inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
192 inline void SetTransitEncryptionEnabled(bool value) { m_transitEncryptionEnabledHasBeenSet = true; m_transitEncryptionEnabled = value; }
195
197
206 inline bool GetAtRestEncryptionEnabled() const{ return m_atRestEncryptionEnabled; }
207 inline bool AtRestEncryptionEnabledHasBeenSet() const { return m_atRestEncryptionEnabledHasBeenSet; }
208 inline void SetAtRestEncryptionEnabled(bool value) { m_atRestEncryptionEnabledHasBeenSet = true; m_atRestEncryptionEnabled = value; }
211
213
216 inline const Aws::String& GetARN() const{ return m_aRN; }
217 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
218 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
219 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
220 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
221 inline GlobalReplicationGroup& WithARN(const Aws::String& value) { SetARN(value); return *this;}
222 inline GlobalReplicationGroup& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
223 inline GlobalReplicationGroup& WithARN(const char* value) { SetARN(value); return *this;}
225 private:
226
227 Aws::String m_globalReplicationGroupId;
228 bool m_globalReplicationGroupIdHasBeenSet = false;
229
230 Aws::String m_globalReplicationGroupDescription;
231 bool m_globalReplicationGroupDescriptionHasBeenSet = false;
232
233 Aws::String m_status;
234 bool m_statusHasBeenSet = false;
235
236 Aws::String m_cacheNodeType;
237 bool m_cacheNodeTypeHasBeenSet = false;
238
239 Aws::String m_engine;
240 bool m_engineHasBeenSet = false;
241
242 Aws::String m_engineVersion;
243 bool m_engineVersionHasBeenSet = false;
244
246 bool m_membersHasBeenSet = false;
247
248 bool m_clusterEnabled;
249 bool m_clusterEnabledHasBeenSet = false;
250
251 Aws::Vector<GlobalNodeGroup> m_globalNodeGroups;
252 bool m_globalNodeGroupsHasBeenSet = false;
253
254 bool m_authTokenEnabled;
255 bool m_authTokenEnabledHasBeenSet = false;
256
257 bool m_transitEncryptionEnabled;
258 bool m_transitEncryptionEnabledHasBeenSet = false;
259
260 bool m_atRestEncryptionEnabled;
261 bool m_atRestEncryptionEnabledHasBeenSet = false;
262
263 Aws::String m_aRN;
264 bool m_aRNHasBeenSet = false;
265 };
266
267} // namespace Model
268} // namespace ElastiCache
269} // namespace Aws
GlobalReplicationGroup & WithGlobalReplicationGroupId(const char *value)
void SetMembers(Aws::Vector< GlobalReplicationGroupMember > &&value)
void SetGlobalReplicationGroupId(const Aws::String &value)
GlobalReplicationGroup & WithAuthTokenEnabled(bool value)
GlobalReplicationGroup & WithEngineVersion(const Aws::String &value)
GlobalReplicationGroup & AddMembers(const GlobalReplicationGroupMember &value)
GlobalReplicationGroup & WithEngineVersion(const char *value)
void SetGlobalNodeGroups(const Aws::Vector< GlobalNodeGroup > &value)
AWS_ELASTICACHE_API GlobalReplicationGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
GlobalReplicationGroup & WithGlobalReplicationGroupId(Aws::String &&value)
GlobalReplicationGroup & WithARN(const Aws::String &value)
void SetMembers(const Aws::Vector< GlobalReplicationGroupMember > &value)
GlobalReplicationGroup & WithEngine(Aws::String &&value)
GlobalReplicationGroup & WithARN(Aws::String &&value)
void SetGlobalNodeGroups(Aws::Vector< GlobalNodeGroup > &&value)
GlobalReplicationGroup & WithGlobalReplicationGroupDescription(const Aws::String &value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
GlobalReplicationGroup & WithGlobalNodeGroups(Aws::Vector< GlobalNodeGroup > &&value)
AWS_ELASTICACHE_API GlobalReplicationGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< GlobalReplicationGroupMember > & GetMembers() const
GlobalReplicationGroup & WithARN(const char *value)
GlobalReplicationGroup & AddMembers(GlobalReplicationGroupMember &&value)
const Aws::String & GetGlobalReplicationGroupDescription() const
GlobalReplicationGroup & WithEngineVersion(Aws::String &&value)
GlobalReplicationGroup & WithEngine(const Aws::String &value)
GlobalReplicationGroup & WithGlobalReplicationGroupDescription(const char *value)
GlobalReplicationGroup & AddGlobalNodeGroups(const GlobalNodeGroup &value)
GlobalReplicationGroup & WithStatus(Aws::String &&value)
GlobalReplicationGroup & WithClusterEnabled(bool value)
GlobalReplicationGroup & WithCacheNodeType(Aws::String &&value)
GlobalReplicationGroup & AddGlobalNodeGroups(GlobalNodeGroup &&value)
GlobalReplicationGroup & WithMembers(const Aws::Vector< GlobalReplicationGroupMember > &value)
GlobalReplicationGroup & WithStatus(const Aws::String &value)
GlobalReplicationGroup & WithTransitEncryptionEnabled(bool value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
GlobalReplicationGroup & WithCacheNodeType(const char *value)
void SetGlobalReplicationGroupDescription(const Aws::String &value)
GlobalReplicationGroup & WithMembers(Aws::Vector< GlobalReplicationGroupMember > &&value)
GlobalReplicationGroup & WithEngine(const char *value)
const Aws::Vector< GlobalNodeGroup > & GetGlobalNodeGroups() const
GlobalReplicationGroup & WithGlobalReplicationGroupId(const Aws::String &value)
GlobalReplicationGroup & WithStatus(const char *value)
GlobalReplicationGroup & WithGlobalNodeGroups(const Aws::Vector< GlobalNodeGroup > &value)
GlobalReplicationGroup & WithAtRestEncryptionEnabled(bool value)
GlobalReplicationGroup & WithCacheNodeType(const Aws::String &value)
GlobalReplicationGroup & WithGlobalReplicationGroupDescription(Aws::String &&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