AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LifecycleEvent.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/Diagnostics.h>
9#include <aws/codedeploy/model/LifecycleEventStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeDeploy {
23namespace Model {
24
31 public:
32 AWS_CODEDEPLOY_API LifecycleEvent() = default;
33 AWS_CODEDEPLOY_API LifecycleEvent(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEDEPLOY_API LifecycleEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetLifecycleEventName() const { return m_lifecycleEventName; }
44 inline bool LifecycleEventNameHasBeenSet() const { return m_lifecycleEventNameHasBeenSet; }
45 template <typename LifecycleEventNameT = Aws::String>
46 void SetLifecycleEventName(LifecycleEventNameT&& value) {
47 m_lifecycleEventNameHasBeenSet = true;
48 m_lifecycleEventName = std::forward<LifecycleEventNameT>(value);
49 }
50 template <typename LifecycleEventNameT = Aws::String>
51 LifecycleEvent& WithLifecycleEventName(LifecycleEventNameT&& value) {
52 SetLifecycleEventName(std::forward<LifecycleEventNameT>(value));
53 return *this;
54 }
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) {
65 m_diagnosticsHasBeenSet = true;
66 m_diagnostics = std::forward<DiagnosticsT>(value);
67 }
68 template <typename DiagnosticsT = Diagnostics>
69 LifecycleEvent& WithDiagnostics(DiagnosticsT&& value) {
70 SetDiagnostics(std::forward<DiagnosticsT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
80 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
81 template <typename StartTimeT = Aws::Utils::DateTime>
82 void SetStartTime(StartTimeT&& value) {
83 m_startTimeHasBeenSet = true;
84 m_startTime = std::forward<StartTimeT>(value);
85 }
86 template <typename StartTimeT = Aws::Utils::DateTime>
87 LifecycleEvent& WithStartTime(StartTimeT&& value) {
88 SetStartTime(std::forward<StartTimeT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
98 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
99 template <typename EndTimeT = Aws::Utils::DateTime>
100 void SetEndTime(EndTimeT&& value) {
101 m_endTimeHasBeenSet = true;
102 m_endTime = std::forward<EndTimeT>(value);
103 }
104 template <typename EndTimeT = Aws::Utils::DateTime>
105 LifecycleEvent& WithEndTime(EndTimeT&& value) {
106 SetEndTime(std::forward<EndTimeT>(value));
107 return *this;
108 }
110
112
121 inline LifecycleEventStatus GetStatus() const { return m_status; }
122 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 inline void SetStatus(LifecycleEventStatus value) {
124 m_statusHasBeenSet = true;
125 m_status = value;
126 }
128 SetStatus(value);
129 return *this;
130 }
132 private:
133 Aws::String m_lifecycleEventName;
134
135 Diagnostics m_diagnostics;
136
137 Aws::Utils::DateTime m_startTime{};
138
139 Aws::Utils::DateTime m_endTime{};
140
142 bool m_lifecycleEventNameHasBeenSet = false;
143 bool m_diagnosticsHasBeenSet = false;
144 bool m_startTimeHasBeenSet = false;
145 bool m_endTimeHasBeenSet = false;
146 bool m_statusHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace CodeDeploy
151} // 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