AWS SDK for C++

AWS SDK for C++ Version 1.11.779

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/StorageEncryptionType.h>
14#include <aws/rds/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS {
25namespace Model {
26
34 public:
35 AWS_RDS_API GlobalCluster() = default;
36 AWS_RDS_API GlobalCluster(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_RDS_API GlobalCluster& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
47 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
48 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
49 template <typename GlobalClusterIdentifierT = Aws::String>
50 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
51 m_globalClusterIdentifierHasBeenSet = true;
52 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
53 }
54 template <typename GlobalClusterIdentifierT = Aws::String>
55 GlobalCluster& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
56 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
57 return *this;
58 }
60
62
69 inline const Aws::String& GetGlobalClusterResourceId() const { return m_globalClusterResourceId; }
70 inline bool GlobalClusterResourceIdHasBeenSet() const { return m_globalClusterResourceIdHasBeenSet; }
71 template <typename GlobalClusterResourceIdT = Aws::String>
72 void SetGlobalClusterResourceId(GlobalClusterResourceIdT&& value) {
73 m_globalClusterResourceIdHasBeenSet = true;
74 m_globalClusterResourceId = std::forward<GlobalClusterResourceIdT>(value);
75 }
76 template <typename GlobalClusterResourceIdT = Aws::String>
77 GlobalCluster& WithGlobalClusterResourceId(GlobalClusterResourceIdT&& value) {
78 SetGlobalClusterResourceId(std::forward<GlobalClusterResourceIdT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetGlobalClusterArn() const { return m_globalClusterArn; }
88 inline bool GlobalClusterArnHasBeenSet() const { return m_globalClusterArnHasBeenSet; }
89 template <typename GlobalClusterArnT = Aws::String>
90 void SetGlobalClusterArn(GlobalClusterArnT&& value) {
91 m_globalClusterArnHasBeenSet = true;
92 m_globalClusterArn = std::forward<GlobalClusterArnT>(value);
93 }
94 template <typename GlobalClusterArnT = Aws::String>
95 GlobalCluster& WithGlobalClusterArn(GlobalClusterArnT&& value) {
96 SetGlobalClusterArn(std::forward<GlobalClusterArnT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetStatus() const { return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 template <typename StatusT = Aws::String>
108 void SetStatus(StatusT&& value) {
109 m_statusHasBeenSet = true;
110 m_status = std::forward<StatusT>(value);
111 }
112 template <typename StatusT = Aws::String>
113 GlobalCluster& WithStatus(StatusT&& value) {
114 SetStatus(std::forward<StatusT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetEngine() const { return m_engine; }
124 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
125 template <typename EngineT = Aws::String>
126 void SetEngine(EngineT&& value) {
127 m_engineHasBeenSet = true;
128 m_engine = std::forward<EngineT>(value);
129 }
130 template <typename EngineT = Aws::String>
131 GlobalCluster& WithEngine(EngineT&& value) {
132 SetEngine(std::forward<EngineT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
142 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
143 template <typename EngineVersionT = Aws::String>
144 void SetEngineVersion(EngineVersionT&& value) {
145 m_engineVersionHasBeenSet = true;
146 m_engineVersion = std::forward<EngineVersionT>(value);
147 }
148 template <typename EngineVersionT = Aws::String>
149 GlobalCluster& WithEngineVersion(EngineVersionT&& value) {
150 SetEngineVersion(std::forward<EngineVersionT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetEngineLifecycleSupport() const { return m_engineLifecycleSupport; }
161 inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; }
162 template <typename EngineLifecycleSupportT = Aws::String>
163 void SetEngineLifecycleSupport(EngineLifecycleSupportT&& value) {
164 m_engineLifecycleSupportHasBeenSet = true;
165 m_engineLifecycleSupport = std::forward<EngineLifecycleSupportT>(value);
166 }
167 template <typename EngineLifecycleSupportT = Aws::String>
168 GlobalCluster& WithEngineLifecycleSupport(EngineLifecycleSupportT&& value) {
169 SetEngineLifecycleSupport(std::forward<EngineLifecycleSupportT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
179 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
180 template <typename DatabaseNameT = Aws::String>
181 void SetDatabaseName(DatabaseNameT&& value) {
182 m_databaseNameHasBeenSet = true;
183 m_databaseName = std::forward<DatabaseNameT>(value);
184 }
185 template <typename DatabaseNameT = Aws::String>
186 GlobalCluster& WithDatabaseName(DatabaseNameT&& value) {
187 SetDatabaseName(std::forward<DatabaseNameT>(value));
188 return *this;
189 }
191
193
196 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
197 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
198 inline void SetStorageEncrypted(bool value) {
199 m_storageEncryptedHasBeenSet = true;
200 m_storageEncrypted = value;
201 }
203 SetStorageEncrypted(value);
204 return *this;
205 }
207
209
218 inline StorageEncryptionType GetStorageEncryptionType() const { return m_storageEncryptionType; }
219 inline bool StorageEncryptionTypeHasBeenSet() const { return m_storageEncryptionTypeHasBeenSet; }
221 m_storageEncryptionTypeHasBeenSet = true;
222 m_storageEncryptionType = value;
223 }
226 return *this;
227 }
229
231
234 inline bool GetDeletionProtection() const { return m_deletionProtection; }
235 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
236 inline void SetDeletionProtection(bool value) {
237 m_deletionProtectionHasBeenSet = true;
238 m_deletionProtection = value;
239 }
242 return *this;
243 }
245
247
251 inline const Aws::Vector<GlobalClusterMember>& GetGlobalClusterMembers() const { return m_globalClusterMembers; }
252 inline bool GlobalClusterMembersHasBeenSet() const { return m_globalClusterMembersHasBeenSet; }
253 template <typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
254 void SetGlobalClusterMembers(GlobalClusterMembersT&& value) {
255 m_globalClusterMembersHasBeenSet = true;
256 m_globalClusterMembers = std::forward<GlobalClusterMembersT>(value);
257 }
258 template <typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
259 GlobalCluster& WithGlobalClusterMembers(GlobalClusterMembersT&& value) {
260 SetGlobalClusterMembers(std::forward<GlobalClusterMembersT>(value));
261 return *this;
262 }
263 template <typename GlobalClusterMembersT = GlobalClusterMember>
264 GlobalCluster& AddGlobalClusterMembers(GlobalClusterMembersT&& value) {
265 m_globalClusterMembersHasBeenSet = true;
266 m_globalClusterMembers.emplace_back(std::forward<GlobalClusterMembersT>(value));
267 return *this;
268 }
270
272
276 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
277 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
278 template <typename EndpointT = Aws::String>
279 void SetEndpoint(EndpointT&& value) {
280 m_endpointHasBeenSet = true;
281 m_endpoint = std::forward<EndpointT>(value);
282 }
283 template <typename EndpointT = Aws::String>
284 GlobalCluster& WithEndpoint(EndpointT&& value) {
285 SetEndpoint(std::forward<EndpointT>(value));
286 return *this;
287 }
289
291
298 inline const FailoverState& GetFailoverState() const { return m_failoverState; }
299 inline bool FailoverStateHasBeenSet() const { return m_failoverStateHasBeenSet; }
300 template <typename FailoverStateT = FailoverState>
301 void SetFailoverState(FailoverStateT&& value) {
302 m_failoverStateHasBeenSet = true;
303 m_failoverState = std::forward<FailoverStateT>(value);
304 }
305 template <typename FailoverStateT = FailoverState>
306 GlobalCluster& WithFailoverState(FailoverStateT&& value) {
307 SetFailoverState(std::forward<FailoverStateT>(value));
308 return *this;
309 }
311
313
314 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
315 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
316 template <typename TagListT = Aws::Vector<Tag>>
317 void SetTagList(TagListT&& value) {
318 m_tagListHasBeenSet = true;
319 m_tagList = std::forward<TagListT>(value);
320 }
321 template <typename TagListT = Aws::Vector<Tag>>
322 GlobalCluster& WithTagList(TagListT&& value) {
323 SetTagList(std::forward<TagListT>(value));
324 return *this;
325 }
326 template <typename TagListT = Tag>
327 GlobalCluster& AddTagList(TagListT&& value) {
328 m_tagListHasBeenSet = true;
329 m_tagList.emplace_back(std::forward<TagListT>(value));
330 return *this;
331 }
333 private:
334 Aws::String m_globalClusterIdentifier;
335
336 Aws::String m_globalClusterResourceId;
337
338 Aws::String m_globalClusterArn;
339
340 Aws::String m_status;
341
342 Aws::String m_engine;
343
344 Aws::String m_engineVersion;
345
346 Aws::String m_engineLifecycleSupport;
347
348 Aws::String m_databaseName;
349
350 bool m_storageEncrypted{false};
351
353
354 bool m_deletionProtection{false};
355
356 Aws::Vector<GlobalClusterMember> m_globalClusterMembers;
357
358 Aws::String m_endpoint;
359
360 FailoverState m_failoverState;
361
362 Aws::Vector<Tag> m_tagList;
363 bool m_globalClusterIdentifierHasBeenSet = false;
364 bool m_globalClusterResourceIdHasBeenSet = false;
365 bool m_globalClusterArnHasBeenSet = false;
366 bool m_statusHasBeenSet = false;
367 bool m_engineHasBeenSet = false;
368 bool m_engineVersionHasBeenSet = false;
369 bool m_engineLifecycleSupportHasBeenSet = false;
370 bool m_databaseNameHasBeenSet = false;
371 bool m_storageEncryptedHasBeenSet = false;
372 bool m_storageEncryptionTypeHasBeenSet = false;
373 bool m_deletionProtectionHasBeenSet = false;
374 bool m_globalClusterMembersHasBeenSet = false;
375 bool m_endpointHasBeenSet = false;
376 bool m_failoverStateHasBeenSet = false;
377 bool m_tagListHasBeenSet = false;
378};
379
380} // namespace Model
381} // namespace RDS
382} // namespace Aws
void SetEngineLifecycleSupport(EngineLifecycleSupportT &&value)
void SetDeletionProtection(bool value)
const Aws::String & GetDatabaseName() const
GlobalCluster & WithStatus(StatusT &&value)
const Aws::String & GetGlobalClusterArn() const
bool StorageEncryptionTypeHasBeenSet() 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
void SetStorageEncryptionType(StorageEncryptionType value)
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
GlobalCluster & WithStorageEncryptionType(StorageEncryptionType value)
void SetGlobalClusterMembers(GlobalClusterMembersT &&value)
GlobalCluster & AddGlobalClusterMembers(GlobalClusterMembersT &&value)
const Aws::Vector< GlobalClusterMember > & GetGlobalClusterMembers() const
GlobalCluster & WithDeletionProtection(bool value)
GlobalCluster & WithTagList(TagListT &&value)
StorageEncryptionType GetStorageEncryptionType() const
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