AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BlueGreenDeployment.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.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/core/utils/DateTime.h>
12#include <aws/rds/model/SwitchoverDetail.h>
13#include <aws/rds/model/BlueGreenDeploymentTask.h>
14#include <aws/rds/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace RDS
27{
28namespace Model
29{
30
43 {
44 public:
45 AWS_RDS_API BlueGreenDeployment() = default;
46 AWS_RDS_API BlueGreenDeployment(const Aws::Utils::Xml::XmlNode& xmlNode);
48
49 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
50 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
51
52
54
57 inline const Aws::String& GetBlueGreenDeploymentIdentifier() const { return m_blueGreenDeploymentIdentifier; }
58 inline bool BlueGreenDeploymentIdentifierHasBeenSet() const { return m_blueGreenDeploymentIdentifierHasBeenSet; }
59 template<typename BlueGreenDeploymentIdentifierT = Aws::String>
60 void SetBlueGreenDeploymentIdentifier(BlueGreenDeploymentIdentifierT&& value) { m_blueGreenDeploymentIdentifierHasBeenSet = true; m_blueGreenDeploymentIdentifier = std::forward<BlueGreenDeploymentIdentifierT>(value); }
61 template<typename BlueGreenDeploymentIdentifierT = Aws::String>
62 BlueGreenDeployment& WithBlueGreenDeploymentIdentifier(BlueGreenDeploymentIdentifierT&& value) { SetBlueGreenDeploymentIdentifier(std::forward<BlueGreenDeploymentIdentifierT>(value)); return *this;}
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) { m_blueGreenDeploymentNameHasBeenSet = true; m_blueGreenDeploymentName = std::forward<BlueGreenDeploymentNameT>(value); }
73 template<typename BlueGreenDeploymentNameT = Aws::String>
74 BlueGreenDeployment& WithBlueGreenDeploymentName(BlueGreenDeploymentNameT&& value) { SetBlueGreenDeploymentName(std::forward<BlueGreenDeploymentNameT>(value)); return *this;}
76
78
82 inline const Aws::String& GetSource() const { return m_source; }
83 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
84 template<typename SourceT = Aws::String>
85 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
86 template<typename SourceT = Aws::String>
87 BlueGreenDeployment& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
89
91
95 inline const Aws::String& GetTarget() const { return m_target; }
96 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
97 template<typename TargetT = Aws::String>
98 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
99 template<typename TargetT = Aws::String>
100 BlueGreenDeployment& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
102
104
108 inline const Aws::Vector<SwitchoverDetail>& GetSwitchoverDetails() const { return m_switchoverDetails; }
109 inline bool SwitchoverDetailsHasBeenSet() const { return m_switchoverDetailsHasBeenSet; }
110 template<typename SwitchoverDetailsT = Aws::Vector<SwitchoverDetail>>
111 void SetSwitchoverDetails(SwitchoverDetailsT&& value) { m_switchoverDetailsHasBeenSet = true; m_switchoverDetails = std::forward<SwitchoverDetailsT>(value); }
112 template<typename SwitchoverDetailsT = Aws::Vector<SwitchoverDetail>>
113 BlueGreenDeployment& WithSwitchoverDetails(SwitchoverDetailsT&& value) { SetSwitchoverDetails(std::forward<SwitchoverDetailsT>(value)); return *this;}
114 template<typename SwitchoverDetailsT = SwitchoverDetail>
115 BlueGreenDeployment& AddSwitchoverDetails(SwitchoverDetailsT&& value) { m_switchoverDetailsHasBeenSet = true; m_switchoverDetails.emplace_back(std::forward<SwitchoverDetailsT>(value)); return *this; }
117
119
123 inline const Aws::Vector<BlueGreenDeploymentTask>& GetTasks() const { return m_tasks; }
124 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
125 template<typename TasksT = Aws::Vector<BlueGreenDeploymentTask>>
126 void SetTasks(TasksT&& value) { m_tasksHasBeenSet = true; m_tasks = std::forward<TasksT>(value); }
127 template<typename TasksT = Aws::Vector<BlueGreenDeploymentTask>>
128 BlueGreenDeployment& WithTasks(TasksT&& value) { SetTasks(std::forward<TasksT>(value)); return *this;}
129 template<typename TasksT = BlueGreenDeploymentTask>
130 BlueGreenDeployment& AddTasks(TasksT&& value) { m_tasksHasBeenSet = true; m_tasks.emplace_back(std::forward<TasksT>(value)); return *this; }
132
134
148 inline const Aws::String& GetStatus() const { return m_status; }
149 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 template<typename StatusT = Aws::String>
151 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
152 template<typename StatusT = Aws::String>
153 BlueGreenDeployment& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
155
157
160 inline const Aws::String& GetStatusDetails() const { return m_statusDetails; }
161 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
162 template<typename StatusDetailsT = Aws::String>
163 void SetStatusDetails(StatusDetailsT&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = std::forward<StatusDetailsT>(value); }
164 template<typename StatusDetailsT = Aws::String>
165 BlueGreenDeployment& WithStatusDetails(StatusDetailsT&& value) { SetStatusDetails(std::forward<StatusDetailsT>(value)); return *this;}
167
169
173 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
174 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
175 template<typename CreateTimeT = Aws::Utils::DateTime>
176 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
177 template<typename CreateTimeT = Aws::Utils::DateTime>
178 BlueGreenDeployment& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
180
182
186 inline const Aws::Utils::DateTime& GetDeleteTime() const { return m_deleteTime; }
187 inline bool DeleteTimeHasBeenSet() const { return m_deleteTimeHasBeenSet; }
188 template<typename DeleteTimeT = Aws::Utils::DateTime>
189 void SetDeleteTime(DeleteTimeT&& value) { m_deleteTimeHasBeenSet = true; m_deleteTime = std::forward<DeleteTimeT>(value); }
190 template<typename DeleteTimeT = Aws::Utils::DateTime>
191 BlueGreenDeployment& WithDeleteTime(DeleteTimeT&& value) { SetDeleteTime(std::forward<DeleteTimeT>(value)); return *this;}
193
195
196 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
197 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
198 template<typename TagListT = Aws::Vector<Tag>>
199 void SetTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList = std::forward<TagListT>(value); }
200 template<typename TagListT = Aws::Vector<Tag>>
201 BlueGreenDeployment& WithTagList(TagListT&& value) { SetTagList(std::forward<TagListT>(value)); return *this;}
202 template<typename TagListT = Tag>
203 BlueGreenDeployment& AddTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList.emplace_back(std::forward<TagListT>(value)); return *this; }
205 private:
206
207 Aws::String m_blueGreenDeploymentIdentifier;
208 bool m_blueGreenDeploymentIdentifierHasBeenSet = false;
209
210 Aws::String m_blueGreenDeploymentName;
211 bool m_blueGreenDeploymentNameHasBeenSet = false;
212
213 Aws::String m_source;
214 bool m_sourceHasBeenSet = false;
215
216 Aws::String m_target;
217 bool m_targetHasBeenSet = false;
218
219 Aws::Vector<SwitchoverDetail> m_switchoverDetails;
220 bool m_switchoverDetailsHasBeenSet = false;
221
223 bool m_tasksHasBeenSet = false;
224
225 Aws::String m_status;
226 bool m_statusHasBeenSet = false;
227
228 Aws::String m_statusDetails;
229 bool m_statusDetailsHasBeenSet = false;
230
231 Aws::Utils::DateTime m_createTime{};
232 bool m_createTimeHasBeenSet = false;
233
234 Aws::Utils::DateTime m_deleteTime{};
235 bool m_deleteTimeHasBeenSet = false;
236
237 Aws::Vector<Tag> m_tagList;
238 bool m_tagListHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace RDS
243} // 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