AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
WorkflowRunSummary.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{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeCatalyst
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CODECATALYST_API WorkflowRunSummary() = default;
39 AWS_CODECATALYST_API WorkflowRunSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 WorkflowRunSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
61 inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; }
62 template<typename WorkflowIdT = Aws::String>
63 void SetWorkflowId(WorkflowIdT&& value) { m_workflowIdHasBeenSet = true; m_workflowId = std::forward<WorkflowIdT>(value); }
64 template<typename WorkflowIdT = Aws::String>
65 WorkflowRunSummary& WithWorkflowId(WorkflowIdT&& value) { SetWorkflowId(std::forward<WorkflowIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetWorkflowName() const { return m_workflowName; }
73 inline bool WorkflowNameHasBeenSet() const { return m_workflowNameHasBeenSet; }
74 template<typename WorkflowNameT = Aws::String>
75 void SetWorkflowName(WorkflowNameT&& value) { m_workflowNameHasBeenSet = true; m_workflowName = std::forward<WorkflowNameT>(value); }
76 template<typename WorkflowNameT = Aws::String>
77 WorkflowRunSummary& WithWorkflowName(WorkflowNameT&& value) { SetWorkflowName(std::forward<WorkflowNameT>(value)); return *this;}
79
81
84 inline WorkflowRunStatus GetStatus() const { return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(WorkflowRunStatus value) { m_statusHasBeenSet = true; m_status = value; }
87 inline WorkflowRunSummary& WithStatus(WorkflowRunStatus value) { SetStatus(value); return *this;}
89
91
94 inline const Aws::Vector<WorkflowRunStatusReason>& GetStatusReasons() const { return m_statusReasons; }
95 inline bool StatusReasonsHasBeenSet() const { return m_statusReasonsHasBeenSet; }
96 template<typename StatusReasonsT = Aws::Vector<WorkflowRunStatusReason>>
97 void SetStatusReasons(StatusReasonsT&& value) { m_statusReasonsHasBeenSet = true; m_statusReasons = std::forward<StatusReasonsT>(value); }
98 template<typename StatusReasonsT = Aws::Vector<WorkflowRunStatusReason>>
99 WorkflowRunSummary& WithStatusReasons(StatusReasonsT&& value) { SetStatusReasons(std::forward<StatusReasonsT>(value)); return *this;}
100 template<typename StatusReasonsT = WorkflowRunStatusReason>
101 WorkflowRunSummary& AddStatusReasons(StatusReasonsT&& value) { m_statusReasonsHasBeenSet = true; m_statusReasons.emplace_back(std::forward<StatusReasonsT>(value)); return *this; }
103
105
110 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
111 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
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 WorkflowRunSummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
117
119
124 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
125 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
126 template<typename EndTimeT = Aws::Utils::DateTime>
127 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
128 template<typename EndTimeT = Aws::Utils::DateTime>
129 WorkflowRunSummary& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
131
133
138 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
139 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
140 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
141 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
142 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
143 WorkflowRunSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
145 private:
146
147 Aws::String m_id;
148 bool m_idHasBeenSet = false;
149
150 Aws::String m_workflowId;
151 bool m_workflowIdHasBeenSet = false;
152
153 Aws::String m_workflowName;
154 bool m_workflowNameHasBeenSet = false;
155
157 bool m_statusHasBeenSet = false;
158
160 bool m_statusReasonsHasBeenSet = false;
161
162 Aws::Utils::DateTime m_startTime{};
163 bool m_startTimeHasBeenSet = false;
164
165 Aws::Utils::DateTime m_endTime{};
166 bool m_endTimeHasBeenSet = false;
167
168 Aws::Utils::DateTime m_lastUpdatedTime{};
169 bool m_lastUpdatedTimeHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace CodeCatalyst
174} // namespace Aws
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
WorkflowRunSummary & WithStatus(WorkflowRunStatus value)
WorkflowRunSummary & AddStatusReasons(StatusReasonsT &&value)
const Aws::Vector< WorkflowRunStatusReason > & GetStatusReasons() const
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECATALYST_API WorkflowRunSummary()=default
const Aws::Utils::DateTime & GetStartTime() const
AWS_CODECATALYST_API WorkflowRunSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkflowRunSummary & WithWorkflowId(WorkflowIdT &&value)
const Aws::Utils::DateTime & GetEndTime() const
WorkflowRunSummary & WithWorkflowName(WorkflowNameT &&value)
WorkflowRunSummary & WithEndTime(EndTimeT &&value)
AWS_CODECATALYST_API WorkflowRunSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
WorkflowRunSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
WorkflowRunSummary & WithStatusReasons(StatusReasonsT &&value)
WorkflowRunSummary & WithId(IdT &&value)
WorkflowRunSummary & WithStartTime(StartTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue