AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LifecycleEvent.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codedeploy/model/Diagnostics.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/codedeploy/model/LifecycleEventStatus.h>
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:
37 AWS_CODEDEPLOY_API LifecycleEvent() = default;
38 AWS_CODEDEPLOY_API LifecycleEvent(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEDEPLOY_API LifecycleEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetLifecycleEventName() const { return m_lifecycleEventName; }
50 inline bool LifecycleEventNameHasBeenSet() const { return m_lifecycleEventNameHasBeenSet; }
51 template<typename LifecycleEventNameT = Aws::String>
52 void SetLifecycleEventName(LifecycleEventNameT&& value) { m_lifecycleEventNameHasBeenSet = true; m_lifecycleEventName = std::forward<LifecycleEventNameT>(value); }
53 template<typename LifecycleEventNameT = Aws::String>
54 LifecycleEvent& WithLifecycleEventName(LifecycleEventNameT&& value) { SetLifecycleEventName(std::forward<LifecycleEventNameT>(value)); return *this;}
56
58
61 inline const Diagnostics& GetDiagnostics() const { return m_diagnostics; }
62 inline bool DiagnosticsHasBeenSet() const { return m_diagnosticsHasBeenSet; }
63 template<typename DiagnosticsT = Diagnostics>
64 void SetDiagnostics(DiagnosticsT&& value) { m_diagnosticsHasBeenSet = true; m_diagnostics = std::forward<DiagnosticsT>(value); }
65 template<typename DiagnosticsT = Diagnostics>
66 LifecycleEvent& WithDiagnostics(DiagnosticsT&& value) { SetDiagnostics(std::forward<DiagnosticsT>(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
74 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
75 template<typename StartTimeT = Aws::Utils::DateTime>
76 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
77 template<typename StartTimeT = Aws::Utils::DateTime>
78 LifecycleEvent& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
86 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
87 template<typename EndTimeT = Aws::Utils::DateTime>
88 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
89 template<typename EndTimeT = Aws::Utils::DateTime>
90 LifecycleEvent& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
92
94
103 inline LifecycleEventStatus GetStatus() const { return m_status; }
104 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
105 inline void SetStatus(LifecycleEventStatus value) { m_statusHasBeenSet = true; m_status = value; }
106 inline LifecycleEvent& WithStatus(LifecycleEventStatus value) { SetStatus(value); return *this;}
108 private:
109
110 Aws::String m_lifecycleEventName;
111 bool m_lifecycleEventNameHasBeenSet = false;
112
113 Diagnostics m_diagnostics;
114 bool m_diagnosticsHasBeenSet = false;
115
116 Aws::Utils::DateTime m_startTime{};
117 bool m_startTimeHasBeenSet = false;
118
119 Aws::Utils::DateTime m_endTime{};
120 bool m_endTimeHasBeenSet = false;
121
123 bool m_statusHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace CodeDeploy
128} // namespace Aws
LifecycleEvent & WithDiagnostics(DiagnosticsT &&value)
const Diagnostics & GetDiagnostics() const
void SetLifecycleEventName(LifecycleEventNameT &&value)
void SetStartTime(StartTimeT &&value)
AWS_CODEDEPLOY_API LifecycleEvent(Aws::Utils::Json::JsonView jsonValue)
LifecycleEventStatus GetStatus() const
const Aws::Utils::DateTime & GetEndTime() const
LifecycleEvent & WithStatus(LifecycleEventStatus value)
void SetDiagnostics(DiagnosticsT &&value)
AWS_CODEDEPLOY_API LifecycleEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
LifecycleEvent & WithEndTime(EndTimeT &&value)
void SetStatus(LifecycleEventStatus value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::String & GetLifecycleEventName() const
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
LifecycleEvent & WithStartTime(StartTimeT &&value)
AWS_CODEDEPLOY_API LifecycleEvent()=default
LifecycleEvent & WithLifecycleEventName(LifecycleEventNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue