AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetWorkflowRunResult.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/WorkflowRunStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/codecatalyst/model/WorkflowRunStatusReason.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 GetWorkflowRunResult() = 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 GetWorkflowRunResult& 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 GetWorkflowRunResult& 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 GetWorkflowRunResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
71
73
76 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
77 template<typename WorkflowIdT = Aws::String>
78 void SetWorkflowId(WorkflowIdT&& value) { m_workflowIdHasBeenSet = true; m_workflowId = std::forward<WorkflowIdT>(value); }
79 template<typename WorkflowIdT = Aws::String>
80 GetWorkflowRunResult& WithWorkflowId(WorkflowIdT&& value) { SetWorkflowId(std::forward<WorkflowIdT>(value)); return *this;}
82
84
87 inline WorkflowRunStatus GetStatus() const { return m_status; }
88 inline void SetStatus(WorkflowRunStatus value) { m_statusHasBeenSet = true; m_status = value; }
89 inline GetWorkflowRunResult& WithStatus(WorkflowRunStatus value) { SetStatus(value); return *this;}
91
93
96 inline const Aws::Vector<WorkflowRunStatusReason>& GetStatusReasons() const { return m_statusReasons; }
97 template<typename StatusReasonsT = Aws::Vector<WorkflowRunStatusReason>>
98 void SetStatusReasons(StatusReasonsT&& value) { m_statusReasonsHasBeenSet = true; m_statusReasons = std::forward<StatusReasonsT>(value); }
99 template<typename StatusReasonsT = Aws::Vector<WorkflowRunStatusReason>>
100 GetWorkflowRunResult& WithStatusReasons(StatusReasonsT&& value) { SetStatusReasons(std::forward<StatusReasonsT>(value)); return *this;}
101 template<typename StatusReasonsT = WorkflowRunStatusReason>
102 GetWorkflowRunResult& AddStatusReasons(StatusReasonsT&& value) { m_statusReasonsHasBeenSet = true; m_statusReasons.emplace_back(std::forward<StatusReasonsT>(value)); return *this; }
104
106
111 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
112 template<typename StartTimeT = Aws::Utils::DateTime>
113 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
114 template<typename StartTimeT = Aws::Utils::DateTime>
115 GetWorkflowRunResult& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
117
119
124 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
125 template<typename EndTimeT = Aws::Utils::DateTime>
126 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
127 template<typename EndTimeT = Aws::Utils::DateTime>
128 GetWorkflowRunResult& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
130
132
137 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
138 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
139 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
140 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
141 GetWorkflowRunResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
143
145
146 inline const Aws::String& GetRequestId() const { return m_requestId; }
147 template<typename RequestIdT = Aws::String>
148 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
149 template<typename RequestIdT = Aws::String>
150 GetWorkflowRunResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
152 private:
153
154 Aws::String m_spaceName;
155 bool m_spaceNameHasBeenSet = false;
156
157 Aws::String m_projectName;
158 bool m_projectNameHasBeenSet = false;
159
160 Aws::String m_id;
161 bool m_idHasBeenSet = false;
162
163 Aws::String m_workflowId;
164 bool m_workflowIdHasBeenSet = false;
165
167 bool m_statusHasBeenSet = false;
168
170 bool m_statusReasonsHasBeenSet = false;
171
172 Aws::Utils::DateTime m_startTime{};
173 bool m_startTimeHasBeenSet = false;
174
175 Aws::Utils::DateTime m_endTime{};
176 bool m_endTimeHasBeenSet = false;
177
178 Aws::Utils::DateTime m_lastUpdatedTime{};
179 bool m_lastUpdatedTimeHasBeenSet = false;
180
181 Aws::String m_requestId;
182 bool m_requestIdHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace CodeCatalyst
187} // 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