AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetWorkflowResult.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/codecatalyst/model/WorkflowDefinition.h>
9#include <aws/codecatalyst/model/WorkflowRunMode.h>
10#include <aws/codecatalyst/model/WorkflowStatus.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.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 GetWorkflowResult() = 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 GetWorkflowResult& 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 GetWorkflowResult& 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>
79 GetWorkflowResult& WithId(IdT&& value) {
80 SetId(std::forward<IdT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetName() const { return m_name; }
90 template <typename NameT = Aws::String>
91 void SetName(NameT&& value) {
92 m_nameHasBeenSet = true;
93 m_name = std::forward<NameT>(value);
94 }
95 template <typename NameT = Aws::String>
96 GetWorkflowResult& WithName(NameT&& value) {
97 SetName(std::forward<NameT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetSourceRepositoryName() const { return m_sourceRepositoryName; }
107 template <typename SourceRepositoryNameT = Aws::String>
108 void SetSourceRepositoryName(SourceRepositoryNameT&& value) {
109 m_sourceRepositoryNameHasBeenSet = true;
110 m_sourceRepositoryName = std::forward<SourceRepositoryNameT>(value);
111 }
112 template <typename SourceRepositoryNameT = Aws::String>
113 GetWorkflowResult& WithSourceRepositoryName(SourceRepositoryNameT&& value) {
114 SetSourceRepositoryName(std::forward<SourceRepositoryNameT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetSourceBranchName() const { return m_sourceBranchName; }
124 template <typename SourceBranchNameT = Aws::String>
125 void SetSourceBranchName(SourceBranchNameT&& value) {
126 m_sourceBranchNameHasBeenSet = true;
127 m_sourceBranchName = std::forward<SourceBranchNameT>(value);
128 }
129 template <typename SourceBranchNameT = Aws::String>
130 GetWorkflowResult& WithSourceBranchName(SourceBranchNameT&& value) {
131 SetSourceBranchName(std::forward<SourceBranchNameT>(value));
132 return *this;
133 }
135
137
140 inline const WorkflowDefinition& GetDefinition() const { return m_definition; }
141 template <typename DefinitionT = WorkflowDefinition>
142 void SetDefinition(DefinitionT&& value) {
143 m_definitionHasBeenSet = true;
144 m_definition = std::forward<DefinitionT>(value);
145 }
146 template <typename DefinitionT = WorkflowDefinition>
147 GetWorkflowResult& WithDefinition(DefinitionT&& value) {
148 SetDefinition(std::forward<DefinitionT>(value));
149 return *this;
150 }
152
154
159 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
160 template <typename CreatedTimeT = Aws::Utils::DateTime>
161 void SetCreatedTime(CreatedTimeT&& value) {
162 m_createdTimeHasBeenSet = true;
163 m_createdTime = std::forward<CreatedTimeT>(value);
164 }
165 template <typename CreatedTimeT = Aws::Utils::DateTime>
166 GetWorkflowResult& WithCreatedTime(CreatedTimeT&& value) {
167 SetCreatedTime(std::forward<CreatedTimeT>(value));
168 return *this;
169 }
171
173
178 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
179 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
180 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
181 m_lastUpdatedTimeHasBeenSet = true;
182 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
183 }
184 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
185 GetWorkflowResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
186 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
187 return *this;
188 }
190
192
198 inline WorkflowRunMode GetRunMode() const { return m_runMode; }
199 inline void SetRunMode(WorkflowRunMode value) {
200 m_runModeHasBeenSet = true;
201 m_runMode = value;
202 }
204 SetRunMode(value);
205 return *this;
206 }
208
210
213 inline WorkflowStatus GetStatus() const { return m_status; }
214 inline void SetStatus(WorkflowStatus value) {
215 m_statusHasBeenSet = true;
216 m_status = value;
217 }
219 SetStatus(value);
220 return *this;
221 }
223
225
226 inline const Aws::String& GetRequestId() const { return m_requestId; }
227 template <typename RequestIdT = Aws::String>
228 void SetRequestId(RequestIdT&& value) {
229 m_requestIdHasBeenSet = true;
230 m_requestId = std::forward<RequestIdT>(value);
231 }
232 template <typename RequestIdT = Aws::String>
233 GetWorkflowResult& WithRequestId(RequestIdT&& value) {
234 SetRequestId(std::forward<RequestIdT>(value));
235 return *this;
236 }
238 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
239
240 private:
241 Aws::String m_spaceName;
242
243 Aws::String m_projectName;
244
245 Aws::String m_id;
246
247 Aws::String m_name;
248
249 Aws::String m_sourceRepositoryName;
250
251 Aws::String m_sourceBranchName;
252
253 WorkflowDefinition m_definition;
254
255 Aws::Utils::DateTime m_createdTime{};
256
257 Aws::Utils::DateTime m_lastUpdatedTime{};
258
260
262
263 Aws::String m_requestId;
264 Aws::Http::HttpResponseCode m_HttpResponseCode;
265 bool m_spaceNameHasBeenSet = false;
266 bool m_projectNameHasBeenSet = false;
267 bool m_idHasBeenSet = false;
268 bool m_nameHasBeenSet = false;
269 bool m_sourceRepositoryNameHasBeenSet = false;
270 bool m_sourceBranchNameHasBeenSet = false;
271 bool m_definitionHasBeenSet = false;
272 bool m_createdTimeHasBeenSet = false;
273 bool m_lastUpdatedTimeHasBeenSet = false;
274 bool m_runModeHasBeenSet = false;
275 bool m_statusHasBeenSet = false;
276 bool m_requestIdHasBeenSet = false;
277};
278
279} // namespace Model
280} // namespace CodeCatalyst
281} // namespace Aws
GetWorkflowResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
GetWorkflowResult & WithCreatedTime(CreatedTimeT &&value)
AWS_CODECATALYST_API GetWorkflowResult()=default
GetWorkflowResult & WithRunMode(WorkflowRunMode value)
GetWorkflowResult & WithSpaceName(SpaceNameT &&value)
AWS_CODECATALYST_API GetWorkflowResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetWorkflowResult & WithProjectName(ProjectNameT &&value)
GetWorkflowResult & WithStatus(WorkflowStatus value)
void SetSourceBranchName(SourceBranchNameT &&value)
const Aws::String & GetSourceBranchName() const
GetWorkflowResult & WithName(NameT &&value)
AWS_CODECATALYST_API GetWorkflowResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetWorkflowResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetSourceRepositoryName() const
GetWorkflowResult & WithId(IdT &&value)
GetWorkflowResult & WithDefinition(DefinitionT &&value)
const WorkflowDefinition & GetDefinition() const
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
GetWorkflowResult & WithSourceBranchName(SourceBranchNameT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetLastUpdatedTime() const
GetWorkflowResult & WithSourceRepositoryName(SourceRepositoryNameT &&value)
void SetSourceRepositoryName(SourceRepositoryNameT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue