AWS SDK for C++  1.9.108
AWS SDK for C++
CreateGlobalClusterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace RDS
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateGlobalCluster"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetGlobalClusterIdentifier() const{ return m_globalClusterIdentifier; }
43 
47  inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
48 
52  inline void SetGlobalClusterIdentifier(const Aws::String& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = value; }
53 
57  inline void SetGlobalClusterIdentifier(Aws::String&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::move(value); }
58 
62  inline void SetGlobalClusterIdentifier(const char* value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier.assign(value); }
63 
67  inline CreateGlobalClusterRequest& WithGlobalClusterIdentifier(const Aws::String& value) { SetGlobalClusterIdentifier(value); return *this;}
68 
72  inline CreateGlobalClusterRequest& WithGlobalClusterIdentifier(Aws::String&& value) { SetGlobalClusterIdentifier(std::move(value)); return *this;}
73 
77  inline CreateGlobalClusterRequest& WithGlobalClusterIdentifier(const char* value) { SetGlobalClusterIdentifier(value); return *this;}
78 
79 
84  inline const Aws::String& GetSourceDBClusterIdentifier() const{ return m_sourceDBClusterIdentifier; }
85 
90  inline bool SourceDBClusterIdentifierHasBeenSet() const { return m_sourceDBClusterIdentifierHasBeenSet; }
91 
96  inline void SetSourceDBClusterIdentifier(const Aws::String& value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier = value; }
97 
102  inline void SetSourceDBClusterIdentifier(Aws::String&& value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier = std::move(value); }
103 
108  inline void SetSourceDBClusterIdentifier(const char* value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier.assign(value); }
109 
114  inline CreateGlobalClusterRequest& WithSourceDBClusterIdentifier(const Aws::String& value) { SetSourceDBClusterIdentifier(value); return *this;}
115 
120  inline CreateGlobalClusterRequest& WithSourceDBClusterIdentifier(Aws::String&& value) { SetSourceDBClusterIdentifier(std::move(value)); return *this;}
121 
126  inline CreateGlobalClusterRequest& WithSourceDBClusterIdentifier(const char* value) { SetSourceDBClusterIdentifier(value); return *this;}
127 
128 
132  inline const Aws::String& GetEngine() const{ return m_engine; }
133 
137  inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
138 
142  inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
143 
147  inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
148 
152  inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
153 
157  inline CreateGlobalClusterRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
158 
162  inline CreateGlobalClusterRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
163 
167  inline CreateGlobalClusterRequest& WithEngine(const char* value) { SetEngine(value); return *this;}
168 
169 
173  inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
174 
178  inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
179 
183  inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
184 
188  inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
189 
193  inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
194 
198  inline CreateGlobalClusterRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
199 
203  inline CreateGlobalClusterRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
204 
208  inline CreateGlobalClusterRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
209 
210 
215  inline bool GetDeletionProtection() const{ return m_deletionProtection; }
216 
221  inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
222 
227  inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
228 
233  inline CreateGlobalClusterRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
234 
235 
241  inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
242 
248  inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
249 
255  inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
256 
262  inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
263 
269  inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
270 
276  inline CreateGlobalClusterRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
277 
283  inline CreateGlobalClusterRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
284 
290  inline CreateGlobalClusterRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
291 
292 
296  inline bool GetStorageEncrypted() const{ return m_storageEncrypted; }
297 
301  inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
302 
306  inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
307 
311  inline CreateGlobalClusterRequest& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
312 
313  private:
314 
315  Aws::String m_globalClusterIdentifier;
316  bool m_globalClusterIdentifierHasBeenSet;
317 
318  Aws::String m_sourceDBClusterIdentifier;
319  bool m_sourceDBClusterIdentifierHasBeenSet;
320 
321  Aws::String m_engine;
322  bool m_engineHasBeenSet;
323 
324  Aws::String m_engineVersion;
325  bool m_engineVersionHasBeenSet;
326 
327  bool m_deletionProtection;
328  bool m_deletionProtectionHasBeenSet;
329 
330  Aws::String m_databaseName;
331  bool m_databaseNameHasBeenSet;
332 
333  bool m_storageEncrypted;
334  bool m_storageEncryptedHasBeenSet;
335  };
336 
337 } // namespace Model
338 } // namespace RDS
339 } // namespace Aws
Aws::RDS::Model::CreateGlobalClusterRequest::WithDatabaseName
CreateGlobalClusterRequest & WithDatabaseName(const Aws::String &value)
Definition: CreateGlobalClusterRequest.h:276
Aws::RDS::Model::CreateGlobalClusterRequest::SetEngine
void SetEngine(const Aws::String &value)
Definition: CreateGlobalClusterRequest.h:142
Aws::RDS::Model::CreateGlobalClusterRequest::SetDatabaseName
void SetDatabaseName(const Aws::String &value)
Definition: CreateGlobalClusterRequest.h:255
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::CreateGlobalClusterRequest::CreateGlobalClusterRequest
CreateGlobalClusterRequest()
Aws::RDS::Model::CreateGlobalClusterRequest::WithGlobalClusterIdentifier
CreateGlobalClusterRequest & WithGlobalClusterIdentifier(const Aws::String &value)
Definition: CreateGlobalClusterRequest.h:67
Aws::RDS::Model::CreateGlobalClusterRequest::WithSourceDBClusterIdentifier
CreateGlobalClusterRequest & WithSourceDBClusterIdentifier(const Aws::String &value)
Definition: CreateGlobalClusterRequest.h:114
Aws::RDS::Model::CreateGlobalClusterRequest::SourceDBClusterIdentifierHasBeenSet
bool SourceDBClusterIdentifierHasBeenSet() const
Definition: CreateGlobalClusterRequest.h:90
Aws::RDS::Model::CreateGlobalClusterRequest::GlobalClusterIdentifierHasBeenSet
bool GlobalClusterIdentifierHasBeenSet() const
Definition: CreateGlobalClusterRequest.h:47
Aws::RDS::Model::CreateGlobalClusterRequest::SetEngine
void SetEngine(Aws::String &&value)
Definition: CreateGlobalClusterRequest.h:147
Aws::RDS::Model::CreateGlobalClusterRequest::GetEngineVersion
const Aws::String & GetEngineVersion() const
Definition: CreateGlobalClusterRequest.h:173
Aws::RDS::Model::CreateGlobalClusterRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::CreateGlobalClusterRequest
Definition: CreateGlobalClusterRequest.h:22
Aws::RDS::Model::CreateGlobalClusterRequest::SetDeletionProtection
void SetDeletionProtection(bool value)
Definition: CreateGlobalClusterRequest.h:227
Aws::RDS::Model::CreateGlobalClusterRequest::SetEngineVersion
void SetEngineVersion(Aws::String &&value)
Definition: CreateGlobalClusterRequest.h:188
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::CreateGlobalClusterRequest::GetEngine
const Aws::String & GetEngine() const
Definition: CreateGlobalClusterRequest.h:132
Aws::RDS::Model::CreateGlobalClusterRequest::WithDatabaseName
CreateGlobalClusterRequest & WithDatabaseName(const char *value)
Definition: CreateGlobalClusterRequest.h:290
Aws::RDS::Model::CreateGlobalClusterRequest::SetSourceDBClusterIdentifier
void SetSourceDBClusterIdentifier(const Aws::String &value)
Definition: CreateGlobalClusterRequest.h:96
Aws::RDS::Model::CreateGlobalClusterRequest::GetDatabaseName
const Aws::String & GetDatabaseName() const
Definition: CreateGlobalClusterRequest.h:241
Aws::RDS::Model::CreateGlobalClusterRequest::GetSourceDBClusterIdentifier
const Aws::String & GetSourceDBClusterIdentifier() const
Definition: CreateGlobalClusterRequest.h:84
Aws::RDS::Model::CreateGlobalClusterRequest::SetStorageEncrypted
void SetStorageEncrypted(bool value)
Definition: CreateGlobalClusterRequest.h:306
Aws::RDS::Model::CreateGlobalClusterRequest::GetStorageEncrypted
bool GetStorageEncrypted() const
Definition: CreateGlobalClusterRequest.h:296
RDS_EXPORTS.h
Aws::RDS::Model::CreateGlobalClusterRequest::WithEngine
CreateGlobalClusterRequest & WithEngine(Aws::String &&value)
Definition: CreateGlobalClusterRequest.h:162
Aws::RDS::Model::CreateGlobalClusterRequest::SetSourceDBClusterIdentifier
void SetSourceDBClusterIdentifier(const char *value)
Definition: CreateGlobalClusterRequest.h:108
Aws::RDS::Model::CreateGlobalClusterRequest::SetSourceDBClusterIdentifier
void SetSourceDBClusterIdentifier(Aws::String &&value)
Definition: CreateGlobalClusterRequest.h:102
Aws::RDS::Model::CreateGlobalClusterRequest::EngineVersionHasBeenSet
bool EngineVersionHasBeenSet() const
Definition: CreateGlobalClusterRequest.h:178
Aws::RDS::Model::CreateGlobalClusterRequest::WithGlobalClusterIdentifier
CreateGlobalClusterRequest & WithGlobalClusterIdentifier(Aws::String &&value)
Definition: CreateGlobalClusterRequest.h:72
Aws::RDS::Model::CreateGlobalClusterRequest::WithDatabaseName
CreateGlobalClusterRequest & WithDatabaseName(Aws::String &&value)
Definition: CreateGlobalClusterRequest.h:283
Aws::RDS::Model::CreateGlobalClusterRequest::SetEngineVersion
void SetEngineVersion(const Aws::String &value)
Definition: CreateGlobalClusterRequest.h:183
Aws::RDS::Model::CreateGlobalClusterRequest::SetGlobalClusterIdentifier
void SetGlobalClusterIdentifier(const Aws::String &value)
Definition: CreateGlobalClusterRequest.h:52
AWSString.h
Aws::RDS::Model::CreateGlobalClusterRequest::SetEngineVersion
void SetEngineVersion(const char *value)
Definition: CreateGlobalClusterRequest.h:193
Aws::RDS::Model::CreateGlobalClusterRequest::GetGlobalClusterIdentifier
const Aws::String & GetGlobalClusterIdentifier() const
Definition: CreateGlobalClusterRequest.h:42
Aws::RDS::Model::CreateGlobalClusterRequest::SetGlobalClusterIdentifier
void SetGlobalClusterIdentifier(Aws::String &&value)
Definition: CreateGlobalClusterRequest.h:57
Aws::RDS::Model::CreateGlobalClusterRequest::WithDeletionProtection
CreateGlobalClusterRequest & WithDeletionProtection(bool value)
Definition: CreateGlobalClusterRequest.h:233
Aws::RDS::Model::CreateGlobalClusterRequest::SetEngine
void SetEngine(const char *value)
Definition: CreateGlobalClusterRequest.h:152
Aws::RDS::Model::CreateGlobalClusterRequest::EngineHasBeenSet
bool EngineHasBeenSet() const
Definition: CreateGlobalClusterRequest.h:137
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::CreateGlobalClusterRequest::WithStorageEncrypted
CreateGlobalClusterRequest & WithStorageEncrypted(bool value)
Definition: CreateGlobalClusterRequest.h:311
Aws::RDS::Model::CreateGlobalClusterRequest::SetGlobalClusterIdentifier
void SetGlobalClusterIdentifier(const char *value)
Definition: CreateGlobalClusterRequest.h:62
Aws::RDS::Model::CreateGlobalClusterRequest::DeletionProtectionHasBeenSet
bool DeletionProtectionHasBeenSet() const
Definition: CreateGlobalClusterRequest.h:221
Aws::RDS::Model::CreateGlobalClusterRequest::WithEngineVersion
CreateGlobalClusterRequest & WithEngineVersion(const Aws::String &value)
Definition: CreateGlobalClusterRequest.h:198
Aws::RDS::Model::CreateGlobalClusterRequest::GetDeletionProtection
bool GetDeletionProtection() const
Definition: CreateGlobalClusterRequest.h:215
Aws::RDS::Model::CreateGlobalClusterRequest::SetDatabaseName
void SetDatabaseName(Aws::String &&value)
Definition: CreateGlobalClusterRequest.h:262
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::CreateGlobalClusterRequest::WithGlobalClusterIdentifier
CreateGlobalClusterRequest & WithGlobalClusterIdentifier(const char *value)
Definition: CreateGlobalClusterRequest.h:77
Aws::RDS::Model::CreateGlobalClusterRequest::WithSourceDBClusterIdentifier
CreateGlobalClusterRequest & WithSourceDBClusterIdentifier(const char *value)
Definition: CreateGlobalClusterRequest.h:126
Aws::RDS::Model::CreateGlobalClusterRequest::WithEngineVersion
CreateGlobalClusterRequest & WithEngineVersion(Aws::String &&value)
Definition: CreateGlobalClusterRequest.h:203
Aws::RDS::Model::CreateGlobalClusterRequest::WithEngineVersion
CreateGlobalClusterRequest & WithEngineVersion(const char *value)
Definition: CreateGlobalClusterRequest.h:208
Aws::RDS::Model::CreateGlobalClusterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateGlobalClusterRequest.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::CreateGlobalClusterRequest::DatabaseNameHasBeenSet
bool DatabaseNameHasBeenSet() const
Definition: CreateGlobalClusterRequest.h:248
RDSRequest.h
Aws::RDS::Model::CreateGlobalClusterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::CreateGlobalClusterRequest::WithEngine
CreateGlobalClusterRequest & WithEngine(const Aws::String &value)
Definition: CreateGlobalClusterRequest.h:157
Aws::RDS::Model::CreateGlobalClusterRequest::WithEngine
CreateGlobalClusterRequest & WithEngine(const char *value)
Definition: CreateGlobalClusterRequest.h:167
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::CreateGlobalClusterRequest::SetDatabaseName
void SetDatabaseName(const char *value)
Definition: CreateGlobalClusterRequest.h:269
Aws::RDS::Model::CreateGlobalClusterRequest::WithSourceDBClusterIdentifier
CreateGlobalClusterRequest & WithSourceDBClusterIdentifier(Aws::String &&value)
Definition: CreateGlobalClusterRequest.h:120
Aws::RDS::Model::CreateGlobalClusterRequest::StorageEncryptedHasBeenSet
bool StorageEncryptedHasBeenSet() const
Definition: CreateGlobalClusterRequest.h:301