AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PromoteReadReplicaRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rds/RDSRequest.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/TagSpecification.h>
12
13#include <utility>
14
15namespace Aws {
16namespace RDS {
17namespace Model {
18
25 public:
26 AWS_RDS_API PromoteReadReplicaRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PromoteReadReplica"; }
33
34 AWS_RDS_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
46 inline const Aws::String& GetDBInstanceIdentifier() const { return m_dBInstanceIdentifier; }
47 inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
48 template <typename DBInstanceIdentifierT = Aws::String>
49 void SetDBInstanceIdentifier(DBInstanceIdentifierT&& value) {
50 m_dBInstanceIdentifierHasBeenSet = true;
51 m_dBInstanceIdentifier = std::forward<DBInstanceIdentifierT>(value);
52 }
53 template <typename DBInstanceIdentifierT = Aws::String>
54 PromoteReadReplicaRequest& WithDBInstanceIdentifier(DBInstanceIdentifierT&& value) {
55 SetDBInstanceIdentifier(std::forward<DBInstanceIdentifierT>(value));
56 return *this;
57 }
59
61
68 inline int GetBackupRetentionPeriod() const { return m_backupRetentionPeriod; }
69 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
70 inline void SetBackupRetentionPeriod(int value) {
71 m_backupRetentionPeriodHasBeenSet = true;
72 m_backupRetentionPeriod = value;
73 }
76 return *this;
77 }
79
81
94 inline const Aws::String& GetPreferredBackupWindow() const { return m_preferredBackupWindow; }
95 inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
96 template <typename PreferredBackupWindowT = Aws::String>
97 void SetPreferredBackupWindow(PreferredBackupWindowT&& value) {
98 m_preferredBackupWindowHasBeenSet = true;
99 m_preferredBackupWindow = std::forward<PreferredBackupWindowT>(value);
100 }
101 template <typename PreferredBackupWindowT = Aws::String>
102 PromoteReadReplicaRequest& WithPreferredBackupWindow(PreferredBackupWindowT&& value) {
103 SetPreferredBackupWindow(std::forward<PreferredBackupWindowT>(value));
104 return *this;
105 }
107
109
114 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
115 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
116 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
117 void SetTagSpecifications(TagSpecificationsT&& value) {
118 m_tagSpecificationsHasBeenSet = true;
119 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
120 }
121 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
123 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
124 return *this;
125 }
126 template <typename TagSpecificationsT = TagSpecification>
127 PromoteReadReplicaRequest& AddTagSpecifications(TagSpecificationsT&& value) {
128 m_tagSpecificationsHasBeenSet = true;
129 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_dBInstanceIdentifier;
135
136 int m_backupRetentionPeriod{0};
137
138 Aws::String m_preferredBackupWindow;
139
140 Aws::Vector<TagSpecification> m_tagSpecifications;
141 bool m_dBInstanceIdentifierHasBeenSet = false;
142 bool m_backupRetentionPeriodHasBeenSet = false;
143 bool m_preferredBackupWindowHasBeenSet = false;
144 bool m_tagSpecificationsHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace RDS
149} // namespace Aws
AWS_RDS_API PromoteReadReplicaRequest()=default
void SetPreferredBackupWindow(PreferredBackupWindowT &&value)
PromoteReadReplicaRequest & AddTagSpecifications(TagSpecificationsT &&value)
virtual const char * GetServiceRequestName() const override
PromoteReadReplicaRequest & WithTagSpecifications(TagSpecificationsT &&value)
PromoteReadReplicaRequest & WithBackupRetentionPeriod(int value)
void SetDBInstanceIdentifier(DBInstanceIdentifierT &&value)
PromoteReadReplicaRequest & WithPreferredBackupWindow(PreferredBackupWindowT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetTagSpecifications(TagSpecificationsT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
PromoteReadReplicaRequest & WithDBInstanceIdentifier(DBInstanceIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector