AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetWorkflowRunResult.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 {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CodeCatalyst {
26namespace Model {
28 public:
29 AWS_CODECATALYST_API GetWorkflowRunResult() = default;
32
34
37 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
38 template <typename SpaceNameT = Aws::String>
39 void SetSpaceName(SpaceNameT&& value) {
40 m_spaceNameHasBeenSet = true;
41 m_spaceName = std::forward<SpaceNameT>(value);
42 }
43 template <typename SpaceNameT = Aws::String>
44 GetWorkflowRunResult& WithSpaceName(SpaceNameT&& value) {
45 SetSpaceName(std::forward<SpaceNameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetProjectName() const { return m_projectName; }
55 template <typename ProjectNameT = Aws::String>
56 void SetProjectName(ProjectNameT&& value) {
57 m_projectNameHasBeenSet = true;
58 m_projectName = std::forward<ProjectNameT>(value);
59 }
60 template <typename ProjectNameT = Aws::String>
61 GetWorkflowRunResult& WithProjectName(ProjectNameT&& value) {
62 SetProjectName(std::forward<ProjectNameT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetId() const { return m_id; }
72 template <typename IdT = Aws::String>
73 void SetId(IdT&& value) {
74 m_idHasBeenSet = true;
75 m_id = std::forward<IdT>(value);
76 }
77 template <typename IdT = Aws::String>
79 SetId(std::forward<IdT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
89 template <typename WorkflowIdT = Aws::String>
90 void SetWorkflowId(WorkflowIdT&& value) {
91 m_workflowIdHasBeenSet = true;
92 m_workflowId = std::forward<WorkflowIdT>(value);
93 }
94 template <typename WorkflowIdT = Aws::String>
95 GetWorkflowRunResult& WithWorkflowId(WorkflowIdT&& value) {
96 SetWorkflowId(std::forward<WorkflowIdT>(value));
97 return *this;
98 }
100
102
105 inline WorkflowRunStatus GetStatus() const { return m_status; }
106 inline void SetStatus(WorkflowRunStatus value) {
107 m_statusHasBeenSet = true;
108 m_status = value;
109 }
111 SetStatus(value);
112 return *this;
113 }
115
117
120 inline const Aws::Vector<WorkflowRunStatusReason>& GetStatusReasons() const { return m_statusReasons; }
121 template <typename StatusReasonsT = Aws::Vector<WorkflowRunStatusReason>>
122 void SetStatusReasons(StatusReasonsT&& value) {
123 m_statusReasonsHasBeenSet = true;
124 m_statusReasons = std::forward<StatusReasonsT>(value);
125 }
126 template <typename StatusReasonsT = Aws::Vector<WorkflowRunStatusReason>>
127 GetWorkflowRunResult& WithStatusReasons(StatusReasonsT&& value) {
128 SetStatusReasons(std::forward<StatusReasonsT>(value));
129 return *this;
130 }
131 template <typename StatusReasonsT = WorkflowRunStatusReason>
132 GetWorkflowRunResult& AddStatusReasons(StatusReasonsT&& value) {
133 m_statusReasonsHasBeenSet = true;
134 m_statusReasons.emplace_back(std::forward<StatusReasonsT>(value));
135 return *this;
136 }
138
140
145 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
146 template <typename StartTimeT = Aws::Utils::DateTime>
147 void SetStartTime(StartTimeT&& value) {
148 m_startTimeHasBeenSet = true;
149 m_startTime = std::forward<StartTimeT>(value);
150 }
151 template <typename StartTimeT = Aws::Utils::DateTime>
152 GetWorkflowRunResult& WithStartTime(StartTimeT&& value) {
153 SetStartTime(std::forward<StartTimeT>(value));
154 return *this;
155 }
157
159
164 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
165 template <typename EndTimeT = Aws::Utils::DateTime>
166 void SetEndTime(EndTimeT&& value) {
167 m_endTimeHasBeenSet = true;
168 m_endTime = std::forward<EndTimeT>(value);
169 }
170 template <typename EndTimeT = Aws::Utils::DateTime>
172 SetEndTime(std::forward<EndTimeT>(value));
173 return *this;
174 }
176
178
183 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
184 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
185 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
186 m_lastUpdatedTimeHasBeenSet = true;
187 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
188 }
189 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
190 GetWorkflowRunResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
191 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
192 return *this;
193 }
195
197
198 inline const Aws::String& GetRequestId() const { return m_requestId; }
199 template <typename RequestIdT = Aws::String>
200 void SetRequestId(RequestIdT&& value) {
201 m_requestIdHasBeenSet = true;
202 m_requestId = std::forward<RequestIdT>(value);
203 }
204 template <typename RequestIdT = Aws::String>
205 GetWorkflowRunResult& WithRequestId(RequestIdT&& value) {
206 SetRequestId(std::forward<RequestIdT>(value));
207 return *this;
208 }
210 private:
211 Aws::String m_spaceName;
212
213 Aws::String m_projectName;
214
215 Aws::String m_id;
216
217 Aws::String m_workflowId;
218
220
222
223 Aws::Utils::DateTime m_startTime{};
224
225 Aws::Utils::DateTime m_endTime{};
226
227 Aws::Utils::DateTime m_lastUpdatedTime{};
228
229 Aws::String m_requestId;
230 bool m_spaceNameHasBeenSet = false;
231 bool m_projectNameHasBeenSet = false;
232 bool m_idHasBeenSet = false;
233 bool m_workflowIdHasBeenSet = false;
234 bool m_statusHasBeenSet = false;
235 bool m_statusReasonsHasBeenSet = false;
236 bool m_startTimeHasBeenSet = false;
237 bool m_endTimeHasBeenSet = false;
238 bool m_lastUpdatedTimeHasBeenSet = false;
239 bool m_requestIdHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace CodeCatalyst
244} // namespace Aws
AWS_CODECATALYST_API GetWorkflowRunResult()=default
const Aws::Utils::DateTime & GetLastUpdatedTime() const
GetWorkflowRunResult & WithId(IdT &&value)
GetWorkflowRunResult & WithRequestId(RequestIdT &&value)
GetWorkflowRunResult & WithProjectName(ProjectNameT &&value)
GetWorkflowRunResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
GetWorkflowRunResult & WithStatusReasons(StatusReasonsT &&value)
GetWorkflowRunResult & WithStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
GetWorkflowRunResult & AddStatusReasons(StatusReasonsT &&value)
GetWorkflowRunResult & WithWorkflowId(WorkflowIdT &&value)
const Aws::Utils::DateTime & GetStartTime() const
GetWorkflowRunResult & WithStatus(WorkflowRunStatus value)
AWS_CODECATALYST_API GetWorkflowRunResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetWorkflowRunResult & WithEndTime(EndTimeT &&value)
AWS_CODECATALYST_API GetWorkflowRunResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetWorkflowRunResult & WithSpaceName(SpaceNameT &&value)
const Aws::Vector< WorkflowRunStatusReason > & GetStatusReasons() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue