AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetWorkflowResult.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codecatalyst/model/WorkflowDefinition.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/codecatalyst/model/WorkflowRunMode.h>
12#include <aws/codecatalyst/model/WorkflowStatus.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace CodeCatalyst
28{
29namespace Model
30{
32 {
33 public:
34 AWS_CODECATALYST_API GetWorkflowResult() = default;
37
38
40
43 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
44 template<typename SpaceNameT = Aws::String>
45 void SetSpaceName(SpaceNameT&& value) { m_spaceNameHasBeenSet = true; m_spaceName = std::forward<SpaceNameT>(value); }
46 template<typename SpaceNameT = Aws::String>
47 GetWorkflowResult& WithSpaceName(SpaceNameT&& value) { SetSpaceName(std::forward<SpaceNameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetProjectName() const { return m_projectName; }
55 template<typename ProjectNameT = Aws::String>
56 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet = true; m_projectName = std::forward<ProjectNameT>(value); }
57 template<typename ProjectNameT = Aws::String>
58 GetWorkflowResult& WithProjectName(ProjectNameT&& value) { SetProjectName(std::forward<ProjectNameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetId() const { return m_id; }
66 template<typename IdT = Aws::String>
67 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
68 template<typename IdT = Aws::String>
69 GetWorkflowResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 template<typename NameT = Aws::String>
78 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
79 template<typename NameT = Aws::String>
80 GetWorkflowResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
82
84
87 inline const Aws::String& GetSourceRepositoryName() const { return m_sourceRepositoryName; }
88 template<typename SourceRepositoryNameT = Aws::String>
89 void SetSourceRepositoryName(SourceRepositoryNameT&& value) { m_sourceRepositoryNameHasBeenSet = true; m_sourceRepositoryName = std::forward<SourceRepositoryNameT>(value); }
90 template<typename SourceRepositoryNameT = Aws::String>
91 GetWorkflowResult& WithSourceRepositoryName(SourceRepositoryNameT&& value) { SetSourceRepositoryName(std::forward<SourceRepositoryNameT>(value)); return *this;}
93
95
98 inline const Aws::String& GetSourceBranchName() const { return m_sourceBranchName; }
99 template<typename SourceBranchNameT = Aws::String>
100 void SetSourceBranchName(SourceBranchNameT&& value) { m_sourceBranchNameHasBeenSet = true; m_sourceBranchName = std::forward<SourceBranchNameT>(value); }
101 template<typename SourceBranchNameT = Aws::String>
102 GetWorkflowResult& WithSourceBranchName(SourceBranchNameT&& value) { SetSourceBranchName(std::forward<SourceBranchNameT>(value)); return *this;}
104
106
109 inline const WorkflowDefinition& GetDefinition() const { return m_definition; }
110 template<typename DefinitionT = WorkflowDefinition>
111 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
112 template<typename DefinitionT = WorkflowDefinition>
113 GetWorkflowResult& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
115
117
122 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
123 template<typename CreatedTimeT = Aws::Utils::DateTime>
124 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
125 template<typename CreatedTimeT = Aws::Utils::DateTime>
126 GetWorkflowResult& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
128
130
135 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
136 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
137 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
138 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
139 GetWorkflowResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
141
143
149 inline WorkflowRunMode GetRunMode() const { return m_runMode; }
150 inline void SetRunMode(WorkflowRunMode value) { m_runModeHasBeenSet = true; m_runMode = value; }
151 inline GetWorkflowResult& WithRunMode(WorkflowRunMode value) { SetRunMode(value); return *this;}
153
155
158 inline WorkflowStatus GetStatus() const { return m_status; }
159 inline void SetStatus(WorkflowStatus value) { m_statusHasBeenSet = true; m_status = value; }
160 inline GetWorkflowResult& WithStatus(WorkflowStatus value) { SetStatus(value); return *this;}
162
164
165 inline const Aws::String& GetRequestId() const { return m_requestId; }
166 template<typename RequestIdT = Aws::String>
167 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
168 template<typename RequestIdT = Aws::String>
169 GetWorkflowResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
171 private:
172
173 Aws::String m_spaceName;
174 bool m_spaceNameHasBeenSet = false;
175
176 Aws::String m_projectName;
177 bool m_projectNameHasBeenSet = false;
178
179 Aws::String m_id;
180 bool m_idHasBeenSet = false;
181
182 Aws::String m_name;
183 bool m_nameHasBeenSet = false;
184
185 Aws::String m_sourceRepositoryName;
186 bool m_sourceRepositoryNameHasBeenSet = false;
187
188 Aws::String m_sourceBranchName;
189 bool m_sourceBranchNameHasBeenSet = false;
190
191 WorkflowDefinition m_definition;
192 bool m_definitionHasBeenSet = false;
193
194 Aws::Utils::DateTime m_createdTime{};
195 bool m_createdTimeHasBeenSet = false;
196
197 Aws::Utils::DateTime m_lastUpdatedTime{};
198 bool m_lastUpdatedTimeHasBeenSet = false;
199
201 bool m_runModeHasBeenSet = false;
202
204 bool m_statusHasBeenSet = false;
205
206 Aws::String m_requestId;
207 bool m_requestIdHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace CodeCatalyst
212} // 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