AWS SDK for C++

AWS SDK for C++ Version 1.11.909

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#include <aws/rds/model/TargetResourceConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace RDS {
18namespace Model {
19
23 public:
24 AWS_RDS_API CreateBlueGreenDeploymentRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateBlueGreenDeployment"; }
31
32 AWS_RDS_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
44 inline const Aws::String& GetBlueGreenDeploymentName() const { return m_blueGreenDeploymentName; }
45 inline bool BlueGreenDeploymentNameHasBeenSet() const { return m_blueGreenDeploymentNameHasBeenSet; }
46 template <typename BlueGreenDeploymentNameT = Aws::String>
47 void SetBlueGreenDeploymentName(BlueGreenDeploymentNameT&& value) {
48 m_blueGreenDeploymentNameHasBeenSet = true;
49 m_blueGreenDeploymentName = std::forward<BlueGreenDeploymentNameT>(value);
50 }
51 template <typename BlueGreenDeploymentNameT = Aws::String>
53 SetBlueGreenDeploymentName(std::forward<BlueGreenDeploymentNameT>(value));
54 return *this;
55 }
57
59
67 inline const Aws::String& GetSource() const { return m_source; }
68 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
69 template <typename SourceT = Aws::String>
70 void SetSource(SourceT&& value) {
71 m_sourceHasBeenSet = true;
72 m_source = std::forward<SourceT>(value);
73 }
74 template <typename SourceT = Aws::String>
76 SetSource(std::forward<SourceT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetTargetEngineVersion() const { return m_targetEngineVersion; }
87 inline bool TargetEngineVersionHasBeenSet() const { return m_targetEngineVersionHasBeenSet; }
88 template <typename TargetEngineVersionT = Aws::String>
89 void SetTargetEngineVersion(TargetEngineVersionT&& value) {
90 m_targetEngineVersionHasBeenSet = true;
91 m_targetEngineVersion = std::forward<TargetEngineVersionT>(value);
92 }
93 template <typename TargetEngineVersionT = Aws::String>
95 SetTargetEngineVersion(std::forward<TargetEngineVersionT>(value));
96 return *this;
97 }
99
101
106 inline const Aws::String& GetTargetDBParameterGroupName() const { return m_targetDBParameterGroupName; }
107 inline bool TargetDBParameterGroupNameHasBeenSet() const { return m_targetDBParameterGroupNameHasBeenSet; }
108 template <typename TargetDBParameterGroupNameT = Aws::String>
109 void SetTargetDBParameterGroupName(TargetDBParameterGroupNameT&& value) {
110 m_targetDBParameterGroupNameHasBeenSet = true;
111 m_targetDBParameterGroupName = std::forward<TargetDBParameterGroupNameT>(value);
112 }
113 template <typename TargetDBParameterGroupNameT = Aws::String>
115 SetTargetDBParameterGroupName(std::forward<TargetDBParameterGroupNameT>(value));
116 return *this;
117 }
119
121
127 inline const Aws::String& GetTargetDBClusterParameterGroupName() const { return m_targetDBClusterParameterGroupName; }
128 inline bool TargetDBClusterParameterGroupNameHasBeenSet() const { return m_targetDBClusterParameterGroupNameHasBeenSet; }
129 template <typename TargetDBClusterParameterGroupNameT = Aws::String>
130 void SetTargetDBClusterParameterGroupName(TargetDBClusterParameterGroupNameT&& value) {
131 m_targetDBClusterParameterGroupNameHasBeenSet = true;
132 m_targetDBClusterParameterGroupName = std::forward<TargetDBClusterParameterGroupNameT>(value);
133 }
134 template <typename TargetDBClusterParameterGroupNameT = Aws::String>
135 CreateBlueGreenDeploymentRequest& WithTargetDBClusterParameterGroupName(TargetDBClusterParameterGroupNameT&& value) {
136 SetTargetDBClusterParameterGroupName(std::forward<TargetDBClusterParameterGroupNameT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 template <typename TagsT = Aws::Vector<Tag>>
148 void SetTags(TagsT&& value) {
149 m_tagsHasBeenSet = true;
150 m_tags = std::forward<TagsT>(value);
151 }
152 template <typename TagsT = Aws::Vector<Tag>>
154 SetTags(std::forward<TagsT>(value));
155 return *this;
156 }
157 template <typename TagsT = Tag>
159 m_tagsHasBeenSet = true;
160 m_tags.emplace_back(std::forward<TagsT>(value));
161 return *this;
162 }
164
166
174 inline const Aws::String& GetTargetDBInstanceClass() const { return m_targetDBInstanceClass; }
175 inline bool TargetDBInstanceClassHasBeenSet() const { return m_targetDBInstanceClassHasBeenSet; }
176 template <typename TargetDBInstanceClassT = Aws::String>
177 void SetTargetDBInstanceClass(TargetDBInstanceClassT&& value) {
178 m_targetDBInstanceClassHasBeenSet = true;
179 m_targetDBInstanceClass = std::forward<TargetDBInstanceClassT>(value);
180 }
181 template <typename TargetDBInstanceClassT = Aws::String>
183 SetTargetDBInstanceClass(std::forward<TargetDBInstanceClassT>(value));
184 return *this;
185 }
187
189
196 inline bool GetUpgradeTargetStorageConfig() const { return m_upgradeTargetStorageConfig; }
197 inline bool UpgradeTargetStorageConfigHasBeenSet() const { return m_upgradeTargetStorageConfigHasBeenSet; }
198 inline void SetUpgradeTargetStorageConfig(bool value) {
199 m_upgradeTargetStorageConfigHasBeenSet = true;
200 m_upgradeTargetStorageConfig = value;
201 }
204 return *this;
205 }
207
209
217 inline int GetTargetIops() const { return m_targetIops; }
218 inline bool TargetIopsHasBeenSet() const { return m_targetIopsHasBeenSet; }
219 inline void SetTargetIops(int value) {
220 m_targetIopsHasBeenSet = true;
221 m_targetIops = value;
222 }
224 SetTargetIops(value);
225 return *this;
226 }
228
230
235 inline const Aws::String& GetTargetStorageType() const { return m_targetStorageType; }
236 inline bool TargetStorageTypeHasBeenSet() const { return m_targetStorageTypeHasBeenSet; }
237 template <typename TargetStorageTypeT = Aws::String>
238 void SetTargetStorageType(TargetStorageTypeT&& value) {
239 m_targetStorageTypeHasBeenSet = true;
240 m_targetStorageType = std::forward<TargetStorageTypeT>(value);
241 }
242 template <typename TargetStorageTypeT = Aws::String>
244 SetTargetStorageType(std::forward<TargetStorageTypeT>(value));
245 return *this;
246 }
248
250
256 inline int GetTargetAllocatedStorage() const { return m_targetAllocatedStorage; }
257 inline bool TargetAllocatedStorageHasBeenSet() const { return m_targetAllocatedStorageHasBeenSet; }
258 inline void SetTargetAllocatedStorage(int value) {
259 m_targetAllocatedStorageHasBeenSet = true;
260 m_targetAllocatedStorage = value;
261 }
264 return *this;
265 }
267
269
274 inline int GetTargetStorageThroughput() const { return m_targetStorageThroughput; }
275 inline bool TargetStorageThroughputHasBeenSet() const { return m_targetStorageThroughputHasBeenSet; }
276 inline void SetTargetStorageThroughput(int value) {
277 m_targetStorageThroughputHasBeenSet = true;
278 m_targetStorageThroughput = value;
279 }
282 return *this;
283 }
285
287
298 inline const Aws::Vector<TargetResourceConfiguration>& GetTargetResourceConfigurations() const { return m_targetResourceConfigurations; }
299 inline bool TargetResourceConfigurationsHasBeenSet() const { return m_targetResourceConfigurationsHasBeenSet; }
300 template <typename TargetResourceConfigurationsT = Aws::Vector<TargetResourceConfiguration>>
301 void SetTargetResourceConfigurations(TargetResourceConfigurationsT&& value) {
302 m_targetResourceConfigurationsHasBeenSet = true;
303 m_targetResourceConfigurations = std::forward<TargetResourceConfigurationsT>(value);
304 }
305 template <typename TargetResourceConfigurationsT = Aws::Vector<TargetResourceConfiguration>>
307 SetTargetResourceConfigurations(std::forward<TargetResourceConfigurationsT>(value));
308 return *this;
309 }
310 template <typename TargetResourceConfigurationsT = TargetResourceConfiguration>
312 m_targetResourceConfigurationsHasBeenSet = true;
313 m_targetResourceConfigurations.emplace_back(std::forward<TargetResourceConfigurationsT>(value));
314 return *this;
315 }
317 private:
318 Aws::String m_blueGreenDeploymentName;
319
320 Aws::String m_source;
321
322 Aws::String m_targetEngineVersion;
323
324 Aws::String m_targetDBParameterGroupName;
325
326 Aws::String m_targetDBClusterParameterGroupName;
327
328 Aws::Vector<Tag> m_tags;
329
330 Aws::String m_targetDBInstanceClass;
331
332 bool m_upgradeTargetStorageConfig{false};
333
334 int m_targetIops{0};
335
336 Aws::String m_targetStorageType;
337
338 int m_targetAllocatedStorage{0};
339
340 int m_targetStorageThroughput{0};
341
342 Aws::Vector<TargetResourceConfiguration> m_targetResourceConfigurations;
343 bool m_blueGreenDeploymentNameHasBeenSet = false;
344 bool m_sourceHasBeenSet = false;
345 bool m_targetEngineVersionHasBeenSet = false;
346 bool m_targetDBParameterGroupNameHasBeenSet = false;
347 bool m_targetDBClusterParameterGroupNameHasBeenSet = false;
348 bool m_tagsHasBeenSet = false;
349 bool m_targetDBInstanceClassHasBeenSet = false;
350 bool m_upgradeTargetStorageConfigHasBeenSet = false;
351 bool m_targetIopsHasBeenSet = false;
352 bool m_targetStorageTypeHasBeenSet = false;
353 bool m_targetAllocatedStorageHasBeenSet = false;
354 bool m_targetStorageThroughputHasBeenSet = false;
355 bool m_targetResourceConfigurationsHasBeenSet = false;
356};
357
358} // namespace Model
359} // namespace RDS
360} // namespace Aws
const Aws::Vector< TargetResourceConfiguration > & GetTargetResourceConfigurations() const
void SetBlueGreenDeploymentName(BlueGreenDeploymentNameT &&value)
void SetTargetDBClusterParameterGroupName(TargetDBClusterParameterGroupNameT &&value)
CreateBlueGreenDeploymentRequest & WithTags(TagsT &&value)
CreateBlueGreenDeploymentRequest & WithTargetEngineVersion(TargetEngineVersionT &&value)
CreateBlueGreenDeploymentRequest & AddTags(TagsT &&value)
void SetTargetResourceConfigurations(TargetResourceConfigurationsT &&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 & WithTargetResourceConfigurations(TargetResourceConfigurationsT &&value)
CreateBlueGreenDeploymentRequest & WithTargetDBClusterParameterGroupName(TargetDBClusterParameterGroupNameT &&value)
CreateBlueGreenDeploymentRequest & WithUpgradeTargetStorageConfig(bool value)
CreateBlueGreenDeploymentRequest & AddTargetResourceConfigurations(TargetResourceConfigurationsT &&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