AWS SDK for C++  1.9.104
AWS SDK for C++
PromoteReadReplicaDBClusterRequest.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 "PromoteReadReplicaDBCluster"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
49 
56  inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
57 
64  inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
65 
72  inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); }
73 
80  inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
81 
88  inline PromoteReadReplicaDBClusterRequest& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;}
89 
96  inline PromoteReadReplicaDBClusterRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;}
97 
104  inline PromoteReadReplicaDBClusterRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
105 
106  private:
107 
108  Aws::String m_dBClusterIdentifier;
109  bool m_dBClusterIdentifierHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace RDS
114 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::PromoteReadReplicaDBClusterRequest::GetDBClusterIdentifier
const Aws::String & GetDBClusterIdentifier() const
Definition: PromoteReadReplicaDBClusterRequest.h:48
Aws::RDS::Model::PromoteReadReplicaDBClusterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::PromoteReadReplicaDBClusterRequest::PromoteReadReplicaDBClusterRequest
PromoteReadReplicaDBClusterRequest()
Aws::RDS::Model::PromoteReadReplicaDBClusterRequest
Definition: PromoteReadReplicaDBClusterRequest.h:25
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::PromoteReadReplicaDBClusterRequest::WithDBClusterIdentifier
PromoteReadReplicaDBClusterRequest & WithDBClusterIdentifier(const char *value)
Definition: PromoteReadReplicaDBClusterRequest.h:104
Aws::RDS::Model::PromoteReadReplicaDBClusterRequest::WithDBClusterIdentifier
PromoteReadReplicaDBClusterRequest & WithDBClusterIdentifier(const Aws::String &value)
Definition: PromoteReadReplicaDBClusterRequest.h:88
RDS_EXPORTS.h
AWSString.h
Aws::RDS::Model::PromoteReadReplicaDBClusterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PromoteReadReplicaDBClusterRequest.h:33
Aws::RDS::Model::PromoteReadReplicaDBClusterRequest::DBClusterIdentifierHasBeenSet
bool DBClusterIdentifierHasBeenSet() const
Definition: PromoteReadReplicaDBClusterRequest.h:56
Aws::RDS::Model::PromoteReadReplicaDBClusterRequest::WithDBClusterIdentifier
PromoteReadReplicaDBClusterRequest & WithDBClusterIdentifier(Aws::String &&value)
Definition: PromoteReadReplicaDBClusterRequest.h:96
Aws::RDS::Model::PromoteReadReplicaDBClusterRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(const char *value)
Definition: PromoteReadReplicaDBClusterRequest.h:80
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::PromoteReadReplicaDBClusterRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(Aws::String &&value)
Definition: PromoteReadReplicaDBClusterRequest.h:72
Aws::RDS::Model::PromoteReadReplicaDBClusterRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RDSRequest.h
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::PromoteReadReplicaDBClusterRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(const Aws::String &value)
Definition: PromoteReadReplicaDBClusterRequest.h:64