AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateGlobalClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/neptune/NeptuneRequest.h>
9#include <aws/neptune/Neptune_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Neptune {
15namespace Model {
16
20 public:
21 AWS_NEPTUNE_API CreateGlobalClusterRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreateGlobalCluster"; }
28
29 AWS_NEPTUNE_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
40 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
41 template <typename GlobalClusterIdentifierT = Aws::String>
42 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
43 m_globalClusterIdentifierHasBeenSet = true;
44 m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value);
45 }
46 template <typename GlobalClusterIdentifierT = Aws::String>
47 CreateGlobalClusterRequest& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
48 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetSourceDBClusterIdentifier() const { return m_sourceDBClusterIdentifier; }
59 inline bool SourceDBClusterIdentifierHasBeenSet() const { return m_sourceDBClusterIdentifierHasBeenSet; }
60 template <typename SourceDBClusterIdentifierT = Aws::String>
61 void SetSourceDBClusterIdentifier(SourceDBClusterIdentifierT&& value) {
62 m_sourceDBClusterIdentifierHasBeenSet = true;
63 m_sourceDBClusterIdentifier = std::forward<SourceDBClusterIdentifierT>(value);
64 }
65 template <typename SourceDBClusterIdentifierT = Aws::String>
66 CreateGlobalClusterRequest& WithSourceDBClusterIdentifier(SourceDBClusterIdentifierT&& value) {
67 SetSourceDBClusterIdentifier(std::forward<SourceDBClusterIdentifierT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetEngine() const { return m_engine; }
78 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
79 template <typename EngineT = Aws::String>
80 void SetEngine(EngineT&& value) {
81 m_engineHasBeenSet = true;
82 m_engine = std::forward<EngineT>(value);
83 }
84 template <typename EngineT = Aws::String>
86 SetEngine(std::forward<EngineT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
97 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
98 template <typename EngineVersionT = Aws::String>
99 void SetEngineVersion(EngineVersionT&& value) {
100 m_engineVersionHasBeenSet = true;
101 m_engineVersion = std::forward<EngineVersionT>(value);
102 }
103 template <typename EngineVersionT = Aws::String>
105 SetEngineVersion(std::forward<EngineVersionT>(value));
106 return *this;
107 }
109
111
115 inline bool GetDeletionProtection() const { return m_deletionProtection; }
116 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
117 inline void SetDeletionProtection(bool value) {
118 m_deletionProtectionHasBeenSet = true;
119 m_deletionProtection = value;
120 }
123 return *this;
124 }
126
128
131 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
132 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
133 inline void SetStorageEncrypted(bool value) {
134 m_storageEncryptedHasBeenSet = true;
135 m_storageEncrypted = value;
136 }
138 SetStorageEncrypted(value);
139 return *this;
140 }
142 private:
143 Aws::String m_globalClusterIdentifier;
144
145 Aws::String m_sourceDBClusterIdentifier;
146
147 Aws::String m_engine;
148
149 Aws::String m_engineVersion;
150
151 bool m_deletionProtection{false};
152
153 bool m_storageEncrypted{false};
154 bool m_globalClusterIdentifierHasBeenSet = false;
155 bool m_sourceDBClusterIdentifierHasBeenSet = false;
156 bool m_engineHasBeenSet = false;
157 bool m_engineVersionHasBeenSet = false;
158 bool m_deletionProtectionHasBeenSet = false;
159 bool m_storageEncryptedHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Neptune
164} // namespace Aws
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetSourceDBClusterIdentifier(SourceDBClusterIdentifierT &&value)
CreateGlobalClusterRequest & WithEngineVersion(EngineVersionT &&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)
virtual const char * GetServiceRequestName() const override
CreateGlobalClusterRequest & WithEngine(EngineT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String