AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GlobalCluster.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/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/FailoverState.h>
12#include <aws/rds/model/GlobalClusterMember.h>
13#include <aws/rds/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace RDS {
24namespace Model {
25
33 public:
34 AWS_RDS_API GlobalCluster() = default;
35 AWS_RDS_API GlobalCluster(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_RDS_API GlobalCluster& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
46 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
47 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
48 template <typename GlobalClusterIdentifierT = Aws::String>
49 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
50 m_globalClusterIdentifierHasBeenSet = true;
51 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
52 }
53 template <typename GlobalClusterIdentifierT = Aws::String>
54 GlobalCluster& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
55 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
56 return *this;
57 }
59
61
68 inline const Aws::String& GetGlobalClusterResourceId() const { return m_globalClusterResourceId; }
69 inline bool GlobalClusterResourceIdHasBeenSet() const { return m_globalClusterResourceIdHasBeenSet; }
70 template <typename GlobalClusterResourceIdT = Aws::String>
71 void SetGlobalClusterResourceId(GlobalClusterResourceIdT&& value) {
72 m_globalClusterResourceIdHasBeenSet = true;
73 m_globalClusterResourceId = std::forward<GlobalClusterResourceIdT>(value);
74 }
75 template <typename GlobalClusterResourceIdT = Aws::String>
76 GlobalCluster& WithGlobalClusterResourceId(GlobalClusterResourceIdT&& value) {
77 SetGlobalClusterResourceId(std::forward<GlobalClusterResourceIdT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetGlobalClusterArn() const { return m_globalClusterArn; }
87 inline bool GlobalClusterArnHasBeenSet() const { return m_globalClusterArnHasBeenSet; }
88 template <typename GlobalClusterArnT = Aws::String>
89 void SetGlobalClusterArn(GlobalClusterArnT&& value) {
90 m_globalClusterArnHasBeenSet = true;
91 m_globalClusterArn = std::forward<GlobalClusterArnT>(value);
92 }
93 template <typename GlobalClusterArnT = Aws::String>
94 GlobalCluster& WithGlobalClusterArn(GlobalClusterArnT&& value) {
95 SetGlobalClusterArn(std::forward<GlobalClusterArnT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetStatus() const { return m_status; }
105 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
106 template <typename StatusT = Aws::String>
107 void SetStatus(StatusT&& value) {
108 m_statusHasBeenSet = true;
109 m_status = std::forward<StatusT>(value);
110 }
111 template <typename StatusT = Aws::String>
112 GlobalCluster& WithStatus(StatusT&& value) {
113 SetStatus(std::forward<StatusT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetEngine() const { return m_engine; }
123 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
124 template <typename EngineT = Aws::String>
125 void SetEngine(EngineT&& value) {
126 m_engineHasBeenSet = true;
127 m_engine = std::forward<EngineT>(value);
128 }
129 template <typename EngineT = Aws::String>
130 GlobalCluster& WithEngine(EngineT&& value) {
131 SetEngine(std::forward<EngineT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
141 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
142 template <typename EngineVersionT = Aws::String>
143 void SetEngineVersion(EngineVersionT&& value) {
144 m_engineVersionHasBeenSet = true;
145 m_engineVersion = std::forward<EngineVersionT>(value);
146 }
147 template <typename EngineVersionT = Aws::String>
148 GlobalCluster& WithEngineVersion(EngineVersionT&& value) {
149 SetEngineVersion(std::forward<EngineVersionT>(value));
150 return *this;
151 }
153
155
159 inline const Aws::String& GetEngineLifecycleSupport() const { return m_engineLifecycleSupport; }
160 inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; }
161 template <typename EngineLifecycleSupportT = Aws::String>
162 void SetEngineLifecycleSupport(EngineLifecycleSupportT&& value) {
163 m_engineLifecycleSupportHasBeenSet = true;
164 m_engineLifecycleSupport = std::forward<EngineLifecycleSupportT>(value);
165 }
166 template <typename EngineLifecycleSupportT = Aws::String>
167 GlobalCluster& WithEngineLifecycleSupport(EngineLifecycleSupportT&& value) {
168 SetEngineLifecycleSupport(std::forward<EngineLifecycleSupportT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
178 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
179 template <typename DatabaseNameT = Aws::String>
180 void SetDatabaseName(DatabaseNameT&& value) {
181 m_databaseNameHasBeenSet = true;
182 m_databaseName = std::forward<DatabaseNameT>(value);
183 }
184 template <typename DatabaseNameT = Aws::String>
185 GlobalCluster& WithDatabaseName(DatabaseNameT&& value) {
186 SetDatabaseName(std::forward<DatabaseNameT>(value));
187 return *this;
188 }
190
192
195 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
196 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
197 inline void SetStorageEncrypted(bool value) {
198 m_storageEncryptedHasBeenSet = true;
199 m_storageEncrypted = value;
200 }
202 SetStorageEncrypted(value);
203 return *this;
204 }
206
208
211 inline bool GetDeletionProtection() const { return m_deletionProtection; }
212 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
213 inline void SetDeletionProtection(bool value) {
214 m_deletionProtectionHasBeenSet = true;
215 m_deletionProtection = value;
216 }
219 return *this;
220 }
222
224
228 inline const Aws::Vector<GlobalClusterMember>& GetGlobalClusterMembers() const { return m_globalClusterMembers; }
229 inline bool GlobalClusterMembersHasBeenSet() const { return m_globalClusterMembersHasBeenSet; }
230 template <typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
231 void SetGlobalClusterMembers(GlobalClusterMembersT&& value) {
232 m_globalClusterMembersHasBeenSet = true;
233 m_globalClusterMembers = std::forward<GlobalClusterMembersT>(value);
234 }
235 template <typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
236 GlobalCluster& WithGlobalClusterMembers(GlobalClusterMembersT&& value) {
237 SetGlobalClusterMembers(std::forward<GlobalClusterMembersT>(value));
238 return *this;
239 }
240 template <typename GlobalClusterMembersT = GlobalClusterMember>
241 GlobalCluster& AddGlobalClusterMembers(GlobalClusterMembersT&& value) {
242 m_globalClusterMembersHasBeenSet = true;
243 m_globalClusterMembers.emplace_back(std::forward<GlobalClusterMembersT>(value));
244 return *this;
245 }
247
249
253 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
254 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
255 template <typename EndpointT = Aws::String>
256 void SetEndpoint(EndpointT&& value) {
257 m_endpointHasBeenSet = true;
258 m_endpoint = std::forward<EndpointT>(value);
259 }
260 template <typename EndpointT = Aws::String>
261 GlobalCluster& WithEndpoint(EndpointT&& value) {
262 SetEndpoint(std::forward<EndpointT>(value));
263 return *this;
264 }
266
268
275 inline const FailoverState& GetFailoverState() const { return m_failoverState; }
276 inline bool FailoverStateHasBeenSet() const { return m_failoverStateHasBeenSet; }
277 template <typename FailoverStateT = FailoverState>
278 void SetFailoverState(FailoverStateT&& value) {
279 m_failoverStateHasBeenSet = true;
280 m_failoverState = std::forward<FailoverStateT>(value);
281 }
282 template <typename FailoverStateT = FailoverState>
283 GlobalCluster& WithFailoverState(FailoverStateT&& value) {
284 SetFailoverState(std::forward<FailoverStateT>(value));
285 return *this;
286 }
288
290
291 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
292 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
293 template <typename TagListT = Aws::Vector<Tag>>
294 void SetTagList(TagListT&& value) {
295 m_tagListHasBeenSet = true;
296 m_tagList = std::forward<TagListT>(value);
297 }
298 template <typename TagListT = Aws::Vector<Tag>>
299 GlobalCluster& WithTagList(TagListT&& value) {
300 SetTagList(std::forward<TagListT>(value));
301 return *this;
302 }
303 template <typename TagListT = Tag>
304 GlobalCluster& AddTagList(TagListT&& value) {
305 m_tagListHasBeenSet = true;
306 m_tagList.emplace_back(std::forward<TagListT>(value));
307 return *this;
308 }
310 private:
311 Aws::String m_globalClusterIdentifier;
312
313 Aws::String m_globalClusterResourceId;
314
315 Aws::String m_globalClusterArn;
316
317 Aws::String m_status;
318
319 Aws::String m_engine;
320
321 Aws::String m_engineVersion;
322
323 Aws::String m_engineLifecycleSupport;
324
325 Aws::String m_databaseName;
326
327 bool m_storageEncrypted{false};
328
329 bool m_deletionProtection{false};
330
331 Aws::Vector<GlobalClusterMember> m_globalClusterMembers;
332
333 Aws::String m_endpoint;
334
335 FailoverState m_failoverState;
336
337 Aws::Vector<Tag> m_tagList;
338 bool m_globalClusterIdentifierHasBeenSet = false;
339 bool m_globalClusterResourceIdHasBeenSet = false;
340 bool m_globalClusterArnHasBeenSet = false;
341 bool m_statusHasBeenSet = false;
342 bool m_engineHasBeenSet = false;
343 bool m_engineVersionHasBeenSet = false;
344 bool m_engineLifecycleSupportHasBeenSet = false;
345 bool m_databaseNameHasBeenSet = false;
346 bool m_storageEncryptedHasBeenSet = false;
347 bool m_deletionProtectionHasBeenSet = false;
348 bool m_globalClusterMembersHasBeenSet = false;
349 bool m_endpointHasBeenSet = false;
350 bool m_failoverStateHasBeenSet = false;
351 bool m_tagListHasBeenSet = false;
352};
353
354} // namespace Model
355} // namespace RDS
356} // namespace Aws
void SetEngineLifecycleSupport(EngineLifecycleSupportT &&value)
void SetDeletionProtection(bool value)
const Aws::String & GetDatabaseName() const
GlobalCluster & WithStatus(StatusT &&value)
const Aws::String & GetGlobalClusterArn() const
GlobalCluster & WithDatabaseName(DatabaseNameT &&value)
void SetFailoverState(FailoverStateT &&value)
void SetGlobalClusterArn(GlobalClusterArnT &&value)
const Aws::String & GetEngineLifecycleSupport() const
AWS_RDS_API GlobalCluster(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetStatus() const
const Aws::String & GetGlobalClusterIdentifier() const
const Aws::Vector< Tag > & GetTagList() const
void SetGlobalClusterResourceId(GlobalClusterResourceIdT &&value)
void SetTagList(TagListT &&value)
void SetStorageEncrypted(bool value)
void SetEngine(EngineT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
const Aws::String & GetGlobalClusterResourceId() const
const Aws::String & GetEndpoint() const
AWS_RDS_API GlobalCluster()=default
void SetGlobalClusterMembers(GlobalClusterMembersT &&value)
GlobalCluster & AddGlobalClusterMembers(GlobalClusterMembersT &&value)
const Aws::Vector< GlobalClusterMember > & GetGlobalClusterMembers() const
GlobalCluster & WithDeletionProtection(bool value)
GlobalCluster & WithTagList(TagListT &&value)
void SetEngineVersion(EngineVersionT &&value)
GlobalCluster & WithFailoverState(FailoverStateT &&value)
AWS_RDS_API GlobalCluster & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetEngineVersion() const
GlobalCluster & WithEngineVersion(EngineVersionT &&value)
void SetStatus(StatusT &&value)
GlobalCluster & WithGlobalClusterArn(GlobalClusterArnT &&value)
GlobalCluster & WithGlobalClusterMembers(GlobalClusterMembersT &&value)
bool GlobalClusterResourceIdHasBeenSet() const
GlobalCluster & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
GlobalCluster & WithEndpoint(EndpointT &&value)
GlobalCluster & WithEngineLifecycleSupport(EngineLifecycleSupportT &&value)
const Aws::String & GetEngine() const
GlobalCluster & WithGlobalClusterResourceId(GlobalClusterResourceIdT &&value)
bool GlobalClusterIdentifierHasBeenSet() const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetEndpoint(EndpointT &&value)
void SetDatabaseName(DatabaseNameT &&value)
GlobalCluster & AddTagList(TagListT &&value)
bool EngineLifecycleSupportHasBeenSet() const
GlobalCluster & WithStorageEncrypted(bool value)
GlobalCluster & WithEngine(EngineT &&value)
bool GlobalClusterMembersHasBeenSet() const
const FailoverState & GetFailoverState() const
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