AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BlueGreenDeployment.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/RDS_EXPORTS.h>
12#include <aws/rds/model/BlueGreenDeploymentTask.h>
13#include <aws/rds/model/SwitchoverDetail.h>
14#include <aws/rds/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS {
25namespace Model {
26
39 public:
40 AWS_RDS_API BlueGreenDeployment() = default;
41 AWS_RDS_API BlueGreenDeployment(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
48
51 inline const Aws::String& GetBlueGreenDeploymentIdentifier() const { return m_blueGreenDeploymentIdentifier; }
52 inline bool BlueGreenDeploymentIdentifierHasBeenSet() const { return m_blueGreenDeploymentIdentifierHasBeenSet; }
53 template <typename BlueGreenDeploymentIdentifierT = Aws::String>
54 void SetBlueGreenDeploymentIdentifier(BlueGreenDeploymentIdentifierT&& value) {
55 m_blueGreenDeploymentIdentifierHasBeenSet = true;
56 m_blueGreenDeploymentIdentifier = std::forward<BlueGreenDeploymentIdentifierT>(value);
57 }
58 template <typename BlueGreenDeploymentIdentifierT = Aws::String>
59 BlueGreenDeployment& WithBlueGreenDeploymentIdentifier(BlueGreenDeploymentIdentifierT&& value) {
60 SetBlueGreenDeploymentIdentifier(std::forward<BlueGreenDeploymentIdentifierT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetBlueGreenDeploymentName() const { return m_blueGreenDeploymentName; }
70 inline bool BlueGreenDeploymentNameHasBeenSet() const { return m_blueGreenDeploymentNameHasBeenSet; }
71 template <typename BlueGreenDeploymentNameT = Aws::String>
72 void SetBlueGreenDeploymentName(BlueGreenDeploymentNameT&& value) {
73 m_blueGreenDeploymentNameHasBeenSet = true;
74 m_blueGreenDeploymentName = std::forward<BlueGreenDeploymentNameT>(value);
75 }
76 template <typename BlueGreenDeploymentNameT = Aws::String>
77 BlueGreenDeployment& WithBlueGreenDeploymentName(BlueGreenDeploymentNameT&& value) {
78 SetBlueGreenDeploymentName(std::forward<BlueGreenDeploymentNameT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetSource() const { return m_source; }
89 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
90 template <typename SourceT = Aws::String>
91 void SetSource(SourceT&& value) {
92 m_sourceHasBeenSet = true;
93 m_source = std::forward<SourceT>(value);
94 }
95 template <typename SourceT = Aws::String>
96 BlueGreenDeployment& WithSource(SourceT&& value) {
97 SetSource(std::forward<SourceT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::String& GetTarget() const { return m_target; }
108 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
109 template <typename TargetT = Aws::String>
110 void SetTarget(TargetT&& value) {
111 m_targetHasBeenSet = true;
112 m_target = std::forward<TargetT>(value);
113 }
114 template <typename TargetT = Aws::String>
115 BlueGreenDeployment& WithTarget(TargetT&& value) {
116 SetTarget(std::forward<TargetT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::Vector<SwitchoverDetail>& GetSwitchoverDetails() const { return m_switchoverDetails; }
127 inline bool SwitchoverDetailsHasBeenSet() const { return m_switchoverDetailsHasBeenSet; }
128 template <typename SwitchoverDetailsT = Aws::Vector<SwitchoverDetail>>
129 void SetSwitchoverDetails(SwitchoverDetailsT&& value) {
130 m_switchoverDetailsHasBeenSet = true;
131 m_switchoverDetails = std::forward<SwitchoverDetailsT>(value);
132 }
133 template <typename SwitchoverDetailsT = Aws::Vector<SwitchoverDetail>>
134 BlueGreenDeployment& WithSwitchoverDetails(SwitchoverDetailsT&& value) {
135 SetSwitchoverDetails(std::forward<SwitchoverDetailsT>(value));
136 return *this;
137 }
138 template <typename SwitchoverDetailsT = SwitchoverDetail>
139 BlueGreenDeployment& AddSwitchoverDetails(SwitchoverDetailsT&& value) {
140 m_switchoverDetailsHasBeenSet = true;
141 m_switchoverDetails.emplace_back(std::forward<SwitchoverDetailsT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::Vector<BlueGreenDeploymentTask>& GetTasks() const { return m_tasks; }
152 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
153 template <typename TasksT = Aws::Vector<BlueGreenDeploymentTask>>
154 void SetTasks(TasksT&& value) {
155 m_tasksHasBeenSet = true;
156 m_tasks = std::forward<TasksT>(value);
157 }
158 template <typename TasksT = Aws::Vector<BlueGreenDeploymentTask>>
160 SetTasks(std::forward<TasksT>(value));
161 return *this;
162 }
163 template <typename TasksT = BlueGreenDeploymentTask>
164 BlueGreenDeployment& AddTasks(TasksT&& value) {
165 m_tasksHasBeenSet = true;
166 m_tasks.emplace_back(std::forward<TasksT>(value));
167 return *this;
168 }
170
172
186 inline const Aws::String& GetStatus() const { return m_status; }
187 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
188 template <typename StatusT = Aws::String>
189 void SetStatus(StatusT&& value) {
190 m_statusHasBeenSet = true;
191 m_status = std::forward<StatusT>(value);
192 }
193 template <typename StatusT = Aws::String>
194 BlueGreenDeployment& WithStatus(StatusT&& value) {
195 SetStatus(std::forward<StatusT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetStatusDetails() const { return m_statusDetails; }
205 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
206 template <typename StatusDetailsT = Aws::String>
207 void SetStatusDetails(StatusDetailsT&& value) {
208 m_statusDetailsHasBeenSet = true;
209 m_statusDetails = std::forward<StatusDetailsT>(value);
210 }
211 template <typename StatusDetailsT = Aws::String>
212 BlueGreenDeployment& WithStatusDetails(StatusDetailsT&& value) {
213 SetStatusDetails(std::forward<StatusDetailsT>(value));
214 return *this;
215 }
217
219
223 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
224 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
225 template <typename CreateTimeT = Aws::Utils::DateTime>
226 void SetCreateTime(CreateTimeT&& value) {
227 m_createTimeHasBeenSet = true;
228 m_createTime = std::forward<CreateTimeT>(value);
229 }
230 template <typename CreateTimeT = Aws::Utils::DateTime>
231 BlueGreenDeployment& WithCreateTime(CreateTimeT&& value) {
232 SetCreateTime(std::forward<CreateTimeT>(value));
233 return *this;
234 }
236
238
242 inline const Aws::Utils::DateTime& GetDeleteTime() const { return m_deleteTime; }
243 inline bool DeleteTimeHasBeenSet() const { return m_deleteTimeHasBeenSet; }
244 template <typename DeleteTimeT = Aws::Utils::DateTime>
245 void SetDeleteTime(DeleteTimeT&& value) {
246 m_deleteTimeHasBeenSet = true;
247 m_deleteTime = std::forward<DeleteTimeT>(value);
248 }
249 template <typename DeleteTimeT = Aws::Utils::DateTime>
250 BlueGreenDeployment& WithDeleteTime(DeleteTimeT&& value) {
251 SetDeleteTime(std::forward<DeleteTimeT>(value));
252 return *this;
253 }
255
257
258 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
259 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
260 template <typename TagListT = Aws::Vector<Tag>>
261 void SetTagList(TagListT&& value) {
262 m_tagListHasBeenSet = true;
263 m_tagList = std::forward<TagListT>(value);
264 }
265 template <typename TagListT = Aws::Vector<Tag>>
266 BlueGreenDeployment& WithTagList(TagListT&& value) {
267 SetTagList(std::forward<TagListT>(value));
268 return *this;
269 }
270 template <typename TagListT = Tag>
271 BlueGreenDeployment& AddTagList(TagListT&& value) {
272 m_tagListHasBeenSet = true;
273 m_tagList.emplace_back(std::forward<TagListT>(value));
274 return *this;
275 }
277 private:
278 Aws::String m_blueGreenDeploymentIdentifier;
279
280 Aws::String m_blueGreenDeploymentName;
281
282 Aws::String m_source;
283
284 Aws::String m_target;
285
286 Aws::Vector<SwitchoverDetail> m_switchoverDetails;
287
289
290 Aws::String m_status;
291
292 Aws::String m_statusDetails;
293
294 Aws::Utils::DateTime m_createTime{};
295
296 Aws::Utils::DateTime m_deleteTime{};
297
298 Aws::Vector<Tag> m_tagList;
299 bool m_blueGreenDeploymentIdentifierHasBeenSet = false;
300 bool m_blueGreenDeploymentNameHasBeenSet = false;
301 bool m_sourceHasBeenSet = false;
302 bool m_targetHasBeenSet = false;
303 bool m_switchoverDetailsHasBeenSet = false;
304 bool m_tasksHasBeenSet = false;
305 bool m_statusHasBeenSet = false;
306 bool m_statusDetailsHasBeenSet = false;
307 bool m_createTimeHasBeenSet = false;
308 bool m_deleteTimeHasBeenSet = false;
309 bool m_tagListHasBeenSet = false;
310};
311
312} // namespace Model
313} // namespace RDS
314} // namespace Aws
BlueGreenDeployment & WithStatus(StatusT &&value)
void SetBlueGreenDeploymentName(BlueGreenDeploymentNameT &&value)
void SetBlueGreenDeploymentIdentifier(BlueGreenDeploymentIdentifierT &&value)
const Aws::Vector< Tag > & GetTagList() const
const Aws::Vector< SwitchoverDetail > & GetSwitchoverDetails() const
BlueGreenDeployment & WithSwitchoverDetails(SwitchoverDetailsT &&value)
const Aws::String & GetStatusDetails() const
BlueGreenDeployment & AddTagList(TagListT &&value)
BlueGreenDeployment & AddTasks(TasksT &&value)
BlueGreenDeployment & WithBlueGreenDeploymentIdentifier(BlueGreenDeploymentIdentifierT &&value)
void SetSwitchoverDetails(SwitchoverDetailsT &&value)
BlueGreenDeployment & WithStatusDetails(StatusDetailsT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
BlueGreenDeployment & WithBlueGreenDeploymentName(BlueGreenDeploymentNameT &&value)
const Aws::String & GetStatus() const
BlueGreenDeployment & WithTasks(TasksT &&value)
BlueGreenDeployment & AddSwitchoverDetails(SwitchoverDetailsT &&value)
const Aws::String & GetTarget() const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetBlueGreenDeploymentIdentifier() const
AWS_RDS_API BlueGreenDeployment()=default
BlueGreenDeployment & WithSource(SourceT &&value)
BlueGreenDeployment & WithTagList(TagListT &&value)
AWS_RDS_API BlueGreenDeployment(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
BlueGreenDeployment & WithCreateTime(CreateTimeT &&value)
const Aws::String & GetSource() const
AWS_RDS_API BlueGreenDeployment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< BlueGreenDeploymentTask > & GetTasks() const
const Aws::Utils::DateTime & GetDeleteTime() const
const Aws::String & GetBlueGreenDeploymentName() const
BlueGreenDeployment & WithTarget(TargetT &&value)
BlueGreenDeployment & WithDeleteTime(DeleteTimeT &&value)
void SetStatusDetails(StatusDetailsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream