AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateGlobalClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rds/RDSRequest.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace RDS {
17namespace Model {
18
22 public:
23 AWS_RDS_API CreateGlobalClusterRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateGlobalCluster"; }
30
31 AWS_RDS_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
42 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
43 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
44 template <typename GlobalClusterIdentifierT = Aws::String>
45 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
46 m_globalClusterIdentifierHasBeenSet = true;
47 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
48 }
49 template <typename GlobalClusterIdentifierT = Aws::String>
50 CreateGlobalClusterRequest& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
51 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
52 return *this;
53 }
55
57
66 inline const Aws::String& GetSourceDBClusterIdentifier() const { return m_sourceDBClusterIdentifier; }
67 inline bool SourceDBClusterIdentifierHasBeenSet() const { return m_sourceDBClusterIdentifierHasBeenSet; }
68 template <typename SourceDBClusterIdentifierT = Aws::String>
69 void SetSourceDBClusterIdentifier(SourceDBClusterIdentifierT&& value) {
70 m_sourceDBClusterIdentifierHasBeenSet = true;
71 m_sourceDBClusterIdentifier = std::forward<SourceDBClusterIdentifierT>(value);
72 }
73 template <typename SourceDBClusterIdentifierT = Aws::String>
74 CreateGlobalClusterRequest& WithSourceDBClusterIdentifier(SourceDBClusterIdentifierT&& value) {
75 SetSourceDBClusterIdentifier(std::forward<SourceDBClusterIdentifierT>(value));
76 return *this;
77 }
79
81
88 inline const Aws::String& GetEngine() const { return m_engine; }
89 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
90 template <typename EngineT = Aws::String>
91 void SetEngine(EngineT&& value) {
92 m_engineHasBeenSet = true;
93 m_engine = std::forward<EngineT>(value);
94 }
95 template <typename EngineT = Aws::String>
97 SetEngine(std::forward<EngineT>(value));
98 return *this;
99 }
101
103
109 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
110 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
111 template <typename EngineVersionT = Aws::String>
112 void SetEngineVersion(EngineVersionT&& value) {
113 m_engineVersionHasBeenSet = true;
114 m_engineVersion = std::forward<EngineVersionT>(value);
115 }
116 template <typename EngineVersionT = Aws::String>
118 SetEngineVersion(std::forward<EngineVersionT>(value));
119 return *this;
120 }
122
124
142 inline const Aws::String& GetEngineLifecycleSupport() const { return m_engineLifecycleSupport; }
143 inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; }
144 template <typename EngineLifecycleSupportT = Aws::String>
145 void SetEngineLifecycleSupport(EngineLifecycleSupportT&& value) {
146 m_engineLifecycleSupportHasBeenSet = true;
147 m_engineLifecycleSupport = std::forward<EngineLifecycleSupportT>(value);
148 }
149 template <typename EngineLifecycleSupportT = Aws::String>
150 CreateGlobalClusterRequest& WithEngineLifecycleSupport(EngineLifecycleSupportT&& value) {
151 SetEngineLifecycleSupport(std::forward<EngineLifecycleSupportT>(value));
152 return *this;
153 }
155
157
162 inline bool GetDeletionProtection() const { return m_deletionProtection; }
163 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
164 inline void SetDeletionProtection(bool value) {
165 m_deletionProtectionHasBeenSet = true;
166 m_deletionProtection = value;
167 }
170 return *this;
171 }
173
175
182 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
183 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
184 template <typename DatabaseNameT = Aws::String>
185 void SetDatabaseName(DatabaseNameT&& value) {
186 m_databaseNameHasBeenSet = true;
187 m_databaseName = std::forward<DatabaseNameT>(value);
188 }
189 template <typename DatabaseNameT = Aws::String>
191 SetDatabaseName(std::forward<DatabaseNameT>(value));
192 return *this;
193 }
195
197
203 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
204 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
205 inline void SetStorageEncrypted(bool value) {
206 m_storageEncryptedHasBeenSet = true;
207 m_storageEncrypted = value;
208 }
210 SetStorageEncrypted(value);
211 return *this;
212 }
214
216
219 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
220 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 template <typename TagsT = Aws::Vector<Tag>>
222 void SetTags(TagsT&& value) {
223 m_tagsHasBeenSet = true;
224 m_tags = std::forward<TagsT>(value);
225 }
226 template <typename TagsT = Aws::Vector<Tag>>
228 SetTags(std::forward<TagsT>(value));
229 return *this;
230 }
231 template <typename TagsT = Tag>
233 m_tagsHasBeenSet = true;
234 m_tags.emplace_back(std::forward<TagsT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_globalClusterIdentifier;
240
241 Aws::String m_sourceDBClusterIdentifier;
242
243 Aws::String m_engine;
244
245 Aws::String m_engineVersion;
246
247 Aws::String m_engineLifecycleSupport;
248
249 bool m_deletionProtection{false};
250
251 Aws::String m_databaseName;
252
253 bool m_storageEncrypted{false};
254
255 Aws::Vector<Tag> m_tags;
256 bool m_globalClusterIdentifierHasBeenSet = false;
257 bool m_sourceDBClusterIdentifierHasBeenSet = false;
258 bool m_engineHasBeenSet = false;
259 bool m_engineVersionHasBeenSet = false;
260 bool m_engineLifecycleSupportHasBeenSet = false;
261 bool m_deletionProtectionHasBeenSet = false;
262 bool m_databaseNameHasBeenSet = false;
263 bool m_storageEncryptedHasBeenSet = false;
264 bool m_tagsHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace RDS
269} // namespace Aws
AWS_RDS_API Aws::String SerializePayload() const override
CreateGlobalClusterRequest & WithDeletionProtection(bool value)
AWS_RDS_API CreateGlobalClusterRequest()=default
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
CreateGlobalClusterRequest & WithEngineVersion(EngineVersionT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetSourceDBClusterIdentifier(SourceDBClusterIdentifierT &&value)
CreateGlobalClusterRequest & WithDatabaseName(DatabaseNameT &&value)
CreateGlobalClusterRequest & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
CreateGlobalClusterRequest & WithSourceDBClusterIdentifier(SourceDBClusterIdentifierT &&value)
CreateGlobalClusterRequest & WithEngineLifecycleSupport(EngineLifecycleSupportT &&value)
CreateGlobalClusterRequest & WithEngine(EngineT &&value)
virtual const char * GetServiceRequestName() const override
CreateGlobalClusterRequest & WithTags(TagsT &&value)
void SetEngineLifecycleSupport(EngineLifecycleSupportT &&value)
CreateGlobalClusterRequest & WithStorageEncrypted(bool value)
CreateGlobalClusterRequest & AddTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector