AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
26 AWS_RDS_API CreateGlobalClusterRequest() = default;
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 template<typename GlobalClusterIdentifierT = Aws::String>
49 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value); }
50 template<typename GlobalClusterIdentifierT = Aws::String>
51 CreateGlobalClusterRequest& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value)); return *this;}
53
55
64 inline const Aws::String& GetSourceDBClusterIdentifier() const { return m_sourceDBClusterIdentifier; }
65 inline bool SourceDBClusterIdentifierHasBeenSet() const { return m_sourceDBClusterIdentifierHasBeenSet; }
66 template<typename SourceDBClusterIdentifierT = Aws::String>
67 void SetSourceDBClusterIdentifier(SourceDBClusterIdentifierT&& value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier = std::forward<SourceDBClusterIdentifierT>(value); }
68 template<typename SourceDBClusterIdentifierT = Aws::String>
69 CreateGlobalClusterRequest& WithSourceDBClusterIdentifier(SourceDBClusterIdentifierT&& value) { SetSourceDBClusterIdentifier(std::forward<SourceDBClusterIdentifierT>(value)); return *this;}
71
73
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) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
84 template<typename EngineT = Aws::String>
85 CreateGlobalClusterRequest& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
87
89
95 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
96 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
97 template<typename EngineVersionT = Aws::String>
98 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
99 template<typename EngineVersionT = Aws::String>
100 CreateGlobalClusterRequest& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
102
104
122 inline const Aws::String& GetEngineLifecycleSupport() const { return m_engineLifecycleSupport; }
123 inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; }
124 template<typename EngineLifecycleSupportT = Aws::String>
125 void SetEngineLifecycleSupport(EngineLifecycleSupportT&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::forward<EngineLifecycleSupportT>(value); }
126 template<typename EngineLifecycleSupportT = Aws::String>
127 CreateGlobalClusterRequest& WithEngineLifecycleSupport(EngineLifecycleSupportT&& value) { SetEngineLifecycleSupport(std::forward<EngineLifecycleSupportT>(value)); return *this;}
129
131
136 inline bool GetDeletionProtection() const { return m_deletionProtection; }
137 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
138 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
141
143
150 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
151 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
152 template<typename DatabaseNameT = Aws::String>
153 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
154 template<typename DatabaseNameT = Aws::String>
155 CreateGlobalClusterRequest& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
157
159
165 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
166 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
167 inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
168 inline CreateGlobalClusterRequest& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
170
172
175 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
176 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 template<typename TagsT = Aws::Vector<Tag>>
178 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
179 template<typename TagsT = Aws::Vector<Tag>>
180 CreateGlobalClusterRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
181 template<typename TagsT = Tag>
182 CreateGlobalClusterRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
184 private:
185
186 Aws::String m_globalClusterIdentifier;
187 bool m_globalClusterIdentifierHasBeenSet = false;
188
189 Aws::String m_sourceDBClusterIdentifier;
190 bool m_sourceDBClusterIdentifierHasBeenSet = false;
191
192 Aws::String m_engine;
193 bool m_engineHasBeenSet = false;
194
195 Aws::String m_engineVersion;
196 bool m_engineVersionHasBeenSet = false;
197
198 Aws::String m_engineLifecycleSupport;
199 bool m_engineLifecycleSupportHasBeenSet = false;
200
201 bool m_deletionProtection{false};
202 bool m_deletionProtectionHasBeenSet = false;
203
204 Aws::String m_databaseName;
205 bool m_databaseNameHasBeenSet = false;
206
207 bool m_storageEncrypted{false};
208 bool m_storageEncryptedHasBeenSet = false;
209
210 Aws::Vector<Tag> m_tags;
211 bool m_tagsHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace RDS
216} // namespace Aws
AWS_RDS_API Aws::String SerializePayload() const override
CreateGlobalClusterRequest & WithDeletionProtection(bool value)
AWS_RDS_API CreateGlobalClusterRequest()=default
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
CreateGlobalClusterRequest & WithEngineVersion(EngineVersionT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetSourceDBClusterIdentifier(SourceDBClusterIdentifierT &&value)
CreateGlobalClusterRequest & WithDatabaseName(DatabaseNameT &&value)
CreateGlobalClusterRequest & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
CreateGlobalClusterRequest & WithSourceDBClusterIdentifier(SourceDBClusterIdentifierT &&value)
CreateGlobalClusterRequest & WithEngineLifecycleSupport(EngineLifecycleSupportT &&value)
CreateGlobalClusterRequest & WithEngine(EngineT &&value)
virtual const char * GetServiceRequestName() const override
CreateGlobalClusterRequest & WithTags(TagsT &&value)
void SetEngineLifecycleSupport(EngineLifecycleSupportT &&value)
CreateGlobalClusterRequest & WithStorageEncrypted(bool value)
CreateGlobalClusterRequest & AddTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector