AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyGlobalClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace RDS {
15namespace Model {
16
20 public:
21 AWS_RDS_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_RDS_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_RDS_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
83 inline bool GetDeletionProtection() const { return m_deletionProtection; }
84 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
85 inline void SetDeletionProtection(bool value) {
86 m_deletionProtectionHasBeenSet = true;
87 m_deletionProtection = value;
88 }
91 return *this;
92 }
94
96
107 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
108 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
109 template <typename EngineVersionT = Aws::String>
110 void SetEngineVersion(EngineVersionT&& value) {
111 m_engineVersionHasBeenSet = true;
112 m_engineVersion = std::forward<EngineVersionT>(value);
113 }
114 template <typename EngineVersionT = Aws::String>
116 SetEngineVersion(std::forward<EngineVersionT>(value));
117 return *this;
118 }
120
122
130 inline bool GetAllowMajorVersionUpgrade() const { return m_allowMajorVersionUpgrade; }
131 inline bool AllowMajorVersionUpgradeHasBeenSet() const { return m_allowMajorVersionUpgradeHasBeenSet; }
132 inline void SetAllowMajorVersionUpgrade(bool value) {
133 m_allowMajorVersionUpgradeHasBeenSet = true;
134 m_allowMajorVersionUpgrade = value;
135 }
138 return *this;
139 }
141 private:
142 Aws::String m_globalClusterIdentifier;
143
144 Aws::String m_newGlobalClusterIdentifier;
145
146 bool m_deletionProtection{false};
147
148 Aws::String m_engineVersion;
149
150 bool m_allowMajorVersionUpgrade{false};
151 bool m_globalClusterIdentifierHasBeenSet = false;
152 bool m_newGlobalClusterIdentifierHasBeenSet = false;
153 bool m_deletionProtectionHasBeenSet = false;
154 bool m_engineVersionHasBeenSet = false;
155 bool m_allowMajorVersionUpgradeHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace RDS
160} // namespace Aws
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyGlobalClusterRequest & WithNewGlobalClusterIdentifier(NewGlobalClusterIdentifierT &&value)
ModifyGlobalClusterRequest & WithAllowMajorVersionUpgrade(bool value)
AWS_RDS_API Aws::String SerializePayload() const override
AWS_RDS_API ModifyGlobalClusterRequest()=default
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
ModifyGlobalClusterRequest & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
void SetNewGlobalClusterIdentifier(NewGlobalClusterIdentifierT &&value)
ModifyGlobalClusterRequest & WithEngineVersion(EngineVersionT &&value)
ModifyGlobalClusterRequest & WithDeletionProtection(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String