AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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/http/HttpResponse.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CodeCatalyst {
27namespace Model {
29 public:
30 AWS_CODECATALYST_API GetWorkflowRunResult() = default;
33
35
38 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
39 template <typename SpaceNameT = Aws::String>
40 void SetSpaceName(SpaceNameT&& value) {
41 m_spaceNameHasBeenSet = true;
42 m_spaceName = std::forward<SpaceNameT>(value);
43 }
44 template <typename SpaceNameT = Aws::String>
45 GetWorkflowRunResult& WithSpaceName(SpaceNameT&& value) {
46 SetSpaceName(std::forward<SpaceNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetProjectName() const { return m_projectName; }
56 template <typename ProjectNameT = Aws::String>
57 void SetProjectName(ProjectNameT&& value) {
58 m_projectNameHasBeenSet = true;
59 m_projectName = std::forward<ProjectNameT>(value);
60 }
61 template <typename ProjectNameT = Aws::String>
62 GetWorkflowRunResult& WithProjectName(ProjectNameT&& value) {
63 SetProjectName(std::forward<ProjectNameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetId() const { return m_id; }
73 template <typename IdT = Aws::String>
74 void SetId(IdT&& value) {
75 m_idHasBeenSet = true;
76 m_id = std::forward<IdT>(value);
77 }
78 template <typename IdT = Aws::String>
80 SetId(std::forward<IdT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
90 template <typename WorkflowIdT = Aws::String>
91 void SetWorkflowId(WorkflowIdT&& value) {
92 m_workflowIdHasBeenSet = true;
93 m_workflowId = std::forward<WorkflowIdT>(value);
94 }
95 template <typename WorkflowIdT = Aws::String>
96 GetWorkflowRunResult& WithWorkflowId(WorkflowIdT&& value) {
97 SetWorkflowId(std::forward<WorkflowIdT>(value));
98 return *this;
99 }
101
103
106 inline WorkflowRunStatus GetStatus() const { return m_status; }
107 inline void SetStatus(WorkflowRunStatus value) {
108 m_statusHasBeenSet = true;
109 m_status = value;
110 }
112 SetStatus(value);
113 return *this;
114 }
116
118
121 inline const Aws::Vector<WorkflowRunStatusReason>& GetStatusReasons() const { return m_statusReasons; }
122 template <typename StatusReasonsT = Aws::Vector<WorkflowRunStatusReason>>
123 void SetStatusReasons(StatusReasonsT&& value) {
124 m_statusReasonsHasBeenSet = true;
125 m_statusReasons = std::forward<StatusReasonsT>(value);
126 }
127 template <typename StatusReasonsT = Aws::Vector<WorkflowRunStatusReason>>
128 GetWorkflowRunResult& WithStatusReasons(StatusReasonsT&& value) {
129 SetStatusReasons(std::forward<StatusReasonsT>(value));
130 return *this;
131 }
132 template <typename StatusReasonsT = WorkflowRunStatusReason>
133 GetWorkflowRunResult& AddStatusReasons(StatusReasonsT&& value) {
134 m_statusReasonsHasBeenSet = true;
135 m_statusReasons.emplace_back(std::forward<StatusReasonsT>(value));
136 return *this;
137 }
139
141
146 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
147 template <typename StartTimeT = Aws::Utils::DateTime>
148 void SetStartTime(StartTimeT&& value) {
149 m_startTimeHasBeenSet = true;
150 m_startTime = std::forward<StartTimeT>(value);
151 }
152 template <typename StartTimeT = Aws::Utils::DateTime>
153 GetWorkflowRunResult& WithStartTime(StartTimeT&& value) {
154 SetStartTime(std::forward<StartTimeT>(value));
155 return *this;
156 }
158
160
165 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
166 template <typename EndTimeT = Aws::Utils::DateTime>
167 void SetEndTime(EndTimeT&& value) {
168 m_endTimeHasBeenSet = true;
169 m_endTime = std::forward<EndTimeT>(value);
170 }
171 template <typename EndTimeT = Aws::Utils::DateTime>
173 SetEndTime(std::forward<EndTimeT>(value));
174 return *this;
175 }
177
179
184 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
185 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
186 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
187 m_lastUpdatedTimeHasBeenSet = true;
188 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
189 }
190 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
191 GetWorkflowRunResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
192 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
193 return *this;
194 }
196
198
199 inline const Aws::String& GetRequestId() const { return m_requestId; }
200 template <typename RequestIdT = Aws::String>
201 void SetRequestId(RequestIdT&& value) {
202 m_requestIdHasBeenSet = true;
203 m_requestId = std::forward<RequestIdT>(value);
204 }
205 template <typename RequestIdT = Aws::String>
206 GetWorkflowRunResult& WithRequestId(RequestIdT&& value) {
207 SetRequestId(std::forward<RequestIdT>(value));
208 return *this;
209 }
211 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
212
213 private:
214 Aws::String m_spaceName;
215
216 Aws::String m_projectName;
217
218 Aws::String m_id;
219
220 Aws::String m_workflowId;
221
223
225
226 Aws::Utils::DateTime m_startTime{};
227
228 Aws::Utils::DateTime m_endTime{};
229
230 Aws::Utils::DateTime m_lastUpdatedTime{};
231
232 Aws::String m_requestId;
233 Aws::Http::HttpResponseCode m_HttpResponseCode;
234 bool m_spaceNameHasBeenSet = false;
235 bool m_projectNameHasBeenSet = false;
236 bool m_idHasBeenSet = false;
237 bool m_workflowIdHasBeenSet = false;
238 bool m_statusHasBeenSet = false;
239 bool m_statusReasonsHasBeenSet = false;
240 bool m_startTimeHasBeenSet = false;
241 bool m_endTimeHasBeenSet = false;
242 bool m_lastUpdatedTimeHasBeenSet = false;
243 bool m_requestIdHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace CodeCatalyst
248} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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