AWS SDK for C++

AWS SDK for C++ Version 1.11.639

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
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) { m_globalClusterResourceIdHasBeenSet = true; m_globalClusterResourceId = std::forward<GlobalClusterResourceIdT>(value); }
72 template<typename GlobalClusterResourceIdT = Aws::String>
73 GlobalCluster& WithGlobalClusterResourceId(GlobalClusterResourceIdT&& value) { SetGlobalClusterResourceId(std::forward<GlobalClusterResourceIdT>(value)); return *this;}
75
77
80 inline const Aws::String& GetGlobalClusterArn() const { return m_globalClusterArn; }
81 inline bool GlobalClusterArnHasBeenSet() const { return m_globalClusterArnHasBeenSet; }
82 template<typename GlobalClusterArnT = Aws::String>
83 void SetGlobalClusterArn(GlobalClusterArnT&& value) { m_globalClusterArnHasBeenSet = true; m_globalClusterArn = std::forward<GlobalClusterArnT>(value); }
84 template<typename GlobalClusterArnT = Aws::String>
85 GlobalCluster& WithGlobalClusterArn(GlobalClusterArnT&& value) { SetGlobalClusterArn(std::forward<GlobalClusterArnT>(value)); return *this;}
87
89
92 inline const Aws::String& GetStatus() const { return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 template<typename StatusT = Aws::String>
95 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
96 template<typename StatusT = Aws::String>
97 GlobalCluster& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
99
101
104 inline const Aws::String& GetEngine() const { return m_engine; }
105 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
106 template<typename EngineT = Aws::String>
107 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
108 template<typename EngineT = Aws::String>
109 GlobalCluster& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
111
113
116 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
117 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
118 template<typename EngineVersionT = Aws::String>
119 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
120 template<typename EngineVersionT = Aws::String>
121 GlobalCluster& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
123
125
129 inline const Aws::String& GetEngineLifecycleSupport() const { return m_engineLifecycleSupport; }
130 inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; }
131 template<typename EngineLifecycleSupportT = Aws::String>
132 void SetEngineLifecycleSupport(EngineLifecycleSupportT&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::forward<EngineLifecycleSupportT>(value); }
133 template<typename EngineLifecycleSupportT = Aws::String>
134 GlobalCluster& WithEngineLifecycleSupport(EngineLifecycleSupportT&& value) { SetEngineLifecycleSupport(std::forward<EngineLifecycleSupportT>(value)); return *this;}
136
138
141 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
142 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
143 template<typename DatabaseNameT = Aws::String>
144 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
145 template<typename DatabaseNameT = Aws::String>
146 GlobalCluster& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
148
150
153 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
154 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
155 inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
156 inline GlobalCluster& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
158
160
163 inline bool GetDeletionProtection() const { return m_deletionProtection; }
164 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
165 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
166 inline GlobalCluster& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
168
170
174 inline const Aws::Vector<GlobalClusterMember>& GetGlobalClusterMembers() const { return m_globalClusterMembers; }
175 inline bool GlobalClusterMembersHasBeenSet() const { return m_globalClusterMembersHasBeenSet; }
176 template<typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
177 void SetGlobalClusterMembers(GlobalClusterMembersT&& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers = std::forward<GlobalClusterMembersT>(value); }
178 template<typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
179 GlobalCluster& WithGlobalClusterMembers(GlobalClusterMembersT&& value) { SetGlobalClusterMembers(std::forward<GlobalClusterMembersT>(value)); return *this;}
180 template<typename GlobalClusterMembersT = GlobalClusterMember>
181 GlobalCluster& AddGlobalClusterMembers(GlobalClusterMembersT&& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers.emplace_back(std::forward<GlobalClusterMembersT>(value)); return *this; }
183
185
189 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
190 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
191 template<typename EndpointT = Aws::String>
192 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
193 template<typename EndpointT = Aws::String>
194 GlobalCluster& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
196
198
205 inline const FailoverState& GetFailoverState() const { return m_failoverState; }
206 inline bool FailoverStateHasBeenSet() const { return m_failoverStateHasBeenSet; }
207 template<typename FailoverStateT = FailoverState>
208 void SetFailoverState(FailoverStateT&& value) { m_failoverStateHasBeenSet = true; m_failoverState = std::forward<FailoverStateT>(value); }
209 template<typename FailoverStateT = FailoverState>
210 GlobalCluster& WithFailoverState(FailoverStateT&& value) { SetFailoverState(std::forward<FailoverStateT>(value)); return *this;}
212
214
215 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
216 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
217 template<typename TagListT = Aws::Vector<Tag>>
218 void SetTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList = std::forward<TagListT>(value); }
219 template<typename TagListT = Aws::Vector<Tag>>
220 GlobalCluster& WithTagList(TagListT&& value) { SetTagList(std::forward<TagListT>(value)); return *this;}
221 template<typename TagListT = Tag>
222 GlobalCluster& AddTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList.emplace_back(std::forward<TagListT>(value)); return *this; }
224 private:
225
226 Aws::String m_globalClusterIdentifier;
227 bool m_globalClusterIdentifierHasBeenSet = false;
228
229 Aws::String m_globalClusterResourceId;
230 bool m_globalClusterResourceIdHasBeenSet = false;
231
232 Aws::String m_globalClusterArn;
233 bool m_globalClusterArnHasBeenSet = false;
234
235 Aws::String m_status;
236 bool m_statusHasBeenSet = false;
237
238 Aws::String m_engine;
239 bool m_engineHasBeenSet = false;
240
241 Aws::String m_engineVersion;
242 bool m_engineVersionHasBeenSet = false;
243
244 Aws::String m_engineLifecycleSupport;
245 bool m_engineLifecycleSupportHasBeenSet = false;
246
247 Aws::String m_databaseName;
248 bool m_databaseNameHasBeenSet = false;
249
250 bool m_storageEncrypted{false};
251 bool m_storageEncryptedHasBeenSet = false;
252
253 bool m_deletionProtection{false};
254 bool m_deletionProtectionHasBeenSet = false;
255
256 Aws::Vector<GlobalClusterMember> m_globalClusterMembers;
257 bool m_globalClusterMembersHasBeenSet = false;
258
259 Aws::String m_endpoint;
260 bool m_endpointHasBeenSet = false;
261
262 FailoverState m_failoverState;
263 bool m_failoverStateHasBeenSet = false;
264
265 Aws::Vector<Tag> m_tagList;
266 bool m_tagListHasBeenSet = false;
267 };
268
269} // namespace Model
270} // namespace RDS
271} // 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