AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
ModifyGlobalClusterRequest.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 ModifyGlobalClusterRequest() = 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 "ModifyGlobalCluster"; }
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
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 ModifyGlobalClusterRequest& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) {
50 SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value));
51 return *this;
52 }
54
56
63 inline const Aws::String& GetNewGlobalClusterIdentifier() const { return m_newGlobalClusterIdentifier; }
64 inline bool NewGlobalClusterIdentifierHasBeenSet() const { return m_newGlobalClusterIdentifierHasBeenSet; }
65 template <typename NewGlobalClusterIdentifierT = Aws::String>
66 void SetNewGlobalClusterIdentifier(NewGlobalClusterIdentifierT&& value) {
67 m_newGlobalClusterIdentifierHasBeenSet = true;
68 m_newGlobalClusterIdentifier = std::forward<NewGlobalClusterIdentifierT>(value);
69 }
70 template <typename NewGlobalClusterIdentifierT = Aws::String>
71 ModifyGlobalClusterRequest& WithNewGlobalClusterIdentifier(NewGlobalClusterIdentifierT&& value) {
72 SetNewGlobalClusterIdentifier(std::forward<NewGlobalClusterIdentifierT>(value));
73 return *this;
74 }
76
78
82 inline bool GetDeletionProtection() const { return m_deletionProtection; }
83 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
84 inline void SetDeletionProtection(bool value) {
85 m_deletionProtectionHasBeenSet = true;
86 m_deletionProtection = value;
87 }
90 return *this;
91 }
93
95
102 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
103 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
104 template <typename EngineVersionT = Aws::String>
105 void SetEngineVersion(EngineVersionT&& value) {
106 m_engineVersionHasBeenSet = true;
107 m_engineVersion = std::forward<EngineVersionT>(value);
108 }
109 template <typename EngineVersionT = Aws::String>
111 SetEngineVersion(std::forward<EngineVersionT>(value));
112 return *this;
113 }
115
117
126 inline bool GetAllowMajorVersionUpgrade() const { return m_allowMajorVersionUpgrade; }
127 inline bool AllowMajorVersionUpgradeHasBeenSet() const { return m_allowMajorVersionUpgradeHasBeenSet; }
128 inline void SetAllowMajorVersionUpgrade(bool value) {
129 m_allowMajorVersionUpgradeHasBeenSet = true;
130 m_allowMajorVersionUpgrade = value;
131 }
134 return *this;
135 }
137 private:
138 Aws::String m_globalClusterIdentifier;
139 bool m_globalClusterIdentifierHasBeenSet = false;
140
141 Aws::String m_newGlobalClusterIdentifier;
142 bool m_newGlobalClusterIdentifierHasBeenSet = false;
143
144 bool m_deletionProtection{false};
145 bool m_deletionProtectionHasBeenSet = false;
146
147 Aws::String m_engineVersion;
148 bool m_engineVersionHasBeenSet = false;
149
150 bool m_allowMajorVersionUpgrade{false};
151 bool m_allowMajorVersionUpgradeHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace Neptune
156} // namespace Aws
void SetNewGlobalClusterIdentifier(NewGlobalClusterIdentifierT &&value)
ModifyGlobalClusterRequest & WithEngineVersion(EngineVersionT &&value)
AWS_NEPTUNE_API ModifyGlobalClusterRequest()=default
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
ModifyGlobalClusterRequest & WithAllowMajorVersionUpgrade(bool value)
ModifyGlobalClusterRequest & WithDeletionProtection(bool value)
ModifyGlobalClusterRequest & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
ModifyGlobalClusterRequest & WithNewGlobalClusterIdentifier(NewGlobalClusterIdentifierT &&value)
AWS_NEPTUNE_API Aws::String SerializePayload() const override
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String