AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateGlobalClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/docdb/DocDBRequest.h>
9#include <aws/docdb/DocDB_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace DocDB {
15namespace Model {
16
24 public:
25 AWS_DOCDB_API CreateGlobalClusterRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateGlobalCluster"; }
32
33 AWS_DOCDB_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
43 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
44 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
45 template <typename GlobalClusterIdentifierT = Aws::String>
46 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
47 m_globalClusterIdentifierHasBeenSet = true;
48 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
49 }
50 template <typename GlobalClusterIdentifierT = Aws::String>
51 CreateGlobalClusterRequest& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
52 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetSourceDBClusterIdentifier() const { return m_sourceDBClusterIdentifier; }
63 inline bool SourceDBClusterIdentifierHasBeenSet() const { return m_sourceDBClusterIdentifierHasBeenSet; }
64 template <typename SourceDBClusterIdentifierT = Aws::String>
65 void SetSourceDBClusterIdentifier(SourceDBClusterIdentifierT&& value) {
66 m_sourceDBClusterIdentifierHasBeenSet = true;
67 m_sourceDBClusterIdentifier = std::forward<SourceDBClusterIdentifierT>(value);
68 }
69 template <typename SourceDBClusterIdentifierT = Aws::String>
70 CreateGlobalClusterRequest& WithSourceDBClusterIdentifier(SourceDBClusterIdentifierT&& value) {
71 SetSourceDBClusterIdentifier(std::forward<SourceDBClusterIdentifierT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetEngine() const { return m_engine; }
81 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
82 template <typename EngineT = Aws::String>
83 void SetEngine(EngineT&& value) {
84 m_engineHasBeenSet = true;
85 m_engine = std::forward<EngineT>(value);
86 }
87 template <typename EngineT = Aws::String>
89 SetEngine(std::forward<EngineT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
99 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
100 template <typename EngineVersionT = Aws::String>
101 void SetEngineVersion(EngineVersionT&& value) {
102 m_engineVersionHasBeenSet = true;
103 m_engineVersion = std::forward<EngineVersionT>(value);
104 }
105 template <typename EngineVersionT = Aws::String>
107 SetEngineVersion(std::forward<EngineVersionT>(value));
108 return *this;
109 }
111
113
117 inline bool GetDeletionProtection() const { return m_deletionProtection; }
118 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
119 inline void SetDeletionProtection(bool value) {
120 m_deletionProtectionHasBeenSet = true;
121 m_deletionProtection = value;
122 }
125 return *this;
126 }
128
130
135 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
136 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
137 template <typename DatabaseNameT = Aws::String>
138 void SetDatabaseName(DatabaseNameT&& value) {
139 m_databaseNameHasBeenSet = true;
140 m_databaseName = std::forward<DatabaseNameT>(value);
141 }
142 template <typename DatabaseNameT = Aws::String>
144 SetDatabaseName(std::forward<DatabaseNameT>(value));
145 return *this;
146 }
148
150
153 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
154 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
155 inline void SetStorageEncrypted(bool value) {
156 m_storageEncryptedHasBeenSet = true;
157 m_storageEncrypted = value;
158 }
160 SetStorageEncrypted(value);
161 return *this;
162 }
164 private:
165 Aws::String m_globalClusterIdentifier;
166
167 Aws::String m_sourceDBClusterIdentifier;
168
169 Aws::String m_engine;
170
171 Aws::String m_engineVersion;
172
173 bool m_deletionProtection{false};
174
175 Aws::String m_databaseName;
176
177 bool m_storageEncrypted{false};
178 bool m_globalClusterIdentifierHasBeenSet = false;
179 bool m_sourceDBClusterIdentifierHasBeenSet = false;
180 bool m_engineHasBeenSet = false;
181 bool m_engineVersionHasBeenSet = false;
182 bool m_deletionProtectionHasBeenSet = false;
183 bool m_databaseNameHasBeenSet = false;
184 bool m_storageEncryptedHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace DocDB
189} // namespace Aws
CreateGlobalClusterRequest & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
AWS_DOCDB_API Aws::String SerializePayload() const override
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
void SetSourceDBClusterIdentifier(SourceDBClusterIdentifierT &&value)
CreateGlobalClusterRequest & WithStorageEncrypted(bool value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateGlobalClusterRequest & WithEngine(EngineT &&value)
CreateGlobalClusterRequest & WithDatabaseName(DatabaseNameT &&value)
CreateGlobalClusterRequest & WithEngineVersion(EngineVersionT &&value)
CreateGlobalClusterRequest & WithDeletionProtection(bool value)
AWS_DOCDB_API CreateGlobalClusterRequest()=default
CreateGlobalClusterRequest & WithSourceDBClusterIdentifier(SourceDBClusterIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String