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/docdb/DocDB_EXPORTS.h>
8#include <aws/docdb/DocDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace DocDB
15{
16namespace Model
17{
18
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateGlobalCluster"; }
35
36 AWS_DOCDB_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
47 inline const Aws::String& GetGlobalClusterIdentifier() const{ return m_globalClusterIdentifier; }
48 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
49 inline void SetGlobalClusterIdentifier(const Aws::String& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = value; }
50 inline void SetGlobalClusterIdentifier(Aws::String&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::move(value); }
51 inline void SetGlobalClusterIdentifier(const char* value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier.assign(value); }
54 inline CreateGlobalClusterRequest& WithGlobalClusterIdentifier(const char* value) { SetGlobalClusterIdentifier(value); return *this;}
56
58
62 inline const Aws::String& GetSourceDBClusterIdentifier() const{ return m_sourceDBClusterIdentifier; }
63 inline bool SourceDBClusterIdentifierHasBeenSet() const { return m_sourceDBClusterIdentifierHasBeenSet; }
64 inline void SetSourceDBClusterIdentifier(const Aws::String& value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier = value; }
65 inline void SetSourceDBClusterIdentifier(Aws::String&& value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier = std::move(value); }
66 inline void SetSourceDBClusterIdentifier(const char* value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier.assign(value); }
71
73
76 inline const Aws::String& GetEngine() const{ return m_engine; }
77 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
78 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
79 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
80 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
81 inline CreateGlobalClusterRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
82 inline CreateGlobalClusterRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
83 inline CreateGlobalClusterRequest& WithEngine(const char* value) { SetEngine(value); return *this;}
85
87
90 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
91 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
92 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
93 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
94 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
95 inline CreateGlobalClusterRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
96 inline CreateGlobalClusterRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
97 inline CreateGlobalClusterRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
99
101
105 inline bool GetDeletionProtection() const{ return m_deletionProtection; }
106 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
107 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
110
112
117 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
118 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
119 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
120 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
121 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
122 inline CreateGlobalClusterRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
123 inline CreateGlobalClusterRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
124 inline CreateGlobalClusterRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
126
128
131 inline bool GetStorageEncrypted() const{ return m_storageEncrypted; }
132 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
133 inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
134 inline CreateGlobalClusterRequest& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
136 private:
137
138 Aws::String m_globalClusterIdentifier;
139 bool m_globalClusterIdentifierHasBeenSet = false;
140
141 Aws::String m_sourceDBClusterIdentifier;
142 bool m_sourceDBClusterIdentifierHasBeenSet = false;
143
144 Aws::String m_engine;
145 bool m_engineHasBeenSet = false;
146
147 Aws::String m_engineVersion;
148 bool m_engineVersionHasBeenSet = false;
149
150 bool m_deletionProtection;
151 bool m_deletionProtectionHasBeenSet = false;
152
153 Aws::String m_databaseName;
154 bool m_databaseNameHasBeenSet = false;
155
156 bool m_storageEncrypted;
157 bool m_storageEncryptedHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace DocDB
162} // namespace Aws
CreateGlobalClusterRequest & WithEngine(Aws::String &&value)
CreateGlobalClusterRequest & WithEngineVersion(Aws::String &&value)
AWS_DOCDB_API Aws::String SerializePayload() const override
CreateGlobalClusterRequest & WithSourceDBClusterIdentifier(const char *value)
CreateGlobalClusterRequest & WithGlobalClusterIdentifier(const Aws::String &value)
CreateGlobalClusterRequest & WithGlobalClusterIdentifier(Aws::String &&value)
CreateGlobalClusterRequest & WithGlobalClusterIdentifier(const char *value)
virtual const char * GetServiceRequestName() const override
CreateGlobalClusterRequest & WithStorageEncrypted(bool value)
CreateGlobalClusterRequest & WithEngine(const char *value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateGlobalClusterRequest & WithSourceDBClusterIdentifier(Aws::String &&value)
CreateGlobalClusterRequest & WithDatabaseName(Aws::String &&value)
CreateGlobalClusterRequest & WithDatabaseName(const char *value)
CreateGlobalClusterRequest & WithDatabaseName(const Aws::String &value)
CreateGlobalClusterRequest & WithDeletionProtection(bool value)
CreateGlobalClusterRequest & WithEngine(const Aws::String &value)
CreateGlobalClusterRequest & WithEngineVersion(const char *value)
CreateGlobalClusterRequest & WithSourceDBClusterIdentifier(const Aws::String &value)
CreateGlobalClusterRequest & WithEngineVersion(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String