AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
LifecycleEvent.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeDeploy
25{
26namespace Model
27{
28
35 {
36 public:
41
42
48 inline const Aws::String& GetLifecycleEventName() const{ return m_lifecycleEventName; }
49
55 inline bool LifecycleEventNameHasBeenSet() const { return m_lifecycleEventNameHasBeenSet; }
56
62 inline void SetLifecycleEventName(const Aws::String& value) { m_lifecycleEventNameHasBeenSet = true; m_lifecycleEventName = value; }
63
69 inline void SetLifecycleEventName(Aws::String&& value) { m_lifecycleEventNameHasBeenSet = true; m_lifecycleEventName = std::move(value); }
70
76 inline void SetLifecycleEventName(const char* value) { m_lifecycleEventNameHasBeenSet = true; m_lifecycleEventName.assign(value); }
77
83 inline LifecycleEvent& WithLifecycleEventName(const Aws::String& value) { SetLifecycleEventName(value); return *this;}
84
90 inline LifecycleEvent& WithLifecycleEventName(Aws::String&& value) { SetLifecycleEventName(std::move(value)); return *this;}
91
97 inline LifecycleEvent& WithLifecycleEventName(const char* value) { SetLifecycleEventName(value); return *this;}
98
99
103 inline const Diagnostics& GetDiagnostics() const{ return m_diagnostics; }
104
108 inline bool DiagnosticsHasBeenSet() const { return m_diagnosticsHasBeenSet; }
109
113 inline void SetDiagnostics(const Diagnostics& value) { m_diagnosticsHasBeenSet = true; m_diagnostics = value; }
114
118 inline void SetDiagnostics(Diagnostics&& value) { m_diagnosticsHasBeenSet = true; m_diagnostics = std::move(value); }
119
123 inline LifecycleEvent& WithDiagnostics(const Diagnostics& value) { SetDiagnostics(value); return *this;}
124
128 inline LifecycleEvent& WithDiagnostics(Diagnostics&& value) { SetDiagnostics(std::move(value)); return *this;}
129
130
134 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
135
139 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
140
144 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
145
149 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
150
154 inline LifecycleEvent& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
155
159 inline LifecycleEvent& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
160
161
165 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
166
170 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
171
175 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
176
180 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
181
185 inline LifecycleEvent& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
186
190 inline LifecycleEvent& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
191
192
202 inline const LifecycleEventStatus& GetStatus() const{ return m_status; }
203
213 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
214
224 inline void SetStatus(const LifecycleEventStatus& value) { m_statusHasBeenSet = true; m_status = value; }
225
235 inline void SetStatus(LifecycleEventStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
236
246 inline LifecycleEvent& WithStatus(const LifecycleEventStatus& value) { SetStatus(value); return *this;}
247
257 inline LifecycleEvent& WithStatus(LifecycleEventStatus&& value) { SetStatus(std::move(value)); return *this;}
258
259 private:
260
261 Aws::String m_lifecycleEventName;
262 bool m_lifecycleEventNameHasBeenSet = false;
263
264 Diagnostics m_diagnostics;
265 bool m_diagnosticsHasBeenSet = false;
266
267 Aws::Utils::DateTime m_startTime;
268 bool m_startTimeHasBeenSet = false;
269
270 Aws::Utils::DateTime m_endTime;
271 bool m_endTimeHasBeenSet = false;
272
273 LifecycleEventStatus m_status;
274 bool m_statusHasBeenSet = false;
275 };
276
277} // namespace Model
278} // namespace CodeDeploy
279} // namespace Aws
#define AWS_CODEDEPLOY_API
void SetDiagnostics(const Diagnostics &value)
void SetStatus(const LifecycleEventStatus &value)
void SetLifecycleEventName(const char *value)
const Diagnostics & GetDiagnostics() const
void SetStartTime(Aws::Utils::DateTime &&value)
const LifecycleEventStatus & GetStatus() const
LifecycleEvent & WithStartTime(Aws::Utils::DateTime &&value)
AWS_CODEDEPLOY_API LifecycleEvent(Aws::Utils::Json::JsonView jsonValue)
void SetLifecycleEventName(Aws::String &&value)
void SetLifecycleEventName(const Aws::String &value)
LifecycleEvent & WithEndTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndTime() const
LifecycleEvent & WithStartTime(const Aws::Utils::DateTime &value)
LifecycleEvent & WithDiagnostics(Diagnostics &&value)
LifecycleEvent & WithStatus(const LifecycleEventStatus &value)
LifecycleEvent & WithLifecycleEventName(Aws::String &&value)
LifecycleEvent & WithDiagnostics(const Diagnostics &value)
LifecycleEvent & WithLifecycleEventName(const char *value)
LifecycleEvent & WithStatus(LifecycleEventStatus &&value)
void SetStatus(LifecycleEventStatus &&value)
AWS_CODEDEPLOY_API LifecycleEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDiagnostics(Diagnostics &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::String & GetLifecycleEventName() const
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEndTime(Aws::Utils::DateTime &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
LifecycleEvent & WithLifecycleEventName(const Aws::String &value)
LifecycleEvent & WithEndTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String