AWS SDK for C++

AWS SDK for C++ Version 1.11.685

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
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace Neptune {
23namespace Model {
24
35 public:
36 AWS_NEPTUNE_API GlobalCluster() = default;
37 AWS_NEPTUNE_API GlobalCluster(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_NEPTUNE_API GlobalCluster& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
44
48 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
49 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
50 template <typename GlobalClusterIdentifierT = Aws::String>
51 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
52 m_globalClusterIdentifierHasBeenSet = true;
53 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
54 }
55 template <typename GlobalClusterIdentifierT = Aws::String>
56 GlobalCluster& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
57 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
58 return *this;
59 }
61
63
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) {
72 m_globalClusterResourceIdHasBeenSet = true;
73 m_globalClusterResourceId = std::forward<GlobalClusterResourceIdT>(value);
74 }
75 template <typename GlobalClusterResourceIdT = Aws::String>
76 GlobalCluster& WithGlobalClusterResourceId(GlobalClusterResourceIdT&& value) {
77 SetGlobalClusterResourceId(std::forward<GlobalClusterResourceIdT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetGlobalClusterArn() const { return m_globalClusterArn; }
87 inline bool GlobalClusterArnHasBeenSet() const { return m_globalClusterArnHasBeenSet; }
88 template <typename GlobalClusterArnT = Aws::String>
89 void SetGlobalClusterArn(GlobalClusterArnT&& value) {
90 m_globalClusterArnHasBeenSet = true;
91 m_globalClusterArn = std::forward<GlobalClusterArnT>(value);
92 }
93 template <typename GlobalClusterArnT = Aws::String>
94 GlobalCluster& WithGlobalClusterArn(GlobalClusterArnT&& value) {
95 SetGlobalClusterArn(std::forward<GlobalClusterArnT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetStatus() const { return m_status; }
105 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
106 template <typename StatusT = Aws::String>
107 void SetStatus(StatusT&& value) {
108 m_statusHasBeenSet = true;
109 m_status = std::forward<StatusT>(value);
110 }
111 template <typename StatusT = Aws::String>
112 GlobalCluster& WithStatus(StatusT&& value) {
113 SetStatus(std::forward<StatusT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::String& GetEngine() const { return m_engine; }
124 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
125 template <typename EngineT = Aws::String>
126 void SetEngine(EngineT&& value) {
127 m_engineHasBeenSet = true;
128 m_engine = std::forward<EngineT>(value);
129 }
130 template <typename EngineT = Aws::String>
131 GlobalCluster& WithEngine(EngineT&& value) {
132 SetEngine(std::forward<EngineT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
142 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
143 template <typename EngineVersionT = Aws::String>
144 void SetEngineVersion(EngineVersionT&& value) {
145 m_engineVersionHasBeenSet = true;
146 m_engineVersion = std::forward<EngineVersionT>(value);
147 }
148 template <typename EngineVersionT = Aws::String>
149 GlobalCluster& WithEngineVersion(EngineVersionT&& value) {
150 SetEngineVersion(std::forward<EngineVersionT>(value));
151 return *this;
152 }
154
156
159 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
160 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
161 inline void SetStorageEncrypted(bool value) {
162 m_storageEncryptedHasBeenSet = true;
163 m_storageEncrypted = value;
164 }
166 SetStorageEncrypted(value);
167 return *this;
168 }
170
172
175 inline bool GetDeletionProtection() const { return m_deletionProtection; }
176 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
177 inline void SetDeletionProtection(bool value) {
178 m_deletionProtectionHasBeenSet = true;
179 m_deletionProtection = value;
180 }
183 return *this;
184 }
186
188
192 inline const Aws::Vector<GlobalClusterMember>& GetGlobalClusterMembers() const { return m_globalClusterMembers; }
193 inline bool GlobalClusterMembersHasBeenSet() const { return m_globalClusterMembersHasBeenSet; }
194 template <typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
195 void SetGlobalClusterMembers(GlobalClusterMembersT&& value) {
196 m_globalClusterMembersHasBeenSet = true;
197 m_globalClusterMembers = std::forward<GlobalClusterMembersT>(value);
198 }
199 template <typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
200 GlobalCluster& WithGlobalClusterMembers(GlobalClusterMembersT&& value) {
201 SetGlobalClusterMembers(std::forward<GlobalClusterMembersT>(value));
202 return *this;
203 }
204 template <typename GlobalClusterMembersT = GlobalClusterMember>
205 GlobalCluster& AddGlobalClusterMembers(GlobalClusterMembersT&& value) {
206 m_globalClusterMembersHasBeenSet = true;
207 m_globalClusterMembers.emplace_back(std::forward<GlobalClusterMembersT>(value));
208 return *this;
209 }
211
213
220 inline const FailoverState& GetFailoverState() const { return m_failoverState; }
221 inline bool FailoverStateHasBeenSet() const { return m_failoverStateHasBeenSet; }
222 template <typename FailoverStateT = FailoverState>
223 void SetFailoverState(FailoverStateT&& value) {
224 m_failoverStateHasBeenSet = true;
225 m_failoverState = std::forward<FailoverStateT>(value);
226 }
227 template <typename FailoverStateT = FailoverState>
228 GlobalCluster& WithFailoverState(FailoverStateT&& value) {
229 SetFailoverState(std::forward<FailoverStateT>(value));
230 return *this;
231 }
233 private:
234 Aws::String m_globalClusterIdentifier;
235 bool m_globalClusterIdentifierHasBeenSet = false;
236
237 Aws::String m_globalClusterResourceId;
238 bool m_globalClusterResourceIdHasBeenSet = false;
239
240 Aws::String m_globalClusterArn;
241 bool m_globalClusterArnHasBeenSet = false;
242
243 Aws::String m_status;
244 bool m_statusHasBeenSet = false;
245
246 Aws::String m_engine;
247 bool m_engineHasBeenSet = false;
248
249 Aws::String m_engineVersion;
250 bool m_engineVersionHasBeenSet = false;
251
252 bool m_storageEncrypted{false};
253 bool m_storageEncryptedHasBeenSet = false;
254
255 bool m_deletionProtection{false};
256 bool m_deletionProtectionHasBeenSet = false;
257
258 Aws::Vector<GlobalClusterMember> m_globalClusterMembers;
259 bool m_globalClusterMembersHasBeenSet = false;
260
261 FailoverState m_failoverState;
262 bool m_failoverStateHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace Neptune
267} // 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 & AddGlobalClusterMembers(GlobalClusterMembersT &&value)
GlobalCluster & WithGlobalClusterResourceId(GlobalClusterResourceIdT &&value)
GlobalCluster & WithStatus(StatusT &&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)
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