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/docdb/DocDB_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/docdb/model/GlobalClusterMember.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace DocDB
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DOCDB_API GlobalCluster() = default;
38 AWS_DOCDB_API GlobalCluster(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_DOCDB_API GlobalCluster& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
50 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
51 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
52 template<typename GlobalClusterIdentifierT = Aws::String>
53 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value); }
54 template<typename GlobalClusterIdentifierT = Aws::String>
55 GlobalCluster& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value)); return *this;}
57
59
64 inline const Aws::String& GetGlobalClusterResourceId() const { return m_globalClusterResourceId; }
65 inline bool GlobalClusterResourceIdHasBeenSet() const { return m_globalClusterResourceIdHasBeenSet; }
66 template<typename GlobalClusterResourceIdT = Aws::String>
67 void SetGlobalClusterResourceId(GlobalClusterResourceIdT&& value) { m_globalClusterResourceIdHasBeenSet = true; m_globalClusterResourceId = std::forward<GlobalClusterResourceIdT>(value); }
68 template<typename GlobalClusterResourceIdT = Aws::String>
69 GlobalCluster& WithGlobalClusterResourceId(GlobalClusterResourceIdT&& value) { SetGlobalClusterResourceId(std::forward<GlobalClusterResourceIdT>(value)); return *this;}
71
73
76 inline const Aws::String& GetGlobalClusterArn() const { return m_globalClusterArn; }
77 inline bool GlobalClusterArnHasBeenSet() const { return m_globalClusterArnHasBeenSet; }
78 template<typename GlobalClusterArnT = Aws::String>
79 void SetGlobalClusterArn(GlobalClusterArnT&& value) { m_globalClusterArnHasBeenSet = true; m_globalClusterArn = std::forward<GlobalClusterArnT>(value); }
80 template<typename GlobalClusterArnT = Aws::String>
81 GlobalCluster& WithGlobalClusterArn(GlobalClusterArnT&& value) { SetGlobalClusterArn(std::forward<GlobalClusterArnT>(value)); return *this;}
83
85
88 inline const Aws::String& GetStatus() const { return m_status; }
89 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
90 template<typename StatusT = Aws::String>
91 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
92 template<typename StatusT = Aws::String>
93 GlobalCluster& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
95
97
100 inline const Aws::String& GetEngine() const { return m_engine; }
101 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
102 template<typename EngineT = Aws::String>
103 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
104 template<typename EngineT = Aws::String>
105 GlobalCluster& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
107
109
112 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
113 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
114 template<typename EngineVersionT = Aws::String>
115 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
116 template<typename EngineVersionT = Aws::String>
117 GlobalCluster& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
119
121
124 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
125 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
126 template<typename DatabaseNameT = Aws::String>
127 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
128 template<typename DatabaseNameT = Aws::String>
129 GlobalCluster& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
131
133
136 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
137 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
138 inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
139 inline GlobalCluster& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
141
143
146 inline bool GetDeletionProtection() const { return m_deletionProtection; }
147 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
148 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
149 inline GlobalCluster& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
151
153
157 inline const Aws::Vector<GlobalClusterMember>& GetGlobalClusterMembers() const { return m_globalClusterMembers; }
158 inline bool GlobalClusterMembersHasBeenSet() const { return m_globalClusterMembersHasBeenSet; }
159 template<typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
160 void SetGlobalClusterMembers(GlobalClusterMembersT&& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers = std::forward<GlobalClusterMembersT>(value); }
161 template<typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
162 GlobalCluster& WithGlobalClusterMembers(GlobalClusterMembersT&& value) { SetGlobalClusterMembers(std::forward<GlobalClusterMembersT>(value)); return *this;}
163 template<typename GlobalClusterMembersT = GlobalClusterMember>
164 GlobalCluster& AddGlobalClusterMembers(GlobalClusterMembersT&& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers.emplace_back(std::forward<GlobalClusterMembersT>(value)); return *this; }
166 private:
167
168 Aws::String m_globalClusterIdentifier;
169 bool m_globalClusterIdentifierHasBeenSet = false;
170
171 Aws::String m_globalClusterResourceId;
172 bool m_globalClusterResourceIdHasBeenSet = false;
173
174 Aws::String m_globalClusterArn;
175 bool m_globalClusterArnHasBeenSet = false;
176
177 Aws::String m_status;
178 bool m_statusHasBeenSet = false;
179
180 Aws::String m_engine;
181 bool m_engineHasBeenSet = false;
182
183 Aws::String m_engineVersion;
184 bool m_engineVersionHasBeenSet = false;
185
186 Aws::String m_databaseName;
187 bool m_databaseNameHasBeenSet = false;
188
189 bool m_storageEncrypted{false};
190 bool m_storageEncryptedHasBeenSet = false;
191
192 bool m_deletionProtection{false};
193 bool m_deletionProtectionHasBeenSet = false;
194
195 Aws::Vector<GlobalClusterMember> m_globalClusterMembers;
196 bool m_globalClusterMembersHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace DocDB
201} // namespace Aws
void SetDatabaseName(DatabaseNameT &&value)
void SetGlobalClusterMembers(GlobalClusterMembersT &&value)
AWS_DOCDB_API GlobalCluster(const Aws::Utils::Xml::XmlNode &xmlNode)
GlobalCluster & WithEngine(EngineT &&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)
AWS_DOCDB_API GlobalCluster & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
GlobalCluster & WithDatabaseName(DatabaseNameT &&value)
GlobalCluster & WithGlobalClusterMembers(GlobalClusterMembersT &&value)
const Aws::String & GetEngine() const
AWS_DOCDB_API GlobalCluster()=default
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
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
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