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/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:
28 AWS_DOCDB_API CreateGlobalClusterRequest() = default;
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 template<typename GlobalClusterIdentifierT = Aws::String>
50 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value); }
51 template<typename GlobalClusterIdentifierT = Aws::String>
52 CreateGlobalClusterRequest& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value)); return *this;}
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) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier = std::forward<SourceDBClusterIdentifierT>(value); }
64 template<typename SourceDBClusterIdentifierT = Aws::String>
65 CreateGlobalClusterRequest& WithSourceDBClusterIdentifier(SourceDBClusterIdentifierT&& value) { SetSourceDBClusterIdentifier(std::forward<SourceDBClusterIdentifierT>(value)); return *this;}
67
69
72 inline const Aws::String& GetEngine() const { return m_engine; }
73 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
74 template<typename EngineT = Aws::String>
75 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
76 template<typename EngineT = Aws::String>
77 CreateGlobalClusterRequest& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
79
81
84 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
85 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
86 template<typename EngineVersionT = Aws::String>
87 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
88 template<typename EngineVersionT = Aws::String>
89 CreateGlobalClusterRequest& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
91
93
97 inline bool GetDeletionProtection() const { return m_deletionProtection; }
98 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
99 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
102
104
109 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
110 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
111 template<typename DatabaseNameT = Aws::String>
112 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
113 template<typename DatabaseNameT = Aws::String>
114 CreateGlobalClusterRequest& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
116
118
121 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
122 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
123 inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
124 inline CreateGlobalClusterRequest& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
126 private:
127
128 Aws::String m_globalClusterIdentifier;
129 bool m_globalClusterIdentifierHasBeenSet = false;
130
131 Aws::String m_sourceDBClusterIdentifier;
132 bool m_sourceDBClusterIdentifierHasBeenSet = false;
133
134 Aws::String m_engine;
135 bool m_engineHasBeenSet = false;
136
137 Aws::String m_engineVersion;
138 bool m_engineVersionHasBeenSet = false;
139
140 bool m_deletionProtection{false};
141 bool m_deletionProtectionHasBeenSet = false;
142
143 Aws::String m_databaseName;
144 bool m_databaseNameHasBeenSet = false;
145
146 bool m_storageEncrypted{false};
147 bool m_storageEncryptedHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace DocDB
152} // 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