AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/docdb/DocDB_EXPORTS.h>
11#include <aws/docdb/model/FailoverState.h>
12#include <aws/docdb/model/GlobalClusterMember.h>
13#include <aws/docdb/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace DocDB {
24namespace Model {
25
33 public:
34 AWS_DOCDB_API GlobalCluster() = default;
35 AWS_DOCDB_API GlobalCluster(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_DOCDB_API GlobalCluster& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
46 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
47 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
48 template <typename GlobalClusterIdentifierT = Aws::String>
49 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
50 m_globalClusterIdentifierHasBeenSet = true;
51 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
52 }
53 template <typename GlobalClusterIdentifierT = Aws::String>
54 GlobalCluster& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
55 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetGlobalClusterResourceId() const { return m_globalClusterResourceId; }
67 inline bool GlobalClusterResourceIdHasBeenSet() const { return m_globalClusterResourceIdHasBeenSet; }
68 template <typename GlobalClusterResourceIdT = Aws::String>
69 void SetGlobalClusterResourceId(GlobalClusterResourceIdT&& value) {
70 m_globalClusterResourceIdHasBeenSet = true;
71 m_globalClusterResourceId = std::forward<GlobalClusterResourceIdT>(value);
72 }
73 template <typename GlobalClusterResourceIdT = Aws::String>
74 GlobalCluster& WithGlobalClusterResourceId(GlobalClusterResourceIdT&& value) {
75 SetGlobalClusterResourceId(std::forward<GlobalClusterResourceIdT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetGlobalClusterArn() const { return m_globalClusterArn; }
85 inline bool GlobalClusterArnHasBeenSet() const { return m_globalClusterArnHasBeenSet; }
86 template <typename GlobalClusterArnT = Aws::String>
87 void SetGlobalClusterArn(GlobalClusterArnT&& value) {
88 m_globalClusterArnHasBeenSet = true;
89 m_globalClusterArn = std::forward<GlobalClusterArnT>(value);
90 }
91 template <typename GlobalClusterArnT = Aws::String>
92 GlobalCluster& WithGlobalClusterArn(GlobalClusterArnT&& value) {
93 SetGlobalClusterArn(std::forward<GlobalClusterArnT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetStatus() const { return m_status; }
103 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
104 template <typename StatusT = Aws::String>
105 void SetStatus(StatusT&& value) {
106 m_statusHasBeenSet = true;
107 m_status = std::forward<StatusT>(value);
108 }
109 template <typename StatusT = Aws::String>
110 GlobalCluster& WithStatus(StatusT&& value) {
111 SetStatus(std::forward<StatusT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetEngine() const { return m_engine; }
121 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
122 template <typename EngineT = Aws::String>
123 void SetEngine(EngineT&& value) {
124 m_engineHasBeenSet = true;
125 m_engine = std::forward<EngineT>(value);
126 }
127 template <typename EngineT = Aws::String>
128 GlobalCluster& WithEngine(EngineT&& value) {
129 SetEngine(std::forward<EngineT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
139 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
140 template <typename EngineVersionT = Aws::String>
141 void SetEngineVersion(EngineVersionT&& value) {
142 m_engineVersionHasBeenSet = true;
143 m_engineVersion = std::forward<EngineVersionT>(value);
144 }
145 template <typename EngineVersionT = Aws::String>
146 GlobalCluster& WithEngineVersion(EngineVersionT&& value) {
147 SetEngineVersion(std::forward<EngineVersionT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
157 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
158 template <typename DatabaseNameT = Aws::String>
159 void SetDatabaseName(DatabaseNameT&& value) {
160 m_databaseNameHasBeenSet = true;
161 m_databaseName = std::forward<DatabaseNameT>(value);
162 }
163 template <typename DatabaseNameT = Aws::String>
164 GlobalCluster& WithDatabaseName(DatabaseNameT&& value) {
165 SetDatabaseName(std::forward<DatabaseNameT>(value));
166 return *this;
167 }
169
171
174 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
175 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
176 inline void SetStorageEncrypted(bool value) {
177 m_storageEncryptedHasBeenSet = true;
178 m_storageEncrypted = value;
179 }
181 SetStorageEncrypted(value);
182 return *this;
183 }
185
187
190 inline bool GetDeletionProtection() const { return m_deletionProtection; }
191 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
192 inline void SetDeletionProtection(bool value) {
193 m_deletionProtectionHasBeenSet = true;
194 m_deletionProtection = value;
195 }
198 return *this;
199 }
201
203
207 inline const Aws::Vector<GlobalClusterMember>& GetGlobalClusterMembers() const { return m_globalClusterMembers; }
208 inline bool GlobalClusterMembersHasBeenSet() const { return m_globalClusterMembersHasBeenSet; }
209 template <typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
210 void SetGlobalClusterMembers(GlobalClusterMembersT&& value) {
211 m_globalClusterMembersHasBeenSet = true;
212 m_globalClusterMembers = std::forward<GlobalClusterMembersT>(value);
213 }
214 template <typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
215 GlobalCluster& WithGlobalClusterMembers(GlobalClusterMembersT&& value) {
216 SetGlobalClusterMembers(std::forward<GlobalClusterMembersT>(value));
217 return *this;
218 }
219 template <typename GlobalClusterMembersT = GlobalClusterMember>
220 GlobalCluster& AddGlobalClusterMembers(GlobalClusterMembersT&& value) {
221 m_globalClusterMembersHasBeenSet = true;
222 m_globalClusterMembers.emplace_back(std::forward<GlobalClusterMembersT>(value));
223 return *this;
224 }
226
228
235 inline const FailoverState& GetFailoverState() const { return m_failoverState; }
236 inline bool FailoverStateHasBeenSet() const { return m_failoverStateHasBeenSet; }
237 template <typename FailoverStateT = FailoverState>
238 void SetFailoverState(FailoverStateT&& value) {
239 m_failoverStateHasBeenSet = true;
240 m_failoverState = std::forward<FailoverStateT>(value);
241 }
242 template <typename FailoverStateT = FailoverState>
243 GlobalCluster& WithFailoverState(FailoverStateT&& value) {
244 SetFailoverState(std::forward<FailoverStateT>(value));
245 return *this;
246 }
248
250
253 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
254 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
255 template <typename TagListT = Aws::Vector<Tag>>
256 void SetTagList(TagListT&& value) {
257 m_tagListHasBeenSet = true;
258 m_tagList = std::forward<TagListT>(value);
259 }
260 template <typename TagListT = Aws::Vector<Tag>>
261 GlobalCluster& WithTagList(TagListT&& value) {
262 SetTagList(std::forward<TagListT>(value));
263 return *this;
264 }
265 template <typename TagListT = Tag>
266 GlobalCluster& AddTagList(TagListT&& value) {
267 m_tagListHasBeenSet = true;
268 m_tagList.emplace_back(std::forward<TagListT>(value));
269 return *this;
270 }
272 private:
273 Aws::String m_globalClusterIdentifier;
274
275 Aws::String m_globalClusterResourceId;
276
277 Aws::String m_globalClusterArn;
278
279 Aws::String m_status;
280
281 Aws::String m_engine;
282
283 Aws::String m_engineVersion;
284
285 Aws::String m_databaseName;
286
287 bool m_storageEncrypted{false};
288
289 bool m_deletionProtection{false};
290
291 Aws::Vector<GlobalClusterMember> m_globalClusterMembers;
292
293 FailoverState m_failoverState;
294
295 Aws::Vector<Tag> m_tagList;
296 bool m_globalClusterIdentifierHasBeenSet = false;
297 bool m_globalClusterResourceIdHasBeenSet = false;
298 bool m_globalClusterArnHasBeenSet = false;
299 bool m_statusHasBeenSet = false;
300 bool m_engineHasBeenSet = false;
301 bool m_engineVersionHasBeenSet = false;
302 bool m_databaseNameHasBeenSet = false;
303 bool m_storageEncryptedHasBeenSet = false;
304 bool m_deletionProtectionHasBeenSet = false;
305 bool m_globalClusterMembersHasBeenSet = false;
306 bool m_failoverStateHasBeenSet = false;
307 bool m_tagListHasBeenSet = false;
308};
309
310} // namespace Model
311} // namespace DocDB
312} // namespace Aws
void SetDatabaseName(DatabaseNameT &&value)
GlobalCluster & WithFailoverState(FailoverStateT &&value)
void SetGlobalClusterMembers(GlobalClusterMembersT &&value)
AWS_DOCDB_API GlobalCluster(const Aws::Utils::Xml::XmlNode &xmlNode)
GlobalCluster & WithEngine(EngineT &&value)
void SetTagList(TagListT &&value)
GlobalCluster & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
void SetGlobalClusterResourceId(GlobalClusterResourceIdT &&value)
const Aws::String & GetGlobalClusterArn() const
const Aws::String & GetGlobalClusterIdentifier() const
const Aws::Vector< GlobalClusterMember > & GetGlobalClusterMembers() const
void SetEngine(EngineT &&value)
GlobalCluster & WithStorageEncrypted(bool value)
void SetStatus(StatusT &&value)
const FailoverState & GetFailoverState() const
AWS_DOCDB_API GlobalCluster & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFailoverState(FailoverStateT &&value)
GlobalCluster & WithDatabaseName(DatabaseNameT &&value)
GlobalCluster & WithGlobalClusterMembers(GlobalClusterMembersT &&value)
const Aws::String & GetEngine() const
const Aws::Vector< Tag > & GetTagList() const
AWS_DOCDB_API GlobalCluster()=default
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
GlobalCluster & WithTagList(TagListT &&value)
bool GlobalClusterIdentifierHasBeenSet() const
void SetGlobalClusterArn(GlobalClusterArnT &&value)
GlobalCluster & WithStatus(StatusT &&value)
GlobalCluster & WithGlobalClusterResourceId(GlobalClusterResourceIdT &&value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
GlobalCluster & AddTagList(TagListT &&value)
const Aws::String & GetDatabaseName() const
GlobalCluster & WithDeletionProtection(bool value)
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
const Aws::String & GetGlobalClusterResourceId() const
const Aws::String & GetEngineVersion() const
GlobalCluster & WithGlobalClusterArn(GlobalClusterArnT &&value)
void SetEngineVersion(EngineVersionT &&value)
GlobalCluster & AddGlobalClusterMembers(GlobalClusterMembersT &&value)
GlobalCluster & WithEngineVersion(EngineVersionT &&value)
bool GlobalClusterResourceIdHasBeenSet() const
const Aws::String & GetStatus() 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