AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename GlobalReplicationGroupIdT = Aws::String>
57 void SetGlobalReplicationGroupId(GlobalReplicationGroupIdT&& value) { m_globalReplicationGroupIdHasBeenSet = true; m_globalReplicationGroupId = std::forward<GlobalReplicationGroupIdT>(value); }
58 template<typename GlobalReplicationGroupIdT = Aws::String>
59 GlobalReplicationGroup& WithGlobalReplicationGroupId(GlobalReplicationGroupIdT&& value) { SetGlobalReplicationGroupId(std::forward<GlobalReplicationGroupIdT>(value)); return *this;}
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) { m_globalReplicationGroupDescriptionHasBeenSet = true; m_globalReplicationGroupDescription = std::forward<GlobalReplicationGroupDescriptionT>(value); }
70 template<typename GlobalReplicationGroupDescriptionT = Aws::String>
71 GlobalReplicationGroup& WithGlobalReplicationGroupDescription(GlobalReplicationGroupDescriptionT&& value) { SetGlobalReplicationGroupDescription(std::forward<GlobalReplicationGroupDescriptionT>(value)); return *this;}
73
75
78 inline const Aws::String& GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 template<typename StatusT = Aws::String>
81 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
82 template<typename StatusT = Aws::String>
83 GlobalReplicationGroup& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
85
87
90 inline const Aws::String& GetCacheNodeType() const { return m_cacheNodeType; }
91 inline bool CacheNodeTypeHasBeenSet() const { return m_cacheNodeTypeHasBeenSet; }
92 template<typename CacheNodeTypeT = Aws::String>
93 void SetCacheNodeType(CacheNodeTypeT&& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = std::forward<CacheNodeTypeT>(value); }
94 template<typename CacheNodeTypeT = Aws::String>
95 GlobalReplicationGroup& WithCacheNodeType(CacheNodeTypeT&& value) { SetCacheNodeType(std::forward<CacheNodeTypeT>(value)); return *this;}
97
99
102 inline const Aws::String& GetEngine() const { return m_engine; }
103 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
104 template<typename EngineT = Aws::String>
105 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
106 template<typename EngineT = Aws::String>
107 GlobalReplicationGroup& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
109
111
114 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
115 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
116 template<typename EngineVersionT = Aws::String>
117 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
118 template<typename EngineVersionT = Aws::String>
119 GlobalReplicationGroup& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
121
123
126 inline const Aws::Vector<GlobalReplicationGroupMember>& GetMembers() const { return m_members; }
127 inline bool MembersHasBeenSet() const { return m_membersHasBeenSet; }
128 template<typename MembersT = Aws::Vector<GlobalReplicationGroupMember>>
129 void SetMembers(MembersT&& value) { m_membersHasBeenSet = true; m_members = std::forward<MembersT>(value); }
130 template<typename MembersT = Aws::Vector<GlobalReplicationGroupMember>>
131 GlobalReplicationGroup& WithMembers(MembersT&& value) { SetMembers(std::forward<MembersT>(value)); return *this;}
132 template<typename MembersT = GlobalReplicationGroupMember>
133 GlobalReplicationGroup& AddMembers(MembersT&& value) { m_membersHasBeenSet = true; m_members.emplace_back(std::forward<MembersT>(value)); return *this; }
135
137
140 inline bool GetClusterEnabled() const { return m_clusterEnabled; }
141 inline bool ClusterEnabledHasBeenSet() const { return m_clusterEnabledHasBeenSet; }
142 inline void SetClusterEnabled(bool value) { m_clusterEnabledHasBeenSet = true; m_clusterEnabled = value; }
143 inline GlobalReplicationGroup& WithClusterEnabled(bool value) { SetClusterEnabled(value); return *this;}
145
147
151 inline const Aws::Vector<GlobalNodeGroup>& GetGlobalNodeGroups() const { return m_globalNodeGroups; }
152 inline bool GlobalNodeGroupsHasBeenSet() const { return m_globalNodeGroupsHasBeenSet; }
153 template<typename GlobalNodeGroupsT = Aws::Vector<GlobalNodeGroup>>
154 void SetGlobalNodeGroups(GlobalNodeGroupsT&& value) { m_globalNodeGroupsHasBeenSet = true; m_globalNodeGroups = std::forward<GlobalNodeGroupsT>(value); }
155 template<typename GlobalNodeGroupsT = Aws::Vector<GlobalNodeGroup>>
156 GlobalReplicationGroup& WithGlobalNodeGroups(GlobalNodeGroupsT&& value) { SetGlobalNodeGroups(std::forward<GlobalNodeGroupsT>(value)); return *this;}
157 template<typename GlobalNodeGroupsT = GlobalNodeGroup>
158 GlobalReplicationGroup& AddGlobalNodeGroups(GlobalNodeGroupsT&& value) { m_globalNodeGroupsHasBeenSet = true; m_globalNodeGroups.emplace_back(std::forward<GlobalNodeGroupsT>(value)); return *this; }
160
162
166 inline bool GetAuthTokenEnabled() const { return m_authTokenEnabled; }
167 inline bool AuthTokenEnabledHasBeenSet() const { return m_authTokenEnabledHasBeenSet; }
168 inline void SetAuthTokenEnabled(bool value) { m_authTokenEnabledHasBeenSet = true; m_authTokenEnabled = value; }
169 inline GlobalReplicationGroup& WithAuthTokenEnabled(bool value) { SetAuthTokenEnabled(value); return *this;}
171
173
178 inline bool GetTransitEncryptionEnabled() const { return m_transitEncryptionEnabled; }
179 inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
180 inline void SetTransitEncryptionEnabled(bool value) { m_transitEncryptionEnabledHasBeenSet = true; m_transitEncryptionEnabled = value; }
183
185
194 inline bool GetAtRestEncryptionEnabled() const { return m_atRestEncryptionEnabled; }
195 inline bool AtRestEncryptionEnabledHasBeenSet() const { return m_atRestEncryptionEnabledHasBeenSet; }
196 inline void SetAtRestEncryptionEnabled(bool value) { m_atRestEncryptionEnabledHasBeenSet = true; m_atRestEncryptionEnabled = value; }
199
201
204 inline const Aws::String& GetARN() const { return m_aRN; }
205 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
206 template<typename ARNT = Aws::String>
207 void SetARN(ARNT&& value) { m_aRNHasBeenSet = true; m_aRN = std::forward<ARNT>(value); }
208 template<typename ARNT = Aws::String>
209 GlobalReplicationGroup& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
211 private:
212
213 Aws::String m_globalReplicationGroupId;
214 bool m_globalReplicationGroupIdHasBeenSet = false;
215
216 Aws::String m_globalReplicationGroupDescription;
217 bool m_globalReplicationGroupDescriptionHasBeenSet = false;
218
219 Aws::String m_status;
220 bool m_statusHasBeenSet = false;
221
222 Aws::String m_cacheNodeType;
223 bool m_cacheNodeTypeHasBeenSet = false;
224
225 Aws::String m_engine;
226 bool m_engineHasBeenSet = false;
227
228 Aws::String m_engineVersion;
229 bool m_engineVersionHasBeenSet = false;
230
232 bool m_membersHasBeenSet = false;
233
234 bool m_clusterEnabled{false};
235 bool m_clusterEnabledHasBeenSet = false;
236
237 Aws::Vector<GlobalNodeGroup> m_globalNodeGroups;
238 bool m_globalNodeGroupsHasBeenSet = false;
239
240 bool m_authTokenEnabled{false};
241 bool m_authTokenEnabledHasBeenSet = false;
242
243 bool m_transitEncryptionEnabled{false};
244 bool m_transitEncryptionEnabledHasBeenSet = false;
245
246 bool m_atRestEncryptionEnabled{false};
247 bool m_atRestEncryptionEnabledHasBeenSet = false;
248
249 Aws::String m_aRN;
250 bool m_aRNHasBeenSet = false;
251 };
252
253} // namespace Model
254} // namespace ElastiCache
255} // 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