AWS SDK for C++

AWS SDK for C++ Version 1.11.784

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/neptune/NeptuneRequest.h>
10#include <aws/neptune/Neptune_EXPORTS.h>
11#include <aws/neptune/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Neptune {
17namespace Model {
18
22 public:
23 AWS_NEPTUNE_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_NEPTUNE_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
42 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
43 template <typename GlobalClusterIdentifierT = Aws::String>
44 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
45 m_globalClusterIdentifierHasBeenSet = true;
46 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
47 }
48 template <typename GlobalClusterIdentifierT = Aws::String>
49 CreateGlobalClusterRequest& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
50 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetSourceDBClusterIdentifier() const { return m_sourceDBClusterIdentifier; }
61 inline bool SourceDBClusterIdentifierHasBeenSet() const { return m_sourceDBClusterIdentifierHasBeenSet; }
62 template <typename SourceDBClusterIdentifierT = Aws::String>
63 void SetSourceDBClusterIdentifier(SourceDBClusterIdentifierT&& value) {
64 m_sourceDBClusterIdentifierHasBeenSet = true;
65 m_sourceDBClusterIdentifier = std::forward<SourceDBClusterIdentifierT>(value);
66 }
67 template <typename SourceDBClusterIdentifierT = Aws::String>
68 CreateGlobalClusterRequest& WithSourceDBClusterIdentifier(SourceDBClusterIdentifierT&& value) {
69 SetSourceDBClusterIdentifier(std::forward<SourceDBClusterIdentifierT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetEngine() const { return m_engine; }
80 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
81 template <typename EngineT = Aws::String>
82 void SetEngine(EngineT&& value) {
83 m_engineHasBeenSet = true;
84 m_engine = std::forward<EngineT>(value);
85 }
86 template <typename EngineT = Aws::String>
88 SetEngine(std::forward<EngineT>(value));
89 return *this;
90 }
92
94
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
133 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
134 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
135 template <typename DatabaseNameT = Aws::String>
136 void SetDatabaseName(DatabaseNameT&& value) {
137 m_databaseNameHasBeenSet = true;
138 m_databaseName = std::forward<DatabaseNameT>(value);
139 }
140 template <typename DatabaseNameT = Aws::String>
142 SetDatabaseName(std::forward<DatabaseNameT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 template <typename TagsT = Aws::Vector<Tag>>
154 void SetTags(TagsT&& value) {
155 m_tagsHasBeenSet = true;
156 m_tags = std::forward<TagsT>(value);
157 }
158 template <typename TagsT = Aws::Vector<Tag>>
160 SetTags(std::forward<TagsT>(value));
161 return *this;
162 }
163 template <typename TagsT = Tag>
165 m_tagsHasBeenSet = true;
166 m_tags.emplace_back(std::forward<TagsT>(value));
167 return *this;
168 }
170
172
175 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
176 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
177 inline void SetStorageEncrypted(bool value) {
178 m_storageEncryptedHasBeenSet = true;
179 m_storageEncrypted = value;
180 }
182 SetStorageEncrypted(value);
183 return *this;
184 }
186 private:
187 Aws::String m_globalClusterIdentifier;
188
189 Aws::String m_sourceDBClusterIdentifier;
190
191 Aws::String m_engine;
192
193 Aws::String m_engineVersion;
194
195 bool m_deletionProtection{false};
196
197 Aws::String m_databaseName;
198
199 Aws::Vector<Tag> m_tags;
200
201 bool m_storageEncrypted{false};
202 bool m_globalClusterIdentifierHasBeenSet = false;
203 bool m_sourceDBClusterIdentifierHasBeenSet = false;
204 bool m_engineHasBeenSet = false;
205 bool m_engineVersionHasBeenSet = false;
206 bool m_deletionProtectionHasBeenSet = false;
207 bool m_databaseNameHasBeenSet = false;
208 bool m_tagsHasBeenSet = false;
209 bool m_storageEncryptedHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace Neptune
214} // namespace Aws
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateGlobalClusterRequest & WithDatabaseName(DatabaseNameT &&value)
void SetSourceDBClusterIdentifier(SourceDBClusterIdentifierT &&value)
CreateGlobalClusterRequest & WithEngineVersion(EngineVersionT &&value)
CreateGlobalClusterRequest & WithTags(TagsT &&value)
AWS_NEPTUNE_API Aws::String SerializePayload() const override
AWS_NEPTUNE_API CreateGlobalClusterRequest()=default
CreateGlobalClusterRequest & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
CreateGlobalClusterRequest & WithSourceDBClusterIdentifier(SourceDBClusterIdentifierT &&value)
CreateGlobalClusterRequest & WithDeletionProtection(bool value)
CreateGlobalClusterRequest & WithStorageEncrypted(bool value)
CreateGlobalClusterRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateGlobalClusterRequest & WithEngine(EngineT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector