AWS SDK for C++  0.12.9
AWS SDK for C++
PromoteReadReplicaRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/rds/RDS_EXPORTS.h>
17 #include <aws/rds/RDSRequest.h>
19 
20 namespace Aws
21 {
22 namespace RDS
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
44  inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
45 
54  inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
55 
64  inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
65 
74  inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
75 
84  inline PromoteReadReplicaRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
85 
94  inline PromoteReadReplicaRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(value); return *this;}
95 
104  inline PromoteReadReplicaRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
105 
112  inline long GetBackupRetentionPeriod() const{ return m_backupRetentionPeriod; }
113 
120  inline void SetBackupRetentionPeriod(long value) { m_backupRetentionPeriodHasBeenSet = true; m_backupRetentionPeriod = value; }
121 
128  inline PromoteReadReplicaRequest& WithBackupRetentionPeriod(long value) { SetBackupRetentionPeriod(value); return *this;}
129 
143  inline const Aws::String& GetPreferredBackupWindow() const{ return m_preferredBackupWindow; }
144 
158  inline void SetPreferredBackupWindow(const Aws::String& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = value; }
159 
173  inline void SetPreferredBackupWindow(Aws::String&& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = value; }
174 
188  inline void SetPreferredBackupWindow(const char* value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow.assign(value); }
189 
203  inline PromoteReadReplicaRequest& WithPreferredBackupWindow(const Aws::String& value) { SetPreferredBackupWindow(value); return *this;}
204 
218  inline PromoteReadReplicaRequest& WithPreferredBackupWindow(Aws::String&& value) { SetPreferredBackupWindow(value); return *this;}
219 
233  inline PromoteReadReplicaRequest& WithPreferredBackupWindow(const char* value) { SetPreferredBackupWindow(value); return *this;}
234 
235  private:
236  Aws::String m_dBInstanceIdentifier;
237  bool m_dBInstanceIdentifierHasBeenSet;
238  long m_backupRetentionPeriod;
239  bool m_backupRetentionPeriodHasBeenSet;
240  Aws::String m_preferredBackupWindow;
241  bool m_preferredBackupWindowHasBeenSet;
242  };
243 
244 } // namespace Model
245 } // namespace RDS
246 } // namespace Aws
PromoteReadReplicaRequest & WithPreferredBackupWindow(const Aws::String &value)
PromoteReadReplicaRequest & WithPreferredBackupWindow(const char *value)
void SetDBInstanceIdentifier(const Aws::String &value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:34
PromoteReadReplicaRequest & WithPreferredBackupWindow(Aws::String &&value)
void SetPreferredBackupWindow(const Aws::String &value)
PromoteReadReplicaRequest & WithDBInstanceIdentifier(const char *value)
PromoteReadReplicaRequest & WithDBInstanceIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PromoteReadReplicaRequest & WithBackupRetentionPeriod(long value)
PromoteReadReplicaRequest & WithDBInstanceIdentifier(Aws::String &&value)
JSON (JavaScript Object Notation).