AWS SDK for C++  1.9.108
AWS SDK for C++
PromoteReadReplicaRequest.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 "PromoteReadReplica"; }
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& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
48 
54  inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
55 
61  inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
62 
68  inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
69 
75  inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
76 
82  inline PromoteReadReplicaRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
83 
89  inline PromoteReadReplicaRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
90 
96  inline PromoteReadReplicaRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
97 
98 
106  inline int GetBackupRetentionPeriod() const{ return m_backupRetentionPeriod; }
107 
115  inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
116 
124  inline void SetBackupRetentionPeriod(int value) { m_backupRetentionPeriodHasBeenSet = true; m_backupRetentionPeriod = value; }
125 
133  inline PromoteReadReplicaRequest& WithBackupRetentionPeriod(int value) { SetBackupRetentionPeriod(value); return *this;}
134 
135 
149  inline const Aws::String& GetPreferredBackupWindow() const{ return m_preferredBackupWindow; }
150 
164  inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
165 
179  inline void SetPreferredBackupWindow(const Aws::String& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = value; }
180 
194  inline void SetPreferredBackupWindow(Aws::String&& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = std::move(value); }
195 
209  inline void SetPreferredBackupWindow(const char* value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow.assign(value); }
210 
224  inline PromoteReadReplicaRequest& WithPreferredBackupWindow(const Aws::String& value) { SetPreferredBackupWindow(value); return *this;}
225 
239  inline PromoteReadReplicaRequest& WithPreferredBackupWindow(Aws::String&& value) { SetPreferredBackupWindow(std::move(value)); return *this;}
240 
254  inline PromoteReadReplicaRequest& WithPreferredBackupWindow(const char* value) { SetPreferredBackupWindow(value); return *this;}
255 
256  private:
257 
258  Aws::String m_dBInstanceIdentifier;
259  bool m_dBInstanceIdentifierHasBeenSet;
260 
261  int m_backupRetentionPeriod;
262  bool m_backupRetentionPeriodHasBeenSet;
263 
264  Aws::String m_preferredBackupWindow;
265  bool m_preferredBackupWindowHasBeenSet;
266  };
267 
268 } // namespace Model
269 } // namespace RDS
270 } // namespace Aws
Aws::RDS::Model::PromoteReadReplicaRequest
Definition: PromoteReadReplicaRequest.h:25
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::PromoteReadReplicaRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PromoteReadReplicaRequest.h:33
Aws::RDS::Model::PromoteReadReplicaRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(Aws::String &&value)
Definition: PromoteReadReplicaRequest.h:68
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::PromoteReadReplicaRequest::WithPreferredBackupWindow
PromoteReadReplicaRequest & WithPreferredBackupWindow(const Aws::String &value)
Definition: PromoteReadReplicaRequest.h:224
Aws::RDS::Model::PromoteReadReplicaRequest::SetPreferredBackupWindow
void SetPreferredBackupWindow(const Aws::String &value)
Definition: PromoteReadReplicaRequest.h:179
Aws::RDS::Model::PromoteReadReplicaRequest::WithDBInstanceIdentifier
PromoteReadReplicaRequest & WithDBInstanceIdentifier(const char *value)
Definition: PromoteReadReplicaRequest.h:96
Aws::RDS::Model::PromoteReadReplicaRequest::WithBackupRetentionPeriod
PromoteReadReplicaRequest & WithBackupRetentionPeriod(int value)
Definition: PromoteReadReplicaRequest.h:133
Aws::RDS::Model::PromoteReadReplicaRequest::DBInstanceIdentifierHasBeenSet
bool DBInstanceIdentifierHasBeenSet() const
Definition: PromoteReadReplicaRequest.h:54
Aws::RDS::Model::PromoteReadReplicaRequest::GetDBInstanceIdentifier
const Aws::String & GetDBInstanceIdentifier() const
Definition: PromoteReadReplicaRequest.h:47
Aws::RDS::Model::PromoteReadReplicaRequest::SetPreferredBackupWindow
void SetPreferredBackupWindow(const char *value)
Definition: PromoteReadReplicaRequest.h:209
Aws::RDS::Model::PromoteReadReplicaRequest::WithPreferredBackupWindow
PromoteReadReplicaRequest & WithPreferredBackupWindow(const char *value)
Definition: PromoteReadReplicaRequest.h:254
Aws::RDS::Model::PromoteReadReplicaRequest::WithDBInstanceIdentifier
PromoteReadReplicaRequest & WithDBInstanceIdentifier(const Aws::String &value)
Definition: PromoteReadReplicaRequest.h:82
Aws::RDS::Model::PromoteReadReplicaRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const char *value)
Definition: PromoteReadReplicaRequest.h:75
Aws::RDS::Model::PromoteReadReplicaRequest::WithPreferredBackupWindow
PromoteReadReplicaRequest & WithPreferredBackupWindow(Aws::String &&value)
Definition: PromoteReadReplicaRequest.h:239
Aws::RDS::Model::PromoteReadReplicaRequest::BackupRetentionPeriodHasBeenSet
bool BackupRetentionPeriodHasBeenSet() const
Definition: PromoteReadReplicaRequest.h:115
Aws::RDS::Model::PromoteReadReplicaRequest::WithDBInstanceIdentifier
PromoteReadReplicaRequest & WithDBInstanceIdentifier(Aws::String &&value)
Definition: PromoteReadReplicaRequest.h:89
RDS_EXPORTS.h
Aws::RDS::Model::PromoteReadReplicaRequest::SetBackupRetentionPeriod
void SetBackupRetentionPeriod(int value)
Definition: PromoteReadReplicaRequest.h:124
Aws::RDS::Model::PromoteReadReplicaRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::PromoteReadReplicaRequest::PreferredBackupWindowHasBeenSet
bool PreferredBackupWindowHasBeenSet() const
Definition: PromoteReadReplicaRequest.h:164
AWSString.h
Aws::RDS::Model::PromoteReadReplicaRequest::GetPreferredBackupWindow
const Aws::String & GetPreferredBackupWindow() const
Definition: PromoteReadReplicaRequest.h:149
Aws::RDS::Model::PromoteReadReplicaRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const Aws::String &value)
Definition: PromoteReadReplicaRequest.h:61
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::PromoteReadReplicaRequest::GetBackupRetentionPeriod
int GetBackupRetentionPeriod() const
Definition: PromoteReadReplicaRequest.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RDSRequest.h
Aws::RDS::Model::PromoteReadReplicaRequest::PromoteReadReplicaRequest
PromoteReadReplicaRequest()
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::PromoteReadReplicaRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::PromoteReadReplicaRequest::SetPreferredBackupWindow
void SetPreferredBackupWindow(Aws::String &&value)
Definition: PromoteReadReplicaRequest.h:194