AWS SDK for C++  1.9.108
AWS SDK for C++
FailoverGlobalClusterRequest.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 "FailoverGlobalCluster"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
47  inline const Aws::String& GetGlobalClusterIdentifier() const{ return m_globalClusterIdentifier; }
48 
57  inline bool GlobalClusterIdentifierHasBeenSet() const { return m_globalClusterIdentifierHasBeenSet; }
58 
67  inline void SetGlobalClusterIdentifier(const Aws::String& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = value; }
68 
77  inline void SetGlobalClusterIdentifier(Aws::String&& value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier = std::move(value); }
78 
87  inline void SetGlobalClusterIdentifier(const char* value) { m_globalClusterIdentifierHasBeenSet = true; m_globalClusterIdentifier.assign(value); }
88 
97  inline FailoverGlobalClusterRequest& WithGlobalClusterIdentifier(const Aws::String& value) { SetGlobalClusterIdentifier(value); return *this;}
98 
107  inline FailoverGlobalClusterRequest& WithGlobalClusterIdentifier(Aws::String&& value) { SetGlobalClusterIdentifier(std::move(value)); return *this;}
108 
117  inline FailoverGlobalClusterRequest& WithGlobalClusterIdentifier(const char* value) { SetGlobalClusterIdentifier(value); return *this;}
118 
119 
126  inline const Aws::String& GetTargetDbClusterIdentifier() const{ return m_targetDbClusterIdentifier; }
127 
134  inline bool TargetDbClusterIdentifierHasBeenSet() const { return m_targetDbClusterIdentifierHasBeenSet; }
135 
142  inline void SetTargetDbClusterIdentifier(const Aws::String& value) { m_targetDbClusterIdentifierHasBeenSet = true; m_targetDbClusterIdentifier = value; }
143 
150  inline void SetTargetDbClusterIdentifier(Aws::String&& value) { m_targetDbClusterIdentifierHasBeenSet = true; m_targetDbClusterIdentifier = std::move(value); }
151 
158  inline void SetTargetDbClusterIdentifier(const char* value) { m_targetDbClusterIdentifierHasBeenSet = true; m_targetDbClusterIdentifier.assign(value); }
159 
166  inline FailoverGlobalClusterRequest& WithTargetDbClusterIdentifier(const Aws::String& value) { SetTargetDbClusterIdentifier(value); return *this;}
167 
174  inline FailoverGlobalClusterRequest& WithTargetDbClusterIdentifier(Aws::String&& value) { SetTargetDbClusterIdentifier(std::move(value)); return *this;}
175 
182  inline FailoverGlobalClusterRequest& WithTargetDbClusterIdentifier(const char* value) { SetTargetDbClusterIdentifier(value); return *this;}
183 
184  private:
185 
186  Aws::String m_globalClusterIdentifier;
187  bool m_globalClusterIdentifierHasBeenSet;
188 
189  Aws::String m_targetDbClusterIdentifier;
190  bool m_targetDbClusterIdentifierHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace RDS
195 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::FailoverGlobalClusterRequest::FailoverGlobalClusterRequest
FailoverGlobalClusterRequest()
Aws::RDS::Model::FailoverGlobalClusterRequest::WithTargetDbClusterIdentifier
FailoverGlobalClusterRequest & WithTargetDbClusterIdentifier(const Aws::String &value)
Definition: FailoverGlobalClusterRequest.h:166
Aws::RDS::Model::FailoverGlobalClusterRequest::GetTargetDbClusterIdentifier
const Aws::String & GetTargetDbClusterIdentifier() const
Definition: FailoverGlobalClusterRequest.h:126
Aws::RDS::Model::FailoverGlobalClusterRequest::SetGlobalClusterIdentifier
void SetGlobalClusterIdentifier(const char *value)
Definition: FailoverGlobalClusterRequest.h:87
Aws::RDS::Model::FailoverGlobalClusterRequest::WithTargetDbClusterIdentifier
FailoverGlobalClusterRequest & WithTargetDbClusterIdentifier(const char *value)
Definition: FailoverGlobalClusterRequest.h:182
Aws::RDS::Model::FailoverGlobalClusterRequest::WithGlobalClusterIdentifier
FailoverGlobalClusterRequest & WithGlobalClusterIdentifier(const char *value)
Definition: FailoverGlobalClusterRequest.h:117
Aws::RDS::Model::FailoverGlobalClusterRequest::GetGlobalClusterIdentifier
const Aws::String & GetGlobalClusterIdentifier() const
Definition: FailoverGlobalClusterRequest.h:47
Aws::RDS::Model::FailoverGlobalClusterRequest::WithGlobalClusterIdentifier
FailoverGlobalClusterRequest & WithGlobalClusterIdentifier(const Aws::String &value)
Definition: FailoverGlobalClusterRequest.h:97
Aws::RDS::Model::FailoverGlobalClusterRequest::WithGlobalClusterIdentifier
FailoverGlobalClusterRequest & WithGlobalClusterIdentifier(Aws::String &&value)
Definition: FailoverGlobalClusterRequest.h:107
RDS_EXPORTS.h
Aws::RDS::Model::FailoverGlobalClusterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: FailoverGlobalClusterRequest.h:30
Aws::RDS::Model::FailoverGlobalClusterRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::FailoverGlobalClusterRequest::SetGlobalClusterIdentifier
void SetGlobalClusterIdentifier(const Aws::String &value)
Definition: FailoverGlobalClusterRequest.h:67
Aws::RDS::Model::FailoverGlobalClusterRequest::GlobalClusterIdentifierHasBeenSet
bool GlobalClusterIdentifierHasBeenSet() const
Definition: FailoverGlobalClusterRequest.h:57
Aws::RDS::Model::FailoverGlobalClusterRequest::SetTargetDbClusterIdentifier
void SetTargetDbClusterIdentifier(const char *value)
Definition: FailoverGlobalClusterRequest.h:158
AWSString.h
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::FailoverGlobalClusterRequest::SetTargetDbClusterIdentifier
void SetTargetDbClusterIdentifier(const Aws::String &value)
Definition: FailoverGlobalClusterRequest.h:142
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RDSRequest.h
Aws::RDS::Model::FailoverGlobalClusterRequest
Definition: FailoverGlobalClusterRequest.h:22
Aws::RDS::Model::FailoverGlobalClusterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::FailoverGlobalClusterRequest::SetTargetDbClusterIdentifier
void SetTargetDbClusterIdentifier(Aws::String &&value)
Definition: FailoverGlobalClusterRequest.h:150
Aws::RDS::Model::FailoverGlobalClusterRequest::SetGlobalClusterIdentifier
void SetGlobalClusterIdentifier(Aws::String &&value)
Definition: FailoverGlobalClusterRequest.h:77
Aws::RDS::Model::FailoverGlobalClusterRequest::TargetDbClusterIdentifierHasBeenSet
bool TargetDbClusterIdentifierHasBeenSet() const
Definition: FailoverGlobalClusterRequest.h:134
Aws::RDS::Model::FailoverGlobalClusterRequest::WithTargetDbClusterIdentifier
FailoverGlobalClusterRequest & WithTargetDbClusterIdentifier(Aws::String &&value)
Definition: FailoverGlobalClusterRequest.h:174