AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGlobalClusterIdentifier(const Aws::String& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = value; }
53 inline void SetGlobalClusterIdentifier(Aws::String&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::move(value); }
54 inline void SetGlobalClusterIdentifier(const char* value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier.assign(value); }
56 inline GlobalCluster& WithGlobalClusterIdentifier(Aws::String&& value) { SetGlobalClusterIdentifier(std::move(value)); return *this;}
57 inline GlobalCluster& WithGlobalClusterIdentifier(const char* value) { SetGlobalClusterIdentifier(value); return *this;}
59
61
66 inline const Aws::String& GetGlobalClusterResourceId() const{ return m_globalClusterResourceId; }
67 inline bool GlobalClusterResourceIdHasBeenSet() const { return m_globalClusterResourceIdHasBeenSet; }
68 inline void SetGlobalClusterResourceId(const Aws::String& value) { m_globalClusterResourceIdHasBeenSet = true; m_globalClusterResourceId = value; }
69 inline void SetGlobalClusterResourceId(Aws::String&& value) { m_globalClusterResourceIdHasBeenSet = true; m_globalClusterResourceId = std::move(value); }
70 inline void SetGlobalClusterResourceId(const char* value) { m_globalClusterResourceIdHasBeenSet = true; m_globalClusterResourceId.assign(value); }
72 inline GlobalCluster& WithGlobalClusterResourceId(Aws::String&& value) { SetGlobalClusterResourceId(std::move(value)); return *this;}
73 inline GlobalCluster& WithGlobalClusterResourceId(const char* value) { SetGlobalClusterResourceId(value); return *this;}
75
77
80 inline const Aws::String& GetGlobalClusterArn() const{ return m_globalClusterArn; }
81 inline bool GlobalClusterArnHasBeenSet() const { return m_globalClusterArnHasBeenSet; }
82 inline void SetGlobalClusterArn(const Aws::String& value) { m_globalClusterArnHasBeenSet = true; m_globalClusterArn = value; }
83 inline void SetGlobalClusterArn(Aws::String&& value) { m_globalClusterArnHasBeenSet = true; m_globalClusterArn = std::move(value); }
84 inline void SetGlobalClusterArn(const char* value) { m_globalClusterArnHasBeenSet = true; m_globalClusterArn.assign(value); }
85 inline GlobalCluster& WithGlobalClusterArn(const Aws::String& value) { SetGlobalClusterArn(value); return *this;}
86 inline GlobalCluster& WithGlobalClusterArn(Aws::String&& value) { SetGlobalClusterArn(std::move(value)); return *this;}
87 inline GlobalCluster& WithGlobalClusterArn(const char* value) { SetGlobalClusterArn(value); return *this;}
89
91
94 inline const Aws::String& GetStatus() const{ return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
97 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
98 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
99 inline GlobalCluster& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
100 inline GlobalCluster& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
101 inline GlobalCluster& WithStatus(const char* value) { SetStatus(value); return *this;}
103
105
108 inline const Aws::String& GetEngine() const{ return m_engine; }
109 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
110 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
111 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
112 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
113 inline GlobalCluster& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
114 inline GlobalCluster& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
115 inline GlobalCluster& WithEngine(const char* value) { SetEngine(value); return *this;}
117
119
122 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
123 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
124 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
125 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
126 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
127 inline GlobalCluster& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
128 inline GlobalCluster& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
129 inline GlobalCluster& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
131
133
136 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
137 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
138 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
139 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
140 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
141 inline GlobalCluster& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
142 inline GlobalCluster& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
143 inline GlobalCluster& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
145
147
150 inline bool GetStorageEncrypted() const{ return m_storageEncrypted; }
151 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
152 inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
153 inline GlobalCluster& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
155
157
160 inline bool GetDeletionProtection() const{ return m_deletionProtection; }
161 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
162 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
163 inline GlobalCluster& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
165
167
171 inline const Aws::Vector<GlobalClusterMember>& GetGlobalClusterMembers() const{ return m_globalClusterMembers; }
172 inline bool GlobalClusterMembersHasBeenSet() const { return m_globalClusterMembersHasBeenSet; }
173 inline void SetGlobalClusterMembers(const Aws::Vector<GlobalClusterMember>& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers = value; }
174 inline void SetGlobalClusterMembers(Aws::Vector<GlobalClusterMember>&& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers = std::move(value); }
177 inline GlobalCluster& AddGlobalClusterMembers(const GlobalClusterMember& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers.push_back(value); return *this; }
178 inline GlobalCluster& AddGlobalClusterMembers(GlobalClusterMember&& value) { m_globalClusterMembersHasBeenSet = true; m_globalClusterMembers.push_back(std::move(value)); return *this; }
180 private:
181
182 Aws::String m_globalClusterIdentifier;
183 bool m_globalClusterIdentifierHasBeenSet = false;
184
185 Aws::String m_globalClusterResourceId;
186 bool m_globalClusterResourceIdHasBeenSet = false;
187
188 Aws::String m_globalClusterArn;
189 bool m_globalClusterArnHasBeenSet = false;
190
191 Aws::String m_status;
192 bool m_statusHasBeenSet = false;
193
194 Aws::String m_engine;
195 bool m_engineHasBeenSet = false;
196
197 Aws::String m_engineVersion;
198 bool m_engineVersionHasBeenSet = false;
199
200 Aws::String m_databaseName;
201 bool m_databaseNameHasBeenSet = false;
202
203 bool m_storageEncrypted;
204 bool m_storageEncryptedHasBeenSet = false;
205
206 bool m_deletionProtection;
207 bool m_deletionProtectionHasBeenSet = false;
208
209 Aws::Vector<GlobalClusterMember> m_globalClusterMembers;
210 bool m_globalClusterMembersHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace DocDB
215} // namespace Aws
GlobalCluster & WithDatabaseName(const Aws::String &value)
void SetGlobalClusterArn(const Aws::String &value)
void SetGlobalClusterIdentifier(Aws::String &&value)
AWS_DOCDB_API GlobalCluster(const Aws::Utils::Xml::XmlNode &xmlNode)
GlobalCluster & WithGlobalClusterArn(Aws::String &&value)
GlobalCluster & WithDatabaseName(Aws::String &&value)
GlobalCluster & WithEngine(const char *value)
void SetEngineVersion(const char *value)
GlobalCluster & WithEngine(const Aws::String &value)
const Aws::String & GetGlobalClusterArn() const
void SetStatus(Aws::String &&value)
GlobalCluster & WithGlobalClusterMembers(const Aws::Vector< GlobalClusterMember > &value)
void SetEngineVersion(const Aws::String &value)
void SetStatus(const char *value)
const Aws::String & GetGlobalClusterIdentifier() const
void SetEngine(Aws::String &&value)
GlobalCluster & WithEngine(Aws::String &&value)
void SetDatabaseName(Aws::String &&value)
GlobalCluster & WithStatus(const char *value)
const Aws::Vector< GlobalClusterMember > & GetGlobalClusterMembers() const
void SetGlobalClusterIdentifier(const char *value)
GlobalCluster & WithGlobalClusterArn(const Aws::String &value)
GlobalCluster & WithGlobalClusterMembers(Aws::Vector< GlobalClusterMember > &&value)
GlobalCluster & WithStorageEncrypted(bool value)
void SetEngineVersion(Aws::String &&value)
GlobalCluster & AddGlobalClusterMembers(const GlobalClusterMember &value)
void SetGlobalClusterResourceId(Aws::String &&value)
GlobalCluster & WithStatus(const Aws::String &value)
GlobalCluster & WithGlobalClusterResourceId(const Aws::String &value)
void SetGlobalClusterArn(const char *value)
GlobalCluster & WithGlobalClusterResourceId(const char *value)
AWS_DOCDB_API GlobalCluster & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetEngine() const
GlobalCluster & WithEngineVersion(Aws::String &&value)
void SetGlobalClusterArn(Aws::String &&value)
void SetDatabaseName(const char *value)
void SetGlobalClusterResourceId(const Aws::String &value)
void SetDatabaseName(const Aws::String &value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetStatus(const Aws::String &value)
bool GlobalClusterIdentifierHasBeenSet() const
GlobalCluster & WithGlobalClusterIdentifier(const char *value)
void SetEngine(const Aws::String &value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetDatabaseName() const
GlobalCluster & WithDeletionProtection(bool value)
const Aws::String & GetGlobalClusterResourceId() const
GlobalCluster & AddGlobalClusterMembers(GlobalClusterMember &&value)
GlobalCluster & WithGlobalClusterIdentifier(const Aws::String &value)
GlobalCluster & WithGlobalClusterArn(const char *value)
void SetEngine(const char *value)
const Aws::String & GetEngineVersion() const
GlobalCluster & WithGlobalClusterIdentifier(Aws::String &&value)
GlobalCluster & WithDatabaseName(const char *value)
void SetGlobalClusterResourceId(const char *value)
void SetGlobalClusterMembers(Aws::Vector< GlobalClusterMember > &&value)
bool GlobalClusterResourceIdHasBeenSet() const
GlobalCluster & WithGlobalClusterResourceId(Aws::String &&value)
GlobalCluster & WithEngineVersion(const char *value)
void SetGlobalClusterIdentifier(const Aws::String &value)
void SetGlobalClusterMembers(const Aws::Vector< GlobalClusterMember > &value)
GlobalCluster & WithEngineVersion(const Aws::String &value)
const Aws::String & GetStatus() const
GlobalCluster & WithStatus(Aws::String &&value)
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