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/neptune/Neptune_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/neptune/model/FailoverState.h>
12#include <aws/neptune/model/GlobalClusterMember.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Neptune
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_NEPTUNE_API GlobalCluster() = default;
42 AWS_NEPTUNE_API GlobalCluster(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_NEPTUNE_API GlobalCluster& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
54 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
55 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
56 template<typename GlobalClusterIdentifierT = Aws::String>
57 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value); }
58 template<typename GlobalClusterIdentifierT = Aws::String>
59 GlobalCluster& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value)); return *this;}
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) { 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
105 inline const Aws::String& GetEngine() const { return m_engine; }
106 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
107 template<typename EngineT = Aws::String>
108 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
109 template<typename EngineT = Aws::String>
110 GlobalCluster& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
112
114
117 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
118 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
119 template<typename EngineVersionT = Aws::String>
120 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
121 template<typename EngineVersionT = Aws::String>
122 GlobalCluster& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
124
126
129 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
130 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
131 inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
132 inline GlobalCluster& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
134
136
139 inline bool GetDeletionProtection() const { return m_deletionProtection; }
140 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
141 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
142 inline GlobalCluster& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
144
146
150 inline const Aws::Vector<GlobalClusterMember>& GetGlobalClusterMembers() const { return m_globalClusterMembers; }
151 inline bool GlobalClusterMembersHasBeenSet() const { return m_globalClusterMembersHasBeenSet; }
152 template<typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
153 void SetGlobalClusterMembers(GlobalClusterMembersT&& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers = std::forward<GlobalClusterMembersT>(value); }
154 template<typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
155 GlobalCluster& WithGlobalClusterMembers(GlobalClusterMembersT&& value) { SetGlobalClusterMembers(std::forward<GlobalClusterMembersT>(value)); return *this;}
156 template<typename GlobalClusterMembersT = GlobalClusterMember>
157 GlobalCluster& AddGlobalClusterMembers(GlobalClusterMembersT&& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers.emplace_back(std::forward<GlobalClusterMembersT>(value)); return *this; }
159
161
168 inline const FailoverState& GetFailoverState() const { return m_failoverState; }
169 inline bool FailoverStateHasBeenSet() const { return m_failoverStateHasBeenSet; }
170 template<typename FailoverStateT = FailoverState>
171 void SetFailoverState(FailoverStateT&& value) { m_failoverStateHasBeenSet = true; m_failoverState = std::forward<FailoverStateT>(value); }
172 template<typename FailoverStateT = FailoverState>
173 GlobalCluster& WithFailoverState(FailoverStateT&& value) { SetFailoverState(std::forward<FailoverStateT>(value)); return *this;}
175 private:
176
177 Aws::String m_globalClusterIdentifier;
178 bool m_globalClusterIdentifierHasBeenSet = false;
179
180 Aws::String m_globalClusterResourceId;
181 bool m_globalClusterResourceIdHasBeenSet = false;
182
183 Aws::String m_globalClusterArn;
184 bool m_globalClusterArnHasBeenSet = false;
185
186 Aws::String m_status;
187 bool m_statusHasBeenSet = false;
188
189 Aws::String m_engine;
190 bool m_engineHasBeenSet = false;
191
192 Aws::String m_engineVersion;
193 bool m_engineVersionHasBeenSet = false;
194
195 bool m_storageEncrypted{false};
196 bool m_storageEncryptedHasBeenSet = false;
197
198 bool m_deletionProtection{false};
199 bool m_deletionProtectionHasBeenSet = false;
200
201 Aws::Vector<GlobalClusterMember> m_globalClusterMembers;
202 bool m_globalClusterMembersHasBeenSet = false;
203
204 FailoverState m_failoverState;
205 bool m_failoverStateHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace Neptune
210} // 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)
void SetStatus(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