AWS SDK for C++  1.9.108
AWS SDK for C++
ModifyGlobalClusterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace RDS
15 {
16 namespace 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::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
44  inline const Aws::String& GetGlobalClusterIdentifier() const{ return m_globalClusterIdentifier; }
45 
51  inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
52 
58  inline void SetGlobalClusterIdentifier(const Aws::String& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = value; }
59 
65  inline void SetGlobalClusterIdentifier(Aws::String&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::move(value); }
66 
72  inline void SetGlobalClusterIdentifier(const char* value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier.assign(value); }
73 
79  inline ModifyGlobalClusterRequest& WithGlobalClusterIdentifier(const Aws::String& value) { SetGlobalClusterIdentifier(value); return *this;}
80 
86  inline ModifyGlobalClusterRequest& WithGlobalClusterIdentifier(Aws::String&& value) { SetGlobalClusterIdentifier(std::move(value)); return *this;}
87 
93  inline ModifyGlobalClusterRequest& WithGlobalClusterIdentifier(const char* value) { SetGlobalClusterIdentifier(value); return *this;}
94 
95 
104  inline const Aws::String& GetNewGlobalClusterIdentifier() const{ return m_newGlobalClusterIdentifier; }
105 
114  inline bool NewGlobalClusterIdentifierHasBeenSet() const { return m_newGlobalClusterIdentifierHasBeenSet; }
115 
124  inline void SetNewGlobalClusterIdentifier(const Aws::String& value) { m_newGlobalClusterIdentifierHasBeenSet = true; m_newGlobalClusterIdentifier = value; }
125 
134  inline void SetNewGlobalClusterIdentifier(Aws::String&& value) { m_newGlobalClusterIdentifierHasBeenSet = true; m_newGlobalClusterIdentifier = std::move(value); }
135 
144  inline void SetNewGlobalClusterIdentifier(const char* value) { m_newGlobalClusterIdentifierHasBeenSet = true; m_newGlobalClusterIdentifier.assign(value); }
145 
154  inline ModifyGlobalClusterRequest& WithNewGlobalClusterIdentifier(const Aws::String& value) { SetNewGlobalClusterIdentifier(value); return *this;}
155 
164  inline ModifyGlobalClusterRequest& WithNewGlobalClusterIdentifier(Aws::String&& value) { SetNewGlobalClusterIdentifier(std::move(value)); return *this;}
165 
174  inline ModifyGlobalClusterRequest& WithNewGlobalClusterIdentifier(const char* value) { SetNewGlobalClusterIdentifier(value); return *this;}
175 
176 
182  inline bool GetDeletionProtection() const{ return m_deletionProtection; }
183 
189  inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
190 
196  inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
197 
203  inline ModifyGlobalClusterRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
204 
205 
223  inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
224 
242  inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
243 
261  inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
262 
280  inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
281 
299  inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
300 
318  inline ModifyGlobalClusterRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
319 
337  inline ModifyGlobalClusterRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
338 
356  inline ModifyGlobalClusterRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
357 
358 
368  inline bool GetAllowMajorVersionUpgrade() const{ return m_allowMajorVersionUpgrade; }
369 
379  inline bool AllowMajorVersionUpgradeHasBeenSet() const { return m_allowMajorVersionUpgradeHasBeenSet; }
380 
390  inline void SetAllowMajorVersionUpgrade(bool value) { m_allowMajorVersionUpgradeHasBeenSet = true; m_allowMajorVersionUpgrade = value; }
391 
401  inline ModifyGlobalClusterRequest& WithAllowMajorVersionUpgrade(bool value) { SetAllowMajorVersionUpgrade(value); return *this;}
402 
403  private:
404 
405  Aws::String m_globalClusterIdentifier;
406  bool m_globalClusterIdentifierHasBeenSet;
407 
408  Aws::String m_newGlobalClusterIdentifier;
409  bool m_newGlobalClusterIdentifierHasBeenSet;
410 
411  bool m_deletionProtection;
412  bool m_deletionProtectionHasBeenSet;
413 
414  Aws::String m_engineVersion;
415  bool m_engineVersionHasBeenSet;
416 
417  bool m_allowMajorVersionUpgrade;
418  bool m_allowMajorVersionUpgradeHasBeenSet;
419  };
420 
421 } // namespace Model
422 } // namespace RDS
423 } // namespace Aws
Aws::RDS::Model::ModifyGlobalClusterRequest::GetAllowMajorVersionUpgrade
bool GetAllowMajorVersionUpgrade() const
Definition: ModifyGlobalClusterRequest.h:368
Aws::RDS::Model::ModifyGlobalClusterRequest::DeletionProtectionHasBeenSet
bool DeletionProtectionHasBeenSet() const
Definition: ModifyGlobalClusterRequest.h:189
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::ModifyGlobalClusterRequest::WithAllowMajorVersionUpgrade
ModifyGlobalClusterRequest & WithAllowMajorVersionUpgrade(bool value)
Definition: ModifyGlobalClusterRequest.h:401
Aws::RDS::Model::ModifyGlobalClusterRequest::SetDeletionProtection
void SetDeletionProtection(bool value)
Definition: ModifyGlobalClusterRequest.h:196
Aws::RDS::Model::ModifyGlobalClusterRequest::WithEngineVersion
ModifyGlobalClusterRequest & WithEngineVersion(const char *value)
Definition: ModifyGlobalClusterRequest.h:356
Aws::RDS::Model::ModifyGlobalClusterRequest::WithDeletionProtection
ModifyGlobalClusterRequest & WithDeletionProtection(bool value)
Definition: ModifyGlobalClusterRequest.h:203
Aws::RDS::Model::ModifyGlobalClusterRequest::WithEngineVersion
ModifyGlobalClusterRequest & WithEngineVersion(Aws::String &&value)
Definition: ModifyGlobalClusterRequest.h:337
Aws::RDS::Model::ModifyGlobalClusterRequest::SetEngineVersion
void SetEngineVersion(const Aws::String &value)
Definition: ModifyGlobalClusterRequest.h:261
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::ModifyGlobalClusterRequest::GetDeletionProtection
bool GetDeletionProtection() const
Definition: ModifyGlobalClusterRequest.h:182
Aws::RDS::Model::ModifyGlobalClusterRequest::WithNewGlobalClusterIdentifier
ModifyGlobalClusterRequest & WithNewGlobalClusterIdentifier(const Aws::String &value)
Definition: ModifyGlobalClusterRequest.h:154
Aws::RDS::Model::ModifyGlobalClusterRequest::GlobalClusterIdentifierHasBeenSet
bool GlobalClusterIdentifierHasBeenSet() const
Definition: ModifyGlobalClusterRequest.h:51
Aws::RDS::Model::ModifyGlobalClusterRequest::SetNewGlobalClusterIdentifier
void SetNewGlobalClusterIdentifier(const Aws::String &value)
Definition: ModifyGlobalClusterRequest.h:124
Aws::RDS::Model::ModifyGlobalClusterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyGlobalClusterRequest.h:30
Aws::RDS::Model::ModifyGlobalClusterRequest::EngineVersionHasBeenSet
bool EngineVersionHasBeenSet() const
Definition: ModifyGlobalClusterRequest.h:242
Aws::RDS::Model::ModifyGlobalClusterRequest::GetNewGlobalClusterIdentifier
const Aws::String & GetNewGlobalClusterIdentifier() const
Definition: ModifyGlobalClusterRequest.h:104
Aws::RDS::Model::ModifyGlobalClusterRequest::SetNewGlobalClusterIdentifier
void SetNewGlobalClusterIdentifier(Aws::String &&value)
Definition: ModifyGlobalClusterRequest.h:134
RDS_EXPORTS.h
Aws::RDS::Model::ModifyGlobalClusterRequest::ModifyGlobalClusterRequest
ModifyGlobalClusterRequest()
Aws::RDS::Model::ModifyGlobalClusterRequest::WithGlobalClusterIdentifier
ModifyGlobalClusterRequest & WithGlobalClusterIdentifier(Aws::String &&value)
Definition: ModifyGlobalClusterRequest.h:86
Aws::RDS::Model::ModifyGlobalClusterRequest::SetGlobalClusterIdentifier
void SetGlobalClusterIdentifier(Aws::String &&value)
Definition: ModifyGlobalClusterRequest.h:65
Aws::RDS::Model::ModifyGlobalClusterRequest::WithGlobalClusterIdentifier
ModifyGlobalClusterRequest & WithGlobalClusterIdentifier(const char *value)
Definition: ModifyGlobalClusterRequest.h:93
AWSString.h
Aws::RDS::Model::ModifyGlobalClusterRequest::WithNewGlobalClusterIdentifier
ModifyGlobalClusterRequest & WithNewGlobalClusterIdentifier(const char *value)
Definition: ModifyGlobalClusterRequest.h:174
Aws::RDS::Model::ModifyGlobalClusterRequest::SetGlobalClusterIdentifier
void SetGlobalClusterIdentifier(const char *value)
Definition: ModifyGlobalClusterRequest.h:72
Aws::RDS::Model::ModifyGlobalClusterRequest::SetGlobalClusterIdentifier
void SetGlobalClusterIdentifier(const Aws::String &value)
Definition: ModifyGlobalClusterRequest.h:58
Aws::RDS::Model::ModifyGlobalClusterRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::ModifyGlobalClusterRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::ModifyGlobalClusterRequest
Definition: ModifyGlobalClusterRequest.h:22
Aws::RDS::Model::ModifyGlobalClusterRequest::SetAllowMajorVersionUpgrade
void SetAllowMajorVersionUpgrade(bool value)
Definition: ModifyGlobalClusterRequest.h:390
Aws::RDS::Model::ModifyGlobalClusterRequest::WithGlobalClusterIdentifier
ModifyGlobalClusterRequest & WithGlobalClusterIdentifier(const Aws::String &value)
Definition: ModifyGlobalClusterRequest.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::ModifyGlobalClusterRequest::WithNewGlobalClusterIdentifier
ModifyGlobalClusterRequest & WithNewGlobalClusterIdentifier(Aws::String &&value)
Definition: ModifyGlobalClusterRequest.h:164
Aws::RDS::Model::ModifyGlobalClusterRequest::GetEngineVersion
const Aws::String & GetEngineVersion() const
Definition: ModifyGlobalClusterRequest.h:223
Aws::RDS::Model::ModifyGlobalClusterRequest::SetNewGlobalClusterIdentifier
void SetNewGlobalClusterIdentifier(const char *value)
Definition: ModifyGlobalClusterRequest.h:144
Aws::RDS::Model::ModifyGlobalClusterRequest::NewGlobalClusterIdentifierHasBeenSet
bool NewGlobalClusterIdentifierHasBeenSet() const
Definition: ModifyGlobalClusterRequest.h:114
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::ModifyGlobalClusterRequest::AllowMajorVersionUpgradeHasBeenSet
bool AllowMajorVersionUpgradeHasBeenSet() const
Definition: ModifyGlobalClusterRequest.h:379
RDSRequest.h
Aws::RDS::Model::ModifyGlobalClusterRequest::GetGlobalClusterIdentifier
const Aws::String & GetGlobalClusterIdentifier() const
Definition: ModifyGlobalClusterRequest.h:44
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::ModifyGlobalClusterRequest::WithEngineVersion
ModifyGlobalClusterRequest & WithEngineVersion(const Aws::String &value)
Definition: ModifyGlobalClusterRequest.h:318
Aws::RDS::Model::ModifyGlobalClusterRequest::SetEngineVersion
void SetEngineVersion(Aws::String &&value)
Definition: ModifyGlobalClusterRequest.h:280
Aws::RDS::Model::ModifyGlobalClusterRequest::SetEngineVersion
void SetEngineVersion(const char *value)
Definition: ModifyGlobalClusterRequest.h:299