AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateBlueGreenDeploymentRequest.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/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace RDS {
17namespace Model {
18
22 public:
23 AWS_RDS_API CreateBlueGreenDeploymentRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateBlueGreenDeployment"; }
30
31 AWS_RDS_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
43 inline const Aws::String& GetBlueGreenDeploymentName() const { return m_blueGreenDeploymentName; }
44 inline bool BlueGreenDeploymentNameHasBeenSet() const { return m_blueGreenDeploymentNameHasBeenSet; }
45 template <typename BlueGreenDeploymentNameT = Aws::String>
46 void SetBlueGreenDeploymentName(BlueGreenDeploymentNameT&& value) {
47 m_blueGreenDeploymentNameHasBeenSet = true;
48 m_blueGreenDeploymentName = std::forward<BlueGreenDeploymentNameT>(value);
49 }
50 template <typename BlueGreenDeploymentNameT = Aws::String>
52 SetBlueGreenDeploymentName(std::forward<BlueGreenDeploymentNameT>(value));
53 return *this;
54 }
56
58
66 inline const Aws::String& GetSource() const { return m_source; }
67 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
68 template <typename SourceT = Aws::String>
69 void SetSource(SourceT&& value) {
70 m_sourceHasBeenSet = true;
71 m_source = std::forward<SourceT>(value);
72 }
73 template <typename SourceT = Aws::String>
75 SetSource(std::forward<SourceT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetTargetEngineVersion() const { return m_targetEngineVersion; }
86 inline bool TargetEngineVersionHasBeenSet() const { return m_targetEngineVersionHasBeenSet; }
87 template <typename TargetEngineVersionT = Aws::String>
88 void SetTargetEngineVersion(TargetEngineVersionT&& value) {
89 m_targetEngineVersionHasBeenSet = true;
90 m_targetEngineVersion = std::forward<TargetEngineVersionT>(value);
91 }
92 template <typename TargetEngineVersionT = Aws::String>
94 SetTargetEngineVersion(std::forward<TargetEngineVersionT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::String& GetTargetDBParameterGroupName() const { return m_targetDBParameterGroupName; }
106 inline bool TargetDBParameterGroupNameHasBeenSet() const { return m_targetDBParameterGroupNameHasBeenSet; }
107 template <typename TargetDBParameterGroupNameT = Aws::String>
108 void SetTargetDBParameterGroupName(TargetDBParameterGroupNameT&& value) {
109 m_targetDBParameterGroupNameHasBeenSet = true;
110 m_targetDBParameterGroupName = std::forward<TargetDBParameterGroupNameT>(value);
111 }
112 template <typename TargetDBParameterGroupNameT = Aws::String>
114 SetTargetDBParameterGroupName(std::forward<TargetDBParameterGroupNameT>(value));
115 return *this;
116 }
118
120
126 inline const Aws::String& GetTargetDBClusterParameterGroupName() const { return m_targetDBClusterParameterGroupName; }
127 inline bool TargetDBClusterParameterGroupNameHasBeenSet() const { return m_targetDBClusterParameterGroupNameHasBeenSet; }
128 template <typename TargetDBClusterParameterGroupNameT = Aws::String>
129 void SetTargetDBClusterParameterGroupName(TargetDBClusterParameterGroupNameT&& value) {
130 m_targetDBClusterParameterGroupNameHasBeenSet = true;
131 m_targetDBClusterParameterGroupName = std::forward<TargetDBClusterParameterGroupNameT>(value);
132 }
133 template <typename TargetDBClusterParameterGroupNameT = Aws::String>
134 CreateBlueGreenDeploymentRequest& WithTargetDBClusterParameterGroupName(TargetDBClusterParameterGroupNameT&& value) {
135 SetTargetDBClusterParameterGroupName(std::forward<TargetDBClusterParameterGroupNameT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template <typename TagsT = Aws::Vector<Tag>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Vector<Tag>>
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsT = Tag>
158 m_tagsHasBeenSet = true;
159 m_tags.emplace_back(std::forward<TagsT>(value));
160 return *this;
161 }
163
165
173 inline const Aws::String& GetTargetDBInstanceClass() const { return m_targetDBInstanceClass; }
174 inline bool TargetDBInstanceClassHasBeenSet() const { return m_targetDBInstanceClassHasBeenSet; }
175 template <typename TargetDBInstanceClassT = Aws::String>
176 void SetTargetDBInstanceClass(TargetDBInstanceClassT&& value) {
177 m_targetDBInstanceClassHasBeenSet = true;
178 m_targetDBInstanceClass = std::forward<TargetDBInstanceClassT>(value);
179 }
180 template <typename TargetDBInstanceClassT = Aws::String>
182 SetTargetDBInstanceClass(std::forward<TargetDBInstanceClassT>(value));
183 return *this;
184 }
186
188
195 inline bool GetUpgradeTargetStorageConfig() const { return m_upgradeTargetStorageConfig; }
196 inline bool UpgradeTargetStorageConfigHasBeenSet() const { return m_upgradeTargetStorageConfigHasBeenSet; }
197 inline void SetUpgradeTargetStorageConfig(bool value) {
198 m_upgradeTargetStorageConfigHasBeenSet = true;
199 m_upgradeTargetStorageConfig = value;
200 }
203 return *this;
204 }
206
208
216 inline int GetTargetIops() const { return m_targetIops; }
217 inline bool TargetIopsHasBeenSet() const { return m_targetIopsHasBeenSet; }
218 inline void SetTargetIops(int value) {
219 m_targetIopsHasBeenSet = true;
220 m_targetIops = value;
221 }
223 SetTargetIops(value);
224 return *this;
225 }
227
229
234 inline const Aws::String& GetTargetStorageType() const { return m_targetStorageType; }
235 inline bool TargetStorageTypeHasBeenSet() const { return m_targetStorageTypeHasBeenSet; }
236 template <typename TargetStorageTypeT = Aws::String>
237 void SetTargetStorageType(TargetStorageTypeT&& value) {
238 m_targetStorageTypeHasBeenSet = true;
239 m_targetStorageType = std::forward<TargetStorageTypeT>(value);
240 }
241 template <typename TargetStorageTypeT = Aws::String>
243 SetTargetStorageType(std::forward<TargetStorageTypeT>(value));
244 return *this;
245 }
247
249
255 inline int GetTargetAllocatedStorage() const { return m_targetAllocatedStorage; }
256 inline bool TargetAllocatedStorageHasBeenSet() const { return m_targetAllocatedStorageHasBeenSet; }
257 inline void SetTargetAllocatedStorage(int value) {
258 m_targetAllocatedStorageHasBeenSet = true;
259 m_targetAllocatedStorage = value;
260 }
263 return *this;
264 }
266
268
273 inline int GetTargetStorageThroughput() const { return m_targetStorageThroughput; }
274 inline bool TargetStorageThroughputHasBeenSet() const { return m_targetStorageThroughputHasBeenSet; }
275 inline void SetTargetStorageThroughput(int value) {
276 m_targetStorageThroughputHasBeenSet = true;
277 m_targetStorageThroughput = value;
278 }
281 return *this;
282 }
284 private:
285 Aws::String m_blueGreenDeploymentName;
286
287 Aws::String m_source;
288
289 Aws::String m_targetEngineVersion;
290
291 Aws::String m_targetDBParameterGroupName;
292
293 Aws::String m_targetDBClusterParameterGroupName;
294
295 Aws::Vector<Tag> m_tags;
296
297 Aws::String m_targetDBInstanceClass;
298
299 bool m_upgradeTargetStorageConfig{false};
300
301 int m_targetIops{0};
302
303 Aws::String m_targetStorageType;
304
305 int m_targetAllocatedStorage{0};
306
307 int m_targetStorageThroughput{0};
308 bool m_blueGreenDeploymentNameHasBeenSet = false;
309 bool m_sourceHasBeenSet = false;
310 bool m_targetEngineVersionHasBeenSet = false;
311 bool m_targetDBParameterGroupNameHasBeenSet = false;
312 bool m_targetDBClusterParameterGroupNameHasBeenSet = false;
313 bool m_tagsHasBeenSet = false;
314 bool m_targetDBInstanceClassHasBeenSet = false;
315 bool m_upgradeTargetStorageConfigHasBeenSet = false;
316 bool m_targetIopsHasBeenSet = false;
317 bool m_targetStorageTypeHasBeenSet = false;
318 bool m_targetAllocatedStorageHasBeenSet = false;
319 bool m_targetStorageThroughputHasBeenSet = false;
320};
321
322} // namespace Model
323} // namespace RDS
324} // namespace Aws
void SetBlueGreenDeploymentName(BlueGreenDeploymentNameT &&value)
void SetTargetDBClusterParameterGroupName(TargetDBClusterParameterGroupNameT &&value)
CreateBlueGreenDeploymentRequest & WithTags(TagsT &&value)
CreateBlueGreenDeploymentRequest & WithTargetEngineVersion(TargetEngineVersionT &&value)
CreateBlueGreenDeploymentRequest & AddTags(TagsT &&value)
CreateBlueGreenDeploymentRequest & WithTargetAllocatedStorage(int value)
AWS_RDS_API Aws::String SerializePayload() const override
CreateBlueGreenDeploymentRequest & WithSource(SourceT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateBlueGreenDeploymentRequest & WithTargetDBClusterParameterGroupName(TargetDBClusterParameterGroupNameT &&value)
CreateBlueGreenDeploymentRequest & WithUpgradeTargetStorageConfig(bool value)
CreateBlueGreenDeploymentRequest & WithBlueGreenDeploymentName(BlueGreenDeploymentNameT &&value)
CreateBlueGreenDeploymentRequest & WithTargetDBInstanceClass(TargetDBInstanceClassT &&value)
CreateBlueGreenDeploymentRequest & WithTargetIops(int value)
void SetTargetDBParameterGroupName(TargetDBParameterGroupNameT &&value)
CreateBlueGreenDeploymentRequest & WithTargetDBParameterGroupName(TargetDBParameterGroupNameT &&value)
CreateBlueGreenDeploymentRequest & WithTargetStorageType(TargetStorageTypeT &&value)
CreateBlueGreenDeploymentRequest & WithTargetStorageThroughput(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector