AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateBlueGreenDeploymentRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RDS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_RDS_API CreateBlueGreenDeploymentRequest() = 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 "CreateBlueGreenDeployment"; }
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:
40
42
47 inline const Aws::String& GetBlueGreenDeploymentName() const { return m_blueGreenDeploymentName; }
48 inline bool BlueGreenDeploymentNameHasBeenSet() const { return m_blueGreenDeploymentNameHasBeenSet; }
49 template<typename BlueGreenDeploymentNameT = Aws::String>
50 void SetBlueGreenDeploymentName(BlueGreenDeploymentNameT&& value) { m_blueGreenDeploymentNameHasBeenSet = true; m_blueGreenDeploymentName = std::forward<BlueGreenDeploymentNameT>(value); }
51 template<typename BlueGreenDeploymentNameT = Aws::String>
52 CreateBlueGreenDeploymentRequest& WithBlueGreenDeploymentName(BlueGreenDeploymentNameT&& value) { SetBlueGreenDeploymentName(std::forward<BlueGreenDeploymentNameT>(value)); return *this;}
54
56
64 inline const Aws::String& GetSource() const { return m_source; }
65 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
66 template<typename SourceT = Aws::String>
67 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
68 template<typename SourceT = Aws::String>
69 CreateBlueGreenDeploymentRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
71
73
77 inline const Aws::String& GetTargetEngineVersion() const { return m_targetEngineVersion; }
78 inline bool TargetEngineVersionHasBeenSet() const { return m_targetEngineVersionHasBeenSet; }
79 template<typename TargetEngineVersionT = Aws::String>
80 void SetTargetEngineVersion(TargetEngineVersionT&& value) { m_targetEngineVersionHasBeenSet = true; m_targetEngineVersion = std::forward<TargetEngineVersionT>(value); }
81 template<typename TargetEngineVersionT = Aws::String>
82 CreateBlueGreenDeploymentRequest& WithTargetEngineVersion(TargetEngineVersionT&& value) { SetTargetEngineVersion(std::forward<TargetEngineVersionT>(value)); return *this;}
84
86
91 inline const Aws::String& GetTargetDBParameterGroupName() const { return m_targetDBParameterGroupName; }
92 inline bool TargetDBParameterGroupNameHasBeenSet() const { return m_targetDBParameterGroupNameHasBeenSet; }
93 template<typename TargetDBParameterGroupNameT = Aws::String>
94 void SetTargetDBParameterGroupName(TargetDBParameterGroupNameT&& value) { m_targetDBParameterGroupNameHasBeenSet = true; m_targetDBParameterGroupName = std::forward<TargetDBParameterGroupNameT>(value); }
95 template<typename TargetDBParameterGroupNameT = Aws::String>
96 CreateBlueGreenDeploymentRequest& WithTargetDBParameterGroupName(TargetDBParameterGroupNameT&& value) { SetTargetDBParameterGroupName(std::forward<TargetDBParameterGroupNameT>(value)); return *this;}
98
100
106 inline const Aws::String& GetTargetDBClusterParameterGroupName() const { return m_targetDBClusterParameterGroupName; }
107 inline bool TargetDBClusterParameterGroupNameHasBeenSet() const { return m_targetDBClusterParameterGroupNameHasBeenSet; }
108 template<typename TargetDBClusterParameterGroupNameT = Aws::String>
109 void SetTargetDBClusterParameterGroupName(TargetDBClusterParameterGroupNameT&& value) { m_targetDBClusterParameterGroupNameHasBeenSet = true; m_targetDBClusterParameterGroupName = std::forward<TargetDBClusterParameterGroupNameT>(value); }
110 template<typename TargetDBClusterParameterGroupNameT = Aws::String>
111 CreateBlueGreenDeploymentRequest& WithTargetDBClusterParameterGroupName(TargetDBClusterParameterGroupNameT&& value) { SetTargetDBClusterParameterGroupName(std::forward<TargetDBClusterParameterGroupNameT>(value)); return *this;}
113
115
118 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 template<typename TagsT = Aws::Vector<Tag>>
121 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
122 template<typename TagsT = Aws::Vector<Tag>>
123 CreateBlueGreenDeploymentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
124 template<typename TagsT = Tag>
125 CreateBlueGreenDeploymentRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
127
129
137 inline const Aws::String& GetTargetDBInstanceClass() const { return m_targetDBInstanceClass; }
138 inline bool TargetDBInstanceClassHasBeenSet() const { return m_targetDBInstanceClassHasBeenSet; }
139 template<typename TargetDBInstanceClassT = Aws::String>
140 void SetTargetDBInstanceClass(TargetDBInstanceClassT&& value) { m_targetDBInstanceClassHasBeenSet = true; m_targetDBInstanceClass = std::forward<TargetDBInstanceClassT>(value); }
141 template<typename TargetDBInstanceClassT = Aws::String>
142 CreateBlueGreenDeploymentRequest& WithTargetDBInstanceClass(TargetDBInstanceClassT&& value) { SetTargetDBInstanceClass(std::forward<TargetDBInstanceClassT>(value)); return *this;}
144
146
153 inline bool GetUpgradeTargetStorageConfig() const { return m_upgradeTargetStorageConfig; }
154 inline bool UpgradeTargetStorageConfigHasBeenSet() const { return m_upgradeTargetStorageConfigHasBeenSet; }
155 inline void SetUpgradeTargetStorageConfig(bool value) { m_upgradeTargetStorageConfigHasBeenSet = true; m_upgradeTargetStorageConfig = value; }
158
160
168 inline int GetTargetIops() const { return m_targetIops; }
169 inline bool TargetIopsHasBeenSet() const { return m_targetIopsHasBeenSet; }
170 inline void SetTargetIops(int value) { m_targetIopsHasBeenSet = true; m_targetIops = value; }
171 inline CreateBlueGreenDeploymentRequest& WithTargetIops(int value) { SetTargetIops(value); return *this;}
173
175
180 inline const Aws::String& GetTargetStorageType() const { return m_targetStorageType; }
181 inline bool TargetStorageTypeHasBeenSet() const { return m_targetStorageTypeHasBeenSet; }
182 template<typename TargetStorageTypeT = Aws::String>
183 void SetTargetStorageType(TargetStorageTypeT&& value) { m_targetStorageTypeHasBeenSet = true; m_targetStorageType = std::forward<TargetStorageTypeT>(value); }
184 template<typename TargetStorageTypeT = Aws::String>
185 CreateBlueGreenDeploymentRequest& WithTargetStorageType(TargetStorageTypeT&& value) { SetTargetStorageType(std::forward<TargetStorageTypeT>(value)); return *this;}
187
189
195 inline int GetTargetAllocatedStorage() const { return m_targetAllocatedStorage; }
196 inline bool TargetAllocatedStorageHasBeenSet() const { return m_targetAllocatedStorageHasBeenSet; }
197 inline void SetTargetAllocatedStorage(int value) { m_targetAllocatedStorageHasBeenSet = true; m_targetAllocatedStorage = value; }
200
202
207 inline int GetTargetStorageThroughput() const { return m_targetStorageThroughput; }
208 inline bool TargetStorageThroughputHasBeenSet() const { return m_targetStorageThroughputHasBeenSet; }
209 inline void SetTargetStorageThroughput(int value) { m_targetStorageThroughputHasBeenSet = true; m_targetStorageThroughput = value; }
212 private:
213
214 Aws::String m_blueGreenDeploymentName;
215 bool m_blueGreenDeploymentNameHasBeenSet = false;
216
217 Aws::String m_source;
218 bool m_sourceHasBeenSet = false;
219
220 Aws::String m_targetEngineVersion;
221 bool m_targetEngineVersionHasBeenSet = false;
222
223 Aws::String m_targetDBParameterGroupName;
224 bool m_targetDBParameterGroupNameHasBeenSet = false;
225
226 Aws::String m_targetDBClusterParameterGroupName;
227 bool m_targetDBClusterParameterGroupNameHasBeenSet = false;
228
229 Aws::Vector<Tag> m_tags;
230 bool m_tagsHasBeenSet = false;
231
232 Aws::String m_targetDBInstanceClass;
233 bool m_targetDBInstanceClassHasBeenSet = false;
234
235 bool m_upgradeTargetStorageConfig{false};
236 bool m_upgradeTargetStorageConfigHasBeenSet = false;
237
238 int m_targetIops{0};
239 bool m_targetIopsHasBeenSet = false;
240
241 Aws::String m_targetStorageType;
242 bool m_targetStorageTypeHasBeenSet = false;
243
244 int m_targetAllocatedStorage{0};
245 bool m_targetAllocatedStorageHasBeenSet = false;
246
247 int m_targetStorageThroughput{0};
248 bool m_targetStorageThroughputHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace RDS
253} // 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