AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetGlobalClusterIdentifier(const Aws::String& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = value; }
48 inline void SetGlobalClusterIdentifier(Aws::String&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::move(value); }
49 inline void SetGlobalClusterIdentifier(const char* value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier.assign(value); }
52 inline ModifyGlobalClusterRequest& WithGlobalClusterIdentifier(const char* value) { SetGlobalClusterIdentifier(value); return *this;}
54
56
63 inline const Aws::String& GetNewGlobalClusterIdentifier() const{ return m_newGlobalClusterIdentifier; }
64 inline bool NewGlobalClusterIdentifierHasBeenSet() const { return m_newGlobalClusterIdentifierHasBeenSet; }
65 inline void SetNewGlobalClusterIdentifier(const Aws::String& value) { m_newGlobalClusterIdentifierHasBeenSet = true; m_newGlobalClusterIdentifier = value; }
66 inline void SetNewGlobalClusterIdentifier(Aws::String&& value) { m_newGlobalClusterIdentifierHasBeenSet = true; m_newGlobalClusterIdentifier = std::move(value); }
67 inline void SetNewGlobalClusterIdentifier(const char* value) { m_newGlobalClusterIdentifierHasBeenSet = true; m_newGlobalClusterIdentifier.assign(value); }
72
74
79 inline bool GetDeletionProtection() const{ return m_deletionProtection; }
80 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
81 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
82 inline ModifyGlobalClusterRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
84
86
97 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
98 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
99 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
100 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
101 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
102 inline ModifyGlobalClusterRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
103 inline ModifyGlobalClusterRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
104 inline ModifyGlobalClusterRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
106
108
116 inline bool GetAllowMajorVersionUpgrade() const{ return m_allowMajorVersionUpgrade; }
117 inline bool AllowMajorVersionUpgradeHasBeenSet() const { return m_allowMajorVersionUpgradeHasBeenSet; }
118 inline void SetAllowMajorVersionUpgrade(bool value) { m_allowMajorVersionUpgradeHasBeenSet = true; m_allowMajorVersionUpgrade = value; }
121 private:
122
123 Aws::String m_globalClusterIdentifier;
124 bool m_globalClusterIdentifierHasBeenSet = false;
125
126 Aws::String m_newGlobalClusterIdentifier;
127 bool m_newGlobalClusterIdentifierHasBeenSet = false;
128
129 bool m_deletionProtection;
130 bool m_deletionProtectionHasBeenSet = false;
131
132 Aws::String m_engineVersion;
133 bool m_engineVersionHasBeenSet = false;
134
135 bool m_allowMajorVersionUpgrade;
136 bool m_allowMajorVersionUpgradeHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace RDS
141} // namespace Aws
ModifyGlobalClusterRequest & WithNewGlobalClusterIdentifier(Aws::String &&value)
void SetGlobalClusterIdentifier(const Aws::String &value)
ModifyGlobalClusterRequest & WithEngineVersion(const char *value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyGlobalClusterRequest & WithAllowMajorVersionUpgrade(bool value)
AWS_RDS_API Aws::String SerializePayload() const override
ModifyGlobalClusterRequest & WithEngineVersion(const Aws::String &value)
ModifyGlobalClusterRequest & WithGlobalClusterIdentifier(const Aws::String &value)
void SetNewGlobalClusterIdentifier(const Aws::String &value)
ModifyGlobalClusterRequest & WithNewGlobalClusterIdentifier(const Aws::String &value)
ModifyGlobalClusterRequest & WithNewGlobalClusterIdentifier(const char *value)
ModifyGlobalClusterRequest & WithGlobalClusterIdentifier(const char *value)
ModifyGlobalClusterRequest & WithGlobalClusterIdentifier(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ModifyGlobalClusterRequest & WithEngineVersion(Aws::String &&value)
ModifyGlobalClusterRequest & WithDeletionProtection(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String