AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateGlobalClusterRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RDS
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateGlobalCluster"; }
33
34 AWS_RDS_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
46 inline const Aws::String& GetGlobalClusterIdentifier() const{ return m_globalClusterIdentifier; }
47 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
48 inline void SetGlobalClusterIdentifier(const Aws::String& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = value; }
49 inline void SetGlobalClusterIdentifier(Aws::String&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::move(value); }
50 inline void SetGlobalClusterIdentifier(const char* value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier.assign(value); }
53 inline CreateGlobalClusterRequest& WithGlobalClusterIdentifier(const char* value) { SetGlobalClusterIdentifier(value); return *this;}
55
57
66 inline const Aws::String& GetSourceDBClusterIdentifier() const{ return m_sourceDBClusterIdentifier; }
67 inline bool SourceDBClusterIdentifierHasBeenSet() const { return m_sourceDBClusterIdentifierHasBeenSet; }
68 inline void SetSourceDBClusterIdentifier(const Aws::String& value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier = value; }
69 inline void SetSourceDBClusterIdentifier(Aws::String&& value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier = std::move(value); }
70 inline void SetSourceDBClusterIdentifier(const char* value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier.assign(value); }
75
77
84 inline const Aws::String& GetEngine() const{ return m_engine; }
85 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
86 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
87 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
88 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
89 inline CreateGlobalClusterRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
90 inline CreateGlobalClusterRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
91 inline CreateGlobalClusterRequest& WithEngine(const char* value) { SetEngine(value); return *this;}
93
95
101 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
102 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
103 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
104 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
105 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
106 inline CreateGlobalClusterRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
107 inline CreateGlobalClusterRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
108 inline CreateGlobalClusterRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
110
112
130 inline const Aws::String& GetEngineLifecycleSupport() const{ return m_engineLifecycleSupport; }
131 inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; }
132 inline void SetEngineLifecycleSupport(const Aws::String& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = value; }
133 inline void SetEngineLifecycleSupport(Aws::String&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::move(value); }
134 inline void SetEngineLifecycleSupport(const char* value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport.assign(value); }
137 inline CreateGlobalClusterRequest& WithEngineLifecycleSupport(const char* value) { SetEngineLifecycleSupport(value); return *this;}
139
141
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; }
151
153
160 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
161 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
162 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
163 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
164 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
165 inline CreateGlobalClusterRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
166 inline CreateGlobalClusterRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
167 inline CreateGlobalClusterRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
169
171
177 inline bool GetStorageEncrypted() const{ return m_storageEncrypted; }
178 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
179 inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
180 inline CreateGlobalClusterRequest& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
182
184
187 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
188 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
189 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
190 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
191 inline CreateGlobalClusterRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
192 inline CreateGlobalClusterRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
193 inline CreateGlobalClusterRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
194 inline CreateGlobalClusterRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
196 private:
197
198 Aws::String m_globalClusterIdentifier;
199 bool m_globalClusterIdentifierHasBeenSet = false;
200
201 Aws::String m_sourceDBClusterIdentifier;
202 bool m_sourceDBClusterIdentifierHasBeenSet = false;
203
204 Aws::String m_engine;
205 bool m_engineHasBeenSet = false;
206
207 Aws::String m_engineVersion;
208 bool m_engineVersionHasBeenSet = false;
209
210 Aws::String m_engineLifecycleSupport;
211 bool m_engineLifecycleSupportHasBeenSet = false;
212
213 bool m_deletionProtection;
214 bool m_deletionProtectionHasBeenSet = false;
215
216 Aws::String m_databaseName;
217 bool m_databaseNameHasBeenSet = false;
218
219 bool m_storageEncrypted;
220 bool m_storageEncryptedHasBeenSet = false;
221
222 Aws::Vector<Tag> m_tags;
223 bool m_tagsHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace RDS
228} // namespace Aws
CreateGlobalClusterRequest & WithEngineVersion(const char *value)
AWS_RDS_API Aws::String SerializePayload() const override
CreateGlobalClusterRequest & WithDeletionProtection(bool value)
CreateGlobalClusterRequest & WithGlobalClusterIdentifier(Aws::String &&value)
CreateGlobalClusterRequest & WithGlobalClusterIdentifier(const char *value)
CreateGlobalClusterRequest & WithEngineLifecycleSupport(Aws::String &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateGlobalClusterRequest & AddTags(const Tag &value)
CreateGlobalClusterRequest & WithEngine(Aws::String &&value)
CreateGlobalClusterRequest & WithDatabaseName(const char *value)
CreateGlobalClusterRequest & WithSourceDBClusterIdentifier(const Aws::String &value)
CreateGlobalClusterRequest & WithEngineLifecycleSupport(const Aws::String &value)
CreateGlobalClusterRequest & WithDatabaseName(Aws::String &&value)
void SetSourceDBClusterIdentifier(const Aws::String &value)
CreateGlobalClusterRequest & WithEngine(const Aws::String &value)
CreateGlobalClusterRequest & WithSourceDBClusterIdentifier(const char *value)
CreateGlobalClusterRequest & WithDatabaseName(const Aws::String &value)
CreateGlobalClusterRequest & WithEngineVersion(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateGlobalClusterRequest & WithSourceDBClusterIdentifier(Aws::String &&value)
CreateGlobalClusterRequest & WithEngineVersion(const Aws::String &value)
void SetGlobalClusterIdentifier(const Aws::String &value)
CreateGlobalClusterRequest & WithEngineLifecycleSupport(const char *value)
CreateGlobalClusterRequest & WithTags(Aws::Vector< Tag > &&value)
CreateGlobalClusterRequest & WithStorageEncrypted(bool value)
CreateGlobalClusterRequest & WithEngine(const char *value)
CreateGlobalClusterRequest & AddTags(Tag &&value)
CreateGlobalClusterRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateGlobalClusterRequest & WithGlobalClusterIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector