AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/neptune/Neptune_EXPORTS.h>
11#include <aws/neptune/model/FailoverState.h>
12#include <aws/neptune/model/GlobalClusterMember.h>
13#include <aws/neptune/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Neptune {
24namespace Model {
25
36 public:
37 AWS_NEPTUNE_API GlobalCluster() = default;
38 AWS_NEPTUNE_API GlobalCluster(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_NEPTUNE_API GlobalCluster& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
45
49 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
50 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
51 template <typename GlobalClusterIdentifierT = Aws::String>
52 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
53 m_globalClusterIdentifierHasBeenSet = true;
54 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
55 }
56 template <typename GlobalClusterIdentifierT = Aws::String>
57 GlobalCluster& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
58 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
59 return *this;
60 }
62
64
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
124 inline const Aws::String& GetEngine() const { return m_engine; }
125 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
126 template <typename EngineT = Aws::String>
127 void SetEngine(EngineT&& value) {
128 m_engineHasBeenSet = true;
129 m_engine = std::forward<EngineT>(value);
130 }
131 template <typename EngineT = Aws::String>
132 GlobalCluster& WithEngine(EngineT&& value) {
133 SetEngine(std::forward<EngineT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
143 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
144 template <typename EngineVersionT = Aws::String>
145 void SetEngineVersion(EngineVersionT&& value) {
146 m_engineVersionHasBeenSet = true;
147 m_engineVersion = std::forward<EngineVersionT>(value);
148 }
149 template <typename EngineVersionT = Aws::String>
150 GlobalCluster& WithEngineVersion(EngineVersionT&& value) {
151 SetEngineVersion(std::forward<EngineVersionT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
161 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
162 template <typename DatabaseNameT = Aws::String>
163 void SetDatabaseName(DatabaseNameT&& value) {
164 m_databaseNameHasBeenSet = true;
165 m_databaseName = std::forward<DatabaseNameT>(value);
166 }
167 template <typename DatabaseNameT = Aws::String>
168 GlobalCluster& WithDatabaseName(DatabaseNameT&& value) {
169 SetDatabaseName(std::forward<DatabaseNameT>(value));
170 return *this;
171 }
173
175
178 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
179 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
180 inline void SetStorageEncrypted(bool value) {
181 m_storageEncryptedHasBeenSet = true;
182 m_storageEncrypted = value;
183 }
185 SetStorageEncrypted(value);
186 return *this;
187 }
189
191
194 inline bool GetDeletionProtection() const { return m_deletionProtection; }
195 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
196 inline void SetDeletionProtection(bool value) {
197 m_deletionProtectionHasBeenSet = true;
198 m_deletionProtection = value;
199 }
202 return *this;
203 }
205
207
211 inline const Aws::Vector<GlobalClusterMember>& GetGlobalClusterMembers() const { return m_globalClusterMembers; }
212 inline bool GlobalClusterMembersHasBeenSet() const { return m_globalClusterMembersHasBeenSet; }
213 template <typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
214 void SetGlobalClusterMembers(GlobalClusterMembersT&& value) {
215 m_globalClusterMembersHasBeenSet = true;
216 m_globalClusterMembers = std::forward<GlobalClusterMembersT>(value);
217 }
218 template <typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
219 GlobalCluster& WithGlobalClusterMembers(GlobalClusterMembersT&& value) {
220 SetGlobalClusterMembers(std::forward<GlobalClusterMembersT>(value));
221 return *this;
222 }
223 template <typename GlobalClusterMembersT = GlobalClusterMember>
224 GlobalCluster& AddGlobalClusterMembers(GlobalClusterMembersT&& value) {
225 m_globalClusterMembersHasBeenSet = true;
226 m_globalClusterMembers.emplace_back(std::forward<GlobalClusterMembersT>(value));
227 return *this;
228 }
230
232
239 inline const FailoverState& GetFailoverState() const { return m_failoverState; }
240 inline bool FailoverStateHasBeenSet() const { return m_failoverStateHasBeenSet; }
241 template <typename FailoverStateT = FailoverState>
242 void SetFailoverState(FailoverStateT&& value) {
243 m_failoverStateHasBeenSet = true;
244 m_failoverState = std::forward<FailoverStateT>(value);
245 }
246 template <typename FailoverStateT = FailoverState>
247 GlobalCluster& WithFailoverState(FailoverStateT&& value) {
248 SetFailoverState(std::forward<FailoverStateT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
258 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
259 template <typename TagListT = Aws::Vector<Tag>>
260 void SetTagList(TagListT&& value) {
261 m_tagListHasBeenSet = true;
262 m_tagList = std::forward<TagListT>(value);
263 }
264 template <typename TagListT = Aws::Vector<Tag>>
265 GlobalCluster& WithTagList(TagListT&& value) {
266 SetTagList(std::forward<TagListT>(value));
267 return *this;
268 }
269 template <typename TagListT = Tag>
270 GlobalCluster& AddTagList(TagListT&& value) {
271 m_tagListHasBeenSet = true;
272 m_tagList.emplace_back(std::forward<TagListT>(value));
273 return *this;
274 }
276 private:
277 Aws::String m_globalClusterIdentifier;
278
279 Aws::String m_globalClusterResourceId;
280
281 Aws::String m_globalClusterArn;
282
283 Aws::String m_status;
284
285 Aws::String m_engine;
286
287 Aws::String m_engineVersion;
288
289 Aws::String m_databaseName;
290
291 bool m_storageEncrypted{false};
292
293 bool m_deletionProtection{false};
294
295 Aws::Vector<GlobalClusterMember> m_globalClusterMembers;
296
297 FailoverState m_failoverState;
298
299 Aws::Vector<Tag> m_tagList;
300 bool m_globalClusterIdentifierHasBeenSet = false;
301 bool m_globalClusterResourceIdHasBeenSet = false;
302 bool m_globalClusterArnHasBeenSet = false;
303 bool m_statusHasBeenSet = false;
304 bool m_engineHasBeenSet = false;
305 bool m_engineVersionHasBeenSet = false;
306 bool m_databaseNameHasBeenSet = false;
307 bool m_storageEncryptedHasBeenSet = false;
308 bool m_deletionProtectionHasBeenSet = false;
309 bool m_globalClusterMembersHasBeenSet = false;
310 bool m_failoverStateHasBeenSet = false;
311 bool m_tagListHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace Neptune
316} // namespace Aws
void SetGlobalClusterMembers(GlobalClusterMembersT &&value)
const Aws::String & GetGlobalClusterResourceId() const
AWS_NEPTUNE_API GlobalCluster(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetGlobalClusterArn(GlobalClusterArnT &&value)
GlobalCluster & WithDeletionProtection(bool value)
GlobalCluster & WithGlobalClusterMembers(GlobalClusterMembersT &&value)
const Aws::String & GetGlobalClusterArn() const
AWS_NEPTUNE_API GlobalCluster()=default
GlobalCluster & WithFailoverState(FailoverStateT &&value)
AWS_NEPTUNE_API GlobalCluster & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
const Aws::String & GetStatus() const
GlobalCluster & WithTagList(TagListT &&value)
GlobalCluster & AddGlobalClusterMembers(GlobalClusterMembersT &&value)
GlobalCluster & WithGlobalClusterResourceId(GlobalClusterResourceIdT &&value)
void SetDatabaseName(DatabaseNameT &&value)
GlobalCluster & WithDatabaseName(DatabaseNameT &&value)
GlobalCluster & WithStatus(StatusT &&value)
GlobalCluster & AddTagList(TagListT &&value)
const Aws::String & GetGlobalClusterIdentifier() const
GlobalCluster & WithStorageEncrypted(bool value)
const Aws::String & GetEngine() const
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
GlobalCluster & WithGlobalClusterArn(GlobalClusterArnT &&value)
void SetFailoverState(FailoverStateT &&value)
void SetEngineVersion(EngineVersionT &&value)
void SetGlobalClusterResourceId(GlobalClusterResourceIdT &&value)
const Aws::Vector< GlobalClusterMember > & GetGlobalClusterMembers() const
const Aws::String & GetEngineVersion() const
GlobalCluster & WithEngineVersion(EngineVersionT &&value)
const Aws::String & GetDatabaseName() const
const Aws::Vector< Tag > & GetTagList() const
void SetTagList(TagListT &&value)
GlobalCluster & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
GlobalCluster & WithEngine(EngineT &&value)
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