AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
WorkflowRunSummary.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/codecatalyst/model/WorkflowRunStatus.h>
9#include <aws/codecatalyst/model/WorkflowRunStatusReason.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeCatalyst {
24namespace Model {
25
32 public:
33 AWS_CODECATALYST_API WorkflowRunSummary() = default;
34 AWS_CODECATALYST_API WorkflowRunSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 WorkflowRunSummary& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
61 inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; }
62 template <typename WorkflowIdT = Aws::String>
63 void SetWorkflowId(WorkflowIdT&& value) {
64 m_workflowIdHasBeenSet = true;
65 m_workflowId = std::forward<WorkflowIdT>(value);
66 }
67 template <typename WorkflowIdT = Aws::String>
68 WorkflowRunSummary& WithWorkflowId(WorkflowIdT&& value) {
69 SetWorkflowId(std::forward<WorkflowIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetWorkflowName() const { return m_workflowName; }
79 inline bool WorkflowNameHasBeenSet() const { return m_workflowNameHasBeenSet; }
80 template <typename WorkflowNameT = Aws::String>
81 void SetWorkflowName(WorkflowNameT&& value) {
82 m_workflowNameHasBeenSet = true;
83 m_workflowName = std::forward<WorkflowNameT>(value);
84 }
85 template <typename WorkflowNameT = Aws::String>
86 WorkflowRunSummary& WithWorkflowName(WorkflowNameT&& value) {
87 SetWorkflowName(std::forward<WorkflowNameT>(value));
88 return *this;
89 }
91
93
96 inline WorkflowRunStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(WorkflowRunStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::Vector<WorkflowRunStatusReason>& GetStatusReasons() const { return m_statusReasons; }
113 inline bool StatusReasonsHasBeenSet() const { return m_statusReasonsHasBeenSet; }
114 template <typename StatusReasonsT = Aws::Vector<WorkflowRunStatusReason>>
115 void SetStatusReasons(StatusReasonsT&& value) {
116 m_statusReasonsHasBeenSet = true;
117 m_statusReasons = std::forward<StatusReasonsT>(value);
118 }
119 template <typename StatusReasonsT = Aws::Vector<WorkflowRunStatusReason>>
120 WorkflowRunSummary& WithStatusReasons(StatusReasonsT&& value) {
121 SetStatusReasons(std::forward<StatusReasonsT>(value));
122 return *this;
123 }
124 template <typename StatusReasonsT = WorkflowRunStatusReason>
125 WorkflowRunSummary& AddStatusReasons(StatusReasonsT&& value) {
126 m_statusReasonsHasBeenSet = true;
127 m_statusReasons.emplace_back(std::forward<StatusReasonsT>(value));
128 return *this;
129 }
131
133
138 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
139 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
140 template <typename StartTimeT = Aws::Utils::DateTime>
141 void SetStartTime(StartTimeT&& value) {
142 m_startTimeHasBeenSet = true;
143 m_startTime = std::forward<StartTimeT>(value);
144 }
145 template <typename StartTimeT = Aws::Utils::DateTime>
146 WorkflowRunSummary& WithStartTime(StartTimeT&& value) {
147 SetStartTime(std::forward<StartTimeT>(value));
148 return *this;
149 }
151
153
158 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
159 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
160 template <typename EndTimeT = Aws::Utils::DateTime>
161 void SetEndTime(EndTimeT&& value) {
162 m_endTimeHasBeenSet = true;
163 m_endTime = std::forward<EndTimeT>(value);
164 }
165 template <typename EndTimeT = Aws::Utils::DateTime>
166 WorkflowRunSummary& WithEndTime(EndTimeT&& value) {
167 SetEndTime(std::forward<EndTimeT>(value));
168 return *this;
169 }
171
173
178 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
179 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
180 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
181 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
182 m_lastUpdatedTimeHasBeenSet = true;
183 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
184 }
185 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
186 WorkflowRunSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
187 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
188 return *this;
189 }
191 private:
192 Aws::String m_id;
193 bool m_idHasBeenSet = false;
194
195 Aws::String m_workflowId;
196 bool m_workflowIdHasBeenSet = false;
197
198 Aws::String m_workflowName;
199 bool m_workflowNameHasBeenSet = false;
200
202 bool m_statusHasBeenSet = false;
203
205 bool m_statusReasonsHasBeenSet = false;
206
207 Aws::Utils::DateTime m_startTime{};
208 bool m_startTimeHasBeenSet = false;
209
210 Aws::Utils::DateTime m_endTime{};
211 bool m_endTimeHasBeenSet = false;
212
213 Aws::Utils::DateTime m_lastUpdatedTime{};
214 bool m_lastUpdatedTimeHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace CodeCatalyst
219} // namespace Aws
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
WorkflowRunSummary & WithStatus(WorkflowRunStatus value)
WorkflowRunSummary & AddStatusReasons(StatusReasonsT &&value)
const Aws::Vector< WorkflowRunStatusReason > & GetStatusReasons() const
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECATALYST_API WorkflowRunSummary()=default
const Aws::Utils::DateTime & GetStartTime() const
AWS_CODECATALYST_API WorkflowRunSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkflowRunSummary & WithWorkflowId(WorkflowIdT &&value)
const Aws::Utils::DateTime & GetEndTime() const
WorkflowRunSummary & WithWorkflowName(WorkflowNameT &&value)
WorkflowRunSummary & WithEndTime(EndTimeT &&value)
AWS_CODECATALYST_API WorkflowRunSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
WorkflowRunSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
WorkflowRunSummary & WithStatusReasons(StatusReasonsT &&value)
WorkflowRunSummary & WithId(IdT &&value)
WorkflowRunSummary & WithStartTime(StartTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue