AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename GlobalClusterIdentifierT = Aws::String>
55 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value); }
56 template<typename GlobalClusterIdentifierT = Aws::String>
57 GlobalCluster& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value)); return *this;}
59
61
67 inline const Aws::String& GetGlobalClusterResourceId() const { return m_globalClusterResourceId; }
68 inline bool GlobalClusterResourceIdHasBeenSet() const { return m_globalClusterResourceIdHasBeenSet; }
69 template<typename GlobalClusterResourceIdT = Aws::String>
70 void SetGlobalClusterResourceId(GlobalClusterResourceIdT&& value) { m_globalClusterResourceIdHasBeenSet = true; m_globalClusterResourceId = std::forward<GlobalClusterResourceIdT>(value); }
71 template<typename GlobalClusterResourceIdT = Aws::String>
72 GlobalCluster& WithGlobalClusterResourceId(GlobalClusterResourceIdT&& value) { SetGlobalClusterResourceId(std::forward<GlobalClusterResourceIdT>(value)); return *this;}
74
76
79 inline const Aws::String& GetGlobalClusterArn() const { return m_globalClusterArn; }
80 inline bool GlobalClusterArnHasBeenSet() const { return m_globalClusterArnHasBeenSet; }
81 template<typename GlobalClusterArnT = Aws::String>
82 void SetGlobalClusterArn(GlobalClusterArnT&& value) { m_globalClusterArnHasBeenSet = true; m_globalClusterArn = std::forward<GlobalClusterArnT>(value); }
83 template<typename GlobalClusterArnT = Aws::String>
84 GlobalCluster& WithGlobalClusterArn(GlobalClusterArnT&& value) { SetGlobalClusterArn(std::forward<GlobalClusterArnT>(value)); return *this;}
86
88
91 inline const Aws::String& GetStatus() const { return m_status; }
92 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
93 template<typename StatusT = Aws::String>
94 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
95 template<typename StatusT = Aws::String>
96 GlobalCluster& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
98
100
103 inline const Aws::String& GetEngine() const { return m_engine; }
104 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
105 template<typename EngineT = Aws::String>
106 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
107 template<typename EngineT = Aws::String>
108 GlobalCluster& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
110
112
115 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
116 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
117 template<typename EngineVersionT = Aws::String>
118 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
119 template<typename EngineVersionT = Aws::String>
120 GlobalCluster& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
122
124
128 inline const Aws::String& GetEngineLifecycleSupport() const { return m_engineLifecycleSupport; }
129 inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; }
130 template<typename EngineLifecycleSupportT = Aws::String>
131 void SetEngineLifecycleSupport(EngineLifecycleSupportT&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::forward<EngineLifecycleSupportT>(value); }
132 template<typename EngineLifecycleSupportT = Aws::String>
133 GlobalCluster& WithEngineLifecycleSupport(EngineLifecycleSupportT&& value) { SetEngineLifecycleSupport(std::forward<EngineLifecycleSupportT>(value)); return *this;}
135
137
140 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
141 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
142 template<typename DatabaseNameT = Aws::String>
143 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
144 template<typename DatabaseNameT = Aws::String>
145 GlobalCluster& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
147
149
152 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
153 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
154 inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
155 inline GlobalCluster& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
157
159
162 inline bool GetDeletionProtection() const { return m_deletionProtection; }
163 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
164 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
165 inline GlobalCluster& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
167
169
173 inline const Aws::Vector<GlobalClusterMember>& GetGlobalClusterMembers() const { return m_globalClusterMembers; }
174 inline bool GlobalClusterMembersHasBeenSet() const { return m_globalClusterMembersHasBeenSet; }
175 template<typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
176 void SetGlobalClusterMembers(GlobalClusterMembersT&& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers = std::forward<GlobalClusterMembersT>(value); }
177 template<typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
178 GlobalCluster& WithGlobalClusterMembers(GlobalClusterMembersT&& value) { SetGlobalClusterMembers(std::forward<GlobalClusterMembersT>(value)); return *this;}
179 template<typename GlobalClusterMembersT = GlobalClusterMember>
180 GlobalCluster& AddGlobalClusterMembers(GlobalClusterMembersT&& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers.emplace_back(std::forward<GlobalClusterMembersT>(value)); return *this; }
182
184
188 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
189 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
190 template<typename EndpointT = Aws::String>
191 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
192 template<typename EndpointT = Aws::String>
193 GlobalCluster& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
195
197
204 inline const FailoverState& GetFailoverState() const { return m_failoverState; }
205 inline bool FailoverStateHasBeenSet() const { return m_failoverStateHasBeenSet; }
206 template<typename FailoverStateT = FailoverState>
207 void SetFailoverState(FailoverStateT&& value) { m_failoverStateHasBeenSet = true; m_failoverState = std::forward<FailoverStateT>(value); }
208 template<typename FailoverStateT = FailoverState>
209 GlobalCluster& WithFailoverState(FailoverStateT&& value) { SetFailoverState(std::forward<FailoverStateT>(value)); return *this;}
211
213
214 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
215 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
216 template<typename TagListT = Aws::Vector<Tag>>
217 void SetTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList = std::forward<TagListT>(value); }
218 template<typename TagListT = Aws::Vector<Tag>>
219 GlobalCluster& WithTagList(TagListT&& value) { SetTagList(std::forward<TagListT>(value)); return *this;}
220 template<typename TagListT = Tag>
221 GlobalCluster& AddTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList.emplace_back(std::forward<TagListT>(value)); return *this; }
223 private:
224
225 Aws::String m_globalClusterIdentifier;
226 bool m_globalClusterIdentifierHasBeenSet = false;
227
228 Aws::String m_globalClusterResourceId;
229 bool m_globalClusterResourceIdHasBeenSet = false;
230
231 Aws::String m_globalClusterArn;
232 bool m_globalClusterArnHasBeenSet = false;
233
234 Aws::String m_status;
235 bool m_statusHasBeenSet = false;
236
237 Aws::String m_engine;
238 bool m_engineHasBeenSet = false;
239
240 Aws::String m_engineVersion;
241 bool m_engineVersionHasBeenSet = false;
242
243 Aws::String m_engineLifecycleSupport;
244 bool m_engineLifecycleSupportHasBeenSet = false;
245
246 Aws::String m_databaseName;
247 bool m_databaseNameHasBeenSet = false;
248
249 bool m_storageEncrypted{false};
250 bool m_storageEncryptedHasBeenSet = false;
251
252 bool m_deletionProtection{false};
253 bool m_deletionProtectionHasBeenSet = false;
254
255 Aws::Vector<GlobalClusterMember> m_globalClusterMembers;
256 bool m_globalClusterMembersHasBeenSet = false;
257
258 Aws::String m_endpoint;
259 bool m_endpointHasBeenSet = false;
260
261 FailoverState m_failoverState;
262 bool m_failoverStateHasBeenSet = false;
263
264 Aws::Vector<Tag> m_tagList;
265 bool m_tagListHasBeenSet = false;
266 };
267
268} // namespace Model
269} // namespace RDS
270} // 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