AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.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 GetWorkflowResult() = 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 GetWorkflowResult& 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 GetWorkflowResult& 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>
78 GetWorkflowResult& WithId(IdT&& value) {
79 SetId(std::forward<IdT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetName() const { return m_name; }
89 template <typename NameT = Aws::String>
90 void SetName(NameT&& value) {
91 m_nameHasBeenSet = true;
92 m_name = std::forward<NameT>(value);
93 }
94 template <typename NameT = Aws::String>
95 GetWorkflowResult& WithName(NameT&& value) {
96 SetName(std::forward<NameT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetSourceRepositoryName() const { return m_sourceRepositoryName; }
106 template <typename SourceRepositoryNameT = Aws::String>
107 void SetSourceRepositoryName(SourceRepositoryNameT&& value) {
108 m_sourceRepositoryNameHasBeenSet = true;
109 m_sourceRepositoryName = std::forward<SourceRepositoryNameT>(value);
110 }
111 template <typename SourceRepositoryNameT = Aws::String>
112 GetWorkflowResult& WithSourceRepositoryName(SourceRepositoryNameT&& value) {
113 SetSourceRepositoryName(std::forward<SourceRepositoryNameT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetSourceBranchName() const { return m_sourceBranchName; }
123 template <typename SourceBranchNameT = Aws::String>
124 void SetSourceBranchName(SourceBranchNameT&& value) {
125 m_sourceBranchNameHasBeenSet = true;
126 m_sourceBranchName = std::forward<SourceBranchNameT>(value);
127 }
128 template <typename SourceBranchNameT = Aws::String>
129 GetWorkflowResult& WithSourceBranchName(SourceBranchNameT&& value) {
130 SetSourceBranchName(std::forward<SourceBranchNameT>(value));
131 return *this;
132 }
134
136
139 inline const WorkflowDefinition& GetDefinition() const { return m_definition; }
140 template <typename DefinitionT = WorkflowDefinition>
141 void SetDefinition(DefinitionT&& value) {
142 m_definitionHasBeenSet = true;
143 m_definition = std::forward<DefinitionT>(value);
144 }
145 template <typename DefinitionT = WorkflowDefinition>
146 GetWorkflowResult& WithDefinition(DefinitionT&& value) {
147 SetDefinition(std::forward<DefinitionT>(value));
148 return *this;
149 }
151
153
158 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
159 template <typename CreatedTimeT = Aws::Utils::DateTime>
160 void SetCreatedTime(CreatedTimeT&& value) {
161 m_createdTimeHasBeenSet = true;
162 m_createdTime = std::forward<CreatedTimeT>(value);
163 }
164 template <typename CreatedTimeT = Aws::Utils::DateTime>
165 GetWorkflowResult& WithCreatedTime(CreatedTimeT&& value) {
166 SetCreatedTime(std::forward<CreatedTimeT>(value));
167 return *this;
168 }
170
172
177 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
178 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
179 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
180 m_lastUpdatedTimeHasBeenSet = true;
181 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
182 }
183 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
184 GetWorkflowResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
185 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
186 return *this;
187 }
189
191
197 inline WorkflowRunMode GetRunMode() const { return m_runMode; }
198 inline void SetRunMode(WorkflowRunMode value) {
199 m_runModeHasBeenSet = true;
200 m_runMode = value;
201 }
203 SetRunMode(value);
204 return *this;
205 }
207
209
212 inline WorkflowStatus GetStatus() const { return m_status; }
213 inline void SetStatus(WorkflowStatus value) {
214 m_statusHasBeenSet = true;
215 m_status = value;
216 }
218 SetStatus(value);
219 return *this;
220 }
222
224
225 inline const Aws::String& GetRequestId() const { return m_requestId; }
226 template <typename RequestIdT = Aws::String>
227 void SetRequestId(RequestIdT&& value) {
228 m_requestIdHasBeenSet = true;
229 m_requestId = std::forward<RequestIdT>(value);
230 }
231 template <typename RequestIdT = Aws::String>
232 GetWorkflowResult& WithRequestId(RequestIdT&& value) {
233 SetRequestId(std::forward<RequestIdT>(value));
234 return *this;
235 }
237 private:
238 Aws::String m_spaceName;
239
240 Aws::String m_projectName;
241
242 Aws::String m_id;
243
244 Aws::String m_name;
245
246 Aws::String m_sourceRepositoryName;
247
248 Aws::String m_sourceBranchName;
249
250 WorkflowDefinition m_definition;
251
252 Aws::Utils::DateTime m_createdTime{};
253
254 Aws::Utils::DateTime m_lastUpdatedTime{};
255
257
259
260 Aws::String m_requestId;
261 bool m_spaceNameHasBeenSet = false;
262 bool m_projectNameHasBeenSet = false;
263 bool m_idHasBeenSet = false;
264 bool m_nameHasBeenSet = false;
265 bool m_sourceRepositoryNameHasBeenSet = false;
266 bool m_sourceBranchNameHasBeenSet = false;
267 bool m_definitionHasBeenSet = false;
268 bool m_createdTimeHasBeenSet = false;
269 bool m_lastUpdatedTimeHasBeenSet = false;
270 bool m_runModeHasBeenSet = false;
271 bool m_statusHasBeenSet = false;
272 bool m_requestIdHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace CodeCatalyst
277} // 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)
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