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/neptune/Neptune_EXPORTS.h>
8#include <aws/neptune/NeptuneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Neptune
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_NEPTUNE_API CreateGlobalClusterRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateGlobalCluster"; }
31
32 AWS_NEPTUNE_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
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) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value); }
47 template<typename GlobalClusterIdentifierT = Aws::String>
48 CreateGlobalClusterRequest& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value)); return *this;}
50
52
56 inline const Aws::String& GetSourceDBClusterIdentifier() const { return m_sourceDBClusterIdentifier; }
57 inline bool SourceDBClusterIdentifierHasBeenSet() const { return m_sourceDBClusterIdentifierHasBeenSet; }
58 template<typename SourceDBClusterIdentifierT = Aws::String>
59 void SetSourceDBClusterIdentifier(SourceDBClusterIdentifierT&& value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier = std::forward<SourceDBClusterIdentifierT>(value); }
60 template<typename SourceDBClusterIdentifierT = Aws::String>
61 CreateGlobalClusterRequest& WithSourceDBClusterIdentifier(SourceDBClusterIdentifierT&& value) { SetSourceDBClusterIdentifier(std::forward<SourceDBClusterIdentifierT>(value)); return *this;}
63
65
69 inline const Aws::String& GetEngine() const { return m_engine; }
70 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
71 template<typename EngineT = Aws::String>
72 void SetEngine(EngineT&& value) { m_engineHasBeenSet = true; m_engine = std::forward<EngineT>(value); }
73 template<typename EngineT = Aws::String>
74 CreateGlobalClusterRequest& WithEngine(EngineT&& value) { SetEngine(std::forward<EngineT>(value)); return *this;}
76
78
82 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
83 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
84 template<typename EngineVersionT = Aws::String>
85 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
86 template<typename EngineVersionT = Aws::String>
87 CreateGlobalClusterRequest& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
89
91
95 inline bool GetDeletionProtection() const { return m_deletionProtection; }
96 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
97 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
98 inline CreateGlobalClusterRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
100
102
105 inline bool GetStorageEncrypted() const { return m_storageEncrypted; }
106 inline bool StorageEncryptedHasBeenSet() const { return m_storageEncryptedHasBeenSet; }
107 inline void SetStorageEncrypted(bool value) { m_storageEncryptedHasBeenSet = true; m_storageEncrypted = value; }
108 inline CreateGlobalClusterRequest& WithStorageEncrypted(bool value) { SetStorageEncrypted(value); return *this;}
110 private:
111
112 Aws::String m_globalClusterIdentifier;
113 bool m_globalClusterIdentifierHasBeenSet = false;
114
115 Aws::String m_sourceDBClusterIdentifier;
116 bool m_sourceDBClusterIdentifierHasBeenSet = false;
117
118 Aws::String m_engine;
119 bool m_engineHasBeenSet = false;
120
121 Aws::String m_engineVersion;
122 bool m_engineVersionHasBeenSet = false;
123
124 bool m_deletionProtection{false};
125 bool m_deletionProtectionHasBeenSet = false;
126
127 bool m_storageEncrypted{false};
128 bool m_storageEncryptedHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Neptune
133} // 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