AWS SDK for C++  1.9.108
AWS SDK for C++
FailoverDBClusterRequest.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 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "FailoverDBCluster"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
47  inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
48 
54  inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
55 
61  inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
62 
68  inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); }
69 
75  inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
76 
82  inline FailoverDBClusterRequest& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;}
83 
89  inline FailoverDBClusterRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;}
90 
96  inline FailoverDBClusterRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
97 
98 
104  inline const Aws::String& GetTargetDBInstanceIdentifier() const{ return m_targetDBInstanceIdentifier; }
105 
111  inline bool TargetDBInstanceIdentifierHasBeenSet() const { return m_targetDBInstanceIdentifierHasBeenSet; }
112 
118  inline void SetTargetDBInstanceIdentifier(const Aws::String& value) { m_targetDBInstanceIdentifierHasBeenSet = true; m_targetDBInstanceIdentifier = value; }
119 
125  inline void SetTargetDBInstanceIdentifier(Aws::String&& value) { m_targetDBInstanceIdentifierHasBeenSet = true; m_targetDBInstanceIdentifier = std::move(value); }
126 
132  inline void SetTargetDBInstanceIdentifier(const char* value) { m_targetDBInstanceIdentifierHasBeenSet = true; m_targetDBInstanceIdentifier.assign(value); }
133 
139  inline FailoverDBClusterRequest& WithTargetDBInstanceIdentifier(const Aws::String& value) { SetTargetDBInstanceIdentifier(value); return *this;}
140 
146  inline FailoverDBClusterRequest& WithTargetDBInstanceIdentifier(Aws::String&& value) { SetTargetDBInstanceIdentifier(std::move(value)); return *this;}
147 
153  inline FailoverDBClusterRequest& WithTargetDBInstanceIdentifier(const char* value) { SetTargetDBInstanceIdentifier(value); return *this;}
154 
155  private:
156 
157  Aws::String m_dBClusterIdentifier;
158  bool m_dBClusterIdentifierHasBeenSet;
159 
160  Aws::String m_targetDBInstanceIdentifier;
161  bool m_targetDBInstanceIdentifierHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace RDS
166 } // namespace Aws
Aws::RDS::Model::FailoverDBClusterRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::FailoverDBClusterRequest::WithTargetDBInstanceIdentifier
FailoverDBClusterRequest & WithTargetDBInstanceIdentifier(const Aws::String &value)
Definition: FailoverDBClusterRequest.h:139
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::FailoverDBClusterRequest::WithDBClusterIdentifier
FailoverDBClusterRequest & WithDBClusterIdentifier(const Aws::String &value)
Definition: FailoverDBClusterRequest.h:82
Aws::RDS::Model::FailoverDBClusterRequest::TargetDBInstanceIdentifierHasBeenSet
bool TargetDBInstanceIdentifierHasBeenSet() const
Definition: FailoverDBClusterRequest.h:111
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::FailoverDBClusterRequest::SetTargetDBInstanceIdentifier
void SetTargetDBInstanceIdentifier(Aws::String &&value)
Definition: FailoverDBClusterRequest.h:125
Aws::RDS::Model::FailoverDBClusterRequest::GetDBClusterIdentifier
const Aws::String & GetDBClusterIdentifier() const
Definition: FailoverDBClusterRequest.h:47
Aws::RDS::Model::FailoverDBClusterRequest::GetTargetDBInstanceIdentifier
const Aws::String & GetTargetDBInstanceIdentifier() const
Definition: FailoverDBClusterRequest.h:104
Aws::RDS::Model::FailoverDBClusterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::FailoverDBClusterRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(const char *value)
Definition: FailoverDBClusterRequest.h:75
Aws::RDS::Model::FailoverDBClusterRequest::FailoverDBClusterRequest
FailoverDBClusterRequest()
Aws::RDS::Model::FailoverDBClusterRequest::SetTargetDBInstanceIdentifier
void SetTargetDBInstanceIdentifier(const Aws::String &value)
Definition: FailoverDBClusterRequest.h:118
Aws::RDS::Model::FailoverDBClusterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: FailoverDBClusterRequest.h:33
Aws::RDS::Model::FailoverDBClusterRequest::WithDBClusterIdentifier
FailoverDBClusterRequest & WithDBClusterIdentifier(Aws::String &&value)
Definition: FailoverDBClusterRequest.h:89
RDS_EXPORTS.h
AWSString.h
Aws::RDS::Model::FailoverDBClusterRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(const Aws::String &value)
Definition: FailoverDBClusterRequest.h:61
Aws::RDS::Model::FailoverDBClusterRequest::WithTargetDBInstanceIdentifier
FailoverDBClusterRequest & WithTargetDBInstanceIdentifier(Aws::String &&value)
Definition: FailoverDBClusterRequest.h:146
Aws::RDS::Model::FailoverDBClusterRequest::DBClusterIdentifierHasBeenSet
bool DBClusterIdentifierHasBeenSet() const
Definition: FailoverDBClusterRequest.h:54
Aws::RDS::Model::FailoverDBClusterRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(Aws::String &&value)
Definition: FailoverDBClusterRequest.h:68
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::FailoverDBClusterRequest::SetTargetDBInstanceIdentifier
void SetTargetDBInstanceIdentifier(const char *value)
Definition: FailoverDBClusterRequest.h:132
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::FailoverDBClusterRequest
Definition: FailoverDBClusterRequest.h:25
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RDSRequest.h
Aws::RDS::Model::FailoverDBClusterRequest::WithDBClusterIdentifier
FailoverDBClusterRequest & WithDBClusterIdentifier(const char *value)
Definition: FailoverDBClusterRequest.h:96
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::FailoverDBClusterRequest::WithTargetDBInstanceIdentifier
FailoverDBClusterRequest & WithTargetDBInstanceIdentifier(const char *value)
Definition: FailoverDBClusterRequest.h:153