AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyGlobalClusterRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace RDS
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_RDS_API ModifyGlobalClusterRequest() = 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 "ModifyGlobalCluster"; }
31
32 AWS_RDS_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
45 inline const Aws::String& GetGlobalClusterIdentifier() const { return m_globalClusterIdentifier; }
46 inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
47 template<typename GlobalClusterIdentifierT = Aws::String>
48 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value); }
49 template<typename GlobalClusterIdentifierT = Aws::String>
50 ModifyGlobalClusterRequest& WithGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { SetGlobalClusterIdentifier(std::forward<GlobalClusterIdentifierT>(value)); return *this;}
52
54
61 inline const Aws::String& GetNewGlobalClusterIdentifier() const { return m_newGlobalClusterIdentifier; }
62 inline bool NewGlobalClusterIdentifierHasBeenSet() const { return m_newGlobalClusterIdentifierHasBeenSet; }
63 template<typename NewGlobalClusterIdentifierT = Aws::String>
64 void SetNewGlobalClusterIdentifier(NewGlobalClusterIdentifierT&& value) { m_newGlobalClusterIdentifierHasBeenSet = true; m_newGlobalClusterIdentifier = std::forward<NewGlobalClusterIdentifierT>(value); }
65 template<typename NewGlobalClusterIdentifierT = Aws::String>
66 ModifyGlobalClusterRequest& WithNewGlobalClusterIdentifier(NewGlobalClusterIdentifierT&& value) { SetNewGlobalClusterIdentifier(std::forward<NewGlobalClusterIdentifierT>(value)); return *this;}
68
70
75 inline bool GetDeletionProtection() const { return m_deletionProtection; }
76 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
77 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
78 inline ModifyGlobalClusterRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
80
82
93 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
94 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
95 template<typename EngineVersionT = Aws::String>
96 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
97 template<typename EngineVersionT = Aws::String>
98 ModifyGlobalClusterRequest& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
100
102
110 inline bool GetAllowMajorVersionUpgrade() const { return m_allowMajorVersionUpgrade; }
111 inline bool AllowMajorVersionUpgradeHasBeenSet() const { return m_allowMajorVersionUpgradeHasBeenSet; }
112 inline void SetAllowMajorVersionUpgrade(bool value) { m_allowMajorVersionUpgradeHasBeenSet = true; m_allowMajorVersionUpgrade = value; }
115 private:
116
117 Aws::String m_globalClusterIdentifier;
118 bool m_globalClusterIdentifierHasBeenSet = false;
119
120 Aws::String m_newGlobalClusterIdentifier;
121 bool m_newGlobalClusterIdentifierHasBeenSet = false;
122
123 bool m_deletionProtection{false};
124 bool m_deletionProtectionHasBeenSet = false;
125
126 Aws::String m_engineVersion;
127 bool m_engineVersionHasBeenSet = false;
128
129 bool m_allowMajorVersionUpgrade{false};
130 bool m_allowMajorVersionUpgradeHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace RDS
135} // 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