AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GlobalCluster.h
1
6#pragma once
7#include <aws/rds/RDS_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/rds/model/FailoverState.h>
12#include <aws/rds/model/GlobalClusterMember.h>
13#include <aws/rds/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace RDS
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_RDS_API GlobalCluster();
40 AWS_RDS_API GlobalCluster(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_RDS_API GlobalCluster& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
52 inline const Aws::String& GetGlobalClusterIdentifier() const{ return m_globalClusterIdentifier; }
53 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
54 inline void SetGlobalClusterIdentifier(const Aws::String& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = value; }
55 inline void SetGlobalClusterIdentifier(Aws::String&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::move(value); }
56 inline void SetGlobalClusterIdentifier(const char* value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier.assign(value); }
58 inline GlobalCluster& WithGlobalClusterIdentifier(Aws::String&& value) { SetGlobalClusterIdentifier(std::move(value)); return *this;}
59 inline GlobalCluster& WithGlobalClusterIdentifier(const char* value) { SetGlobalClusterIdentifier(value); return *this;}
61
63
69 inline const Aws::String& GetGlobalClusterResourceId() const{ return m_globalClusterResourceId; }
70 inline bool GlobalClusterResourceIdHasBeenSet() const { return m_globalClusterResourceIdHasBeenSet; }
71 inline void SetGlobalClusterResourceId(const Aws::String& value) { m_globalClusterResourceIdHasBeenSet = true; m_globalClusterResourceId = value; }
72 inline void SetGlobalClusterResourceId(Aws::String&& value) { m_globalClusterResourceIdHasBeenSet = true; m_globalClusterResourceId = std::move(value); }
73 inline void SetGlobalClusterResourceId(const char* value) { m_globalClusterResourceIdHasBeenSet = true; m_globalClusterResourceId.assign(value); }
75 inline GlobalCluster& WithGlobalClusterResourceId(Aws::String&& value) { SetGlobalClusterResourceId(std::move(value)); return *this;}
76 inline GlobalCluster& WithGlobalClusterResourceId(const char* value) { SetGlobalClusterResourceId(value); return *this;}
78
80
83 inline const Aws::String& GetGlobalClusterArn() const{ return m_globalClusterArn; }
84 inline bool GlobalClusterArnHasBeenSet() const { return m_globalClusterArnHasBeenSet; }
85 inline void SetGlobalClusterArn(const Aws::String& value) { m_globalClusterArnHasBeenSet = true; m_globalClusterArn = value; }
86 inline void SetGlobalClusterArn(Aws::String&& value) { m_globalClusterArnHasBeenSet = true; m_globalClusterArn = std::move(value); }
87 inline void SetGlobalClusterArn(const char* value) { m_globalClusterArnHasBeenSet = true; m_globalClusterArn.assign(value); }
88 inline GlobalCluster& WithGlobalClusterArn(const Aws::String& value) { SetGlobalClusterArn(value); return *this;}
89 inline GlobalCluster& WithGlobalClusterArn(Aws::String&& value) { SetGlobalClusterArn(std::move(value)); return *this;}
90 inline GlobalCluster& WithGlobalClusterArn(const char* value) { SetGlobalClusterArn(value); return *this;}
92
94
97 inline const Aws::String& GetStatus() const{ return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
100 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
101 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
102 inline GlobalCluster& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
103 inline GlobalCluster& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
104 inline GlobalCluster& WithStatus(const char* value) { SetStatus(value); return *this;}
106
108
111 inline const Aws::String& GetEngine() const{ return m_engine; }
112 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
113 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
114 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
115 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
116 inline GlobalCluster& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
117 inline GlobalCluster& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
118 inline GlobalCluster& WithEngine(const char* value) { SetEngine(value); return *this;}
120
122
125 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
126 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
127 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
128 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
129 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
130 inline GlobalCluster& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
131 inline GlobalCluster& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
132 inline GlobalCluster& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
134
136
140 inline const Aws::String& GetEngineLifecycleSupport() const{ return m_engineLifecycleSupport; }
141 inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; }
142 inline void SetEngineLifecycleSupport(const Aws::String& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = value; }
143 inline void SetEngineLifecycleSupport(Aws::String&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::move(value); }
144 inline void SetEngineLifecycleSupport(const char* value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport.assign(value); }
146 inline GlobalCluster& WithEngineLifecycleSupport(Aws::String&& value) { SetEngineLifecycleSupport(std::move(value)); return *this;}
147 inline GlobalCluster& WithEngineLifecycleSupport(const char* value) { SetEngineLifecycleSupport(value); return *this;}
149
151
154 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
155 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
156 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
157 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
158 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
159 inline GlobalCluster& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
160 inline GlobalCluster& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
161 inline GlobalCluster& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
163
165
168 inline bool GetStorageEncrypted() const{ return m_storageEncrypted; }
169 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
170 inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
171 inline GlobalCluster& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
173
175
178 inline bool GetDeletionProtection() const{ return m_deletionProtection; }
179 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
180 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
181 inline GlobalCluster& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
183
185
189 inline const Aws::Vector<GlobalClusterMember>& GetGlobalClusterMembers() const{ return m_globalClusterMembers; }
190 inline bool GlobalClusterMembersHasBeenSet() const { return m_globalClusterMembersHasBeenSet; }
191 inline void SetGlobalClusterMembers(const Aws::Vector<GlobalClusterMember>& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers = value; }
192 inline void SetGlobalClusterMembers(Aws::Vector<GlobalClusterMember>&& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers = std::move(value); }
195 inline GlobalCluster& AddGlobalClusterMembers(const GlobalClusterMember& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers.push_back(value); return *this; }
196 inline GlobalCluster& AddGlobalClusterMembers(GlobalClusterMember&& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers.push_back(std::move(value)); return *this; }
198
200
204 inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
205 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
206 inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
207 inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
208 inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
209 inline GlobalCluster& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
210 inline GlobalCluster& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
211 inline GlobalCluster& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
213
215
222 inline const FailoverState& GetFailoverState() const{ return m_failoverState; }
223 inline bool FailoverStateHasBeenSet() const { return m_failoverStateHasBeenSet; }
224 inline void SetFailoverState(const FailoverState& value) { m_failoverStateHasBeenSet = true; m_failoverState = value; }
225 inline void SetFailoverState(FailoverState&& value) { m_failoverStateHasBeenSet = true; m_failoverState = std::move(value); }
226 inline GlobalCluster& WithFailoverState(const FailoverState& value) { SetFailoverState(value); return *this;}
227 inline GlobalCluster& WithFailoverState(FailoverState&& value) { SetFailoverState(std::move(value)); return *this;}
229
231
232 inline const Aws::Vector<Tag>& GetTagList() const{ return m_tagList; }
233 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
234 inline void SetTagList(const Aws::Vector<Tag>& value) { m_tagListHasBeenSet = true; m_tagList = value; }
235 inline void SetTagList(Aws::Vector<Tag>&& value) { m_tagListHasBeenSet = true; m_tagList = std::move(value); }
236 inline GlobalCluster& WithTagList(const Aws::Vector<Tag>& value) { SetTagList(value); return *this;}
237 inline GlobalCluster& WithTagList(Aws::Vector<Tag>&& value) { SetTagList(std::move(value)); return *this;}
238 inline GlobalCluster& AddTagList(const Tag& value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; }
239 inline GlobalCluster& AddTagList(Tag&& value) { m_tagListHasBeenSet = true; m_tagList.push_back(std::move(value)); return *this; }
241 private:
242
243 Aws::String m_globalClusterIdentifier;
244 bool m_globalClusterIdentifierHasBeenSet = false;
245
246 Aws::String m_globalClusterResourceId;
247 bool m_globalClusterResourceIdHasBeenSet = false;
248
249 Aws::String m_globalClusterArn;
250 bool m_globalClusterArnHasBeenSet = false;
251
252 Aws::String m_status;
253 bool m_statusHasBeenSet = false;
254
255 Aws::String m_engine;
256 bool m_engineHasBeenSet = false;
257
258 Aws::String m_engineVersion;
259 bool m_engineVersionHasBeenSet = false;
260
261 Aws::String m_engineLifecycleSupport;
262 bool m_engineLifecycleSupportHasBeenSet = false;
263
264 Aws::String m_databaseName;
265 bool m_databaseNameHasBeenSet = false;
266
267 bool m_storageEncrypted;
268 bool m_storageEncryptedHasBeenSet = false;
269
270 bool m_deletionProtection;
271 bool m_deletionProtectionHasBeenSet = false;
272
273 Aws::Vector<GlobalClusterMember> m_globalClusterMembers;
274 bool m_globalClusterMembersHasBeenSet = false;
275
276 Aws::String m_endpoint;
277 bool m_endpointHasBeenSet = false;
278
279 FailoverState m_failoverState;
280 bool m_failoverStateHasBeenSet = false;
281
282 Aws::Vector<Tag> m_tagList;
283 bool m_tagListHasBeenSet = false;
284 };
285
286} // namespace Model
287} // namespace RDS
288} // namespace Aws
GlobalCluster & WithDatabaseName(const char *value)
GlobalCluster & AddGlobalClusterMembers(GlobalClusterMember &&value)
void SetDeletionProtection(bool value)
GlobalCluster & WithEngineVersion(const Aws::String &value)
const Aws::String & GetDatabaseName() const
GlobalCluster & WithEngineLifecycleSupport(const char *value)
GlobalCluster & AddGlobalClusterMembers(const GlobalClusterMember &value)
const Aws::String & GetGlobalClusterArn() const
void SetGlobalClusterIdentifier(const Aws::String &value)
GlobalCluster & WithTagList(Aws::Vector< Tag > &&value)
GlobalCluster & WithEngineLifecycleSupport(const Aws::String &value)
const Aws::String & GetEngineLifecycleSupport() const
AWS_RDS_API GlobalCluster(const Aws::Utils::Xml::XmlNode &xmlNode)
GlobalCluster & WithFailoverState(FailoverState &&value)
void SetEngineLifecycleSupport(const char *value)
const Aws::String & GetStatus() const
GlobalCluster & WithDatabaseName(Aws::String &&value)
GlobalCluster & WithGlobalClusterIdentifier(Aws::String &&value)
GlobalCluster & WithTagList(const Aws::Vector< Tag > &value)
GlobalCluster & WithFailoverState(const FailoverState &value)
const Aws::String & GetGlobalClusterIdentifier() const
void SetFailoverState(const FailoverState &value)
void SetGlobalClusterIdentifier(const char *value)
GlobalCluster & WithGlobalClusterArn(Aws::String &&value)
const Aws::Vector< Tag > & GetTagList() const
void SetStorageEncrypted(bool value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
GlobalCluster & WithGlobalClusterIdentifier(const Aws::String &value)
const Aws::String & GetGlobalClusterResourceId() const
GlobalCluster & WithEndpoint(const Aws::String &value)
const Aws::String & GetEndpoint() const
GlobalCluster & WithEngine(const char *value)
void SetGlobalClusterArn(Aws::String &&value)
void SetStatus(const Aws::String &value)
GlobalCluster & AddTagList(Tag &&value)
void SetGlobalClusterResourceId(const char *value)
void SetEngineVersion(const char *value)
void SetGlobalClusterIdentifier(Aws::String &&value)
GlobalCluster & WithGlobalClusterMembers(const Aws::Vector< GlobalClusterMember > &value)
const Aws::Vector< GlobalClusterMember > & GetGlobalClusterMembers() const
void SetStatus(const char *value)
GlobalCluster & WithDeletionProtection(bool value)
GlobalCluster & WithGlobalClusterIdentifier(const char *value)
GlobalCluster & WithGlobalClusterResourceId(const char *value)
GlobalCluster & WithEndpoint(Aws::String &&value)
void SetEngineVersion(const Aws::String &value)
void SetEngine(const char *value)
void SetTagList(const Aws::Vector< Tag > &value)
GlobalCluster & WithEndpoint(const char *value)
void SetEngineLifecycleSupport(const Aws::String &value)
GlobalCluster & WithEngine(const Aws::String &value)
void SetEngineVersion(Aws::String &&value)
void SetEngineLifecycleSupport(Aws::String &&value)
GlobalCluster & WithStatus(const Aws::String &value)
GlobalCluster & WithEngineVersion(Aws::String &&value)
GlobalCluster & WithDatabaseName(const Aws::String &value)
void SetDatabaseName(Aws::String &&value)
AWS_RDS_API GlobalCluster & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
GlobalCluster & WithGlobalClusterArn(const char *value)
const Aws::String & GetEngineVersion() const
GlobalCluster & WithGlobalClusterResourceId(const Aws::String &value)
void SetDatabaseName(const Aws::String &value)
void SetDatabaseName(const char *value)
void SetEndpoint(const Aws::String &value)
void SetEngine(Aws::String &&value)
void SetGlobalClusterArn(const char *value)
GlobalCluster & WithEngineLifecycleSupport(Aws::String &&value)
void SetEndpoint(Aws::String &&value)
bool GlobalClusterResourceIdHasBeenSet() const
GlobalCluster & WithGlobalClusterResourceId(Aws::String &&value)
void SetTagList(Aws::Vector< Tag > &&value)
void SetGlobalClusterResourceId(Aws::String &&value)
GlobalCluster & WithGlobalClusterMembers(Aws::Vector< GlobalClusterMember > &&value)
const Aws::String & GetEngine() const
void SetGlobalClusterArn(const Aws::String &value)
void SetGlobalClusterMembers(Aws::Vector< GlobalClusterMember > &&value)
void SetGlobalClusterResourceId(const Aws::String &value)
GlobalCluster & AddTagList(const Tag &value)
bool GlobalClusterIdentifierHasBeenSet() const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
GlobalCluster & WithGlobalClusterArn(const Aws::String &value)
void SetFailoverState(FailoverState &&value)
void SetEndpoint(const char *value)
GlobalCluster & WithStatus(Aws::String &&value)
GlobalCluster & WithEngineVersion(const char *value)
GlobalCluster & WithStatus(const char *value)
void SetStatus(Aws::String &&value)
GlobalCluster & WithEngine(Aws::String &&value)
void SetGlobalClusterMembers(const Aws::Vector< GlobalClusterMember > &value)
bool EngineLifecycleSupportHasBeenSet() const
GlobalCluster & WithStorageEncrypted(bool value)
bool GlobalClusterMembersHasBeenSet() const
const FailoverState & GetFailoverState() const
void SetEngine(const 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