AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline WorkflowRunSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline WorkflowRunSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline WorkflowRunSummary& WithId(const char* value) { SetId(value); return *this;}
57
59
62 inline const Aws::String& GetWorkflowId() const{ return m_workflowId; }
63 inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; }
64 inline void SetWorkflowId(const Aws::String& value) { m_workflowIdHasBeenSet = true; m_workflowId = value; }
65 inline void SetWorkflowId(Aws::String&& value) { m_workflowIdHasBeenSet = true; m_workflowId = std::move(value); }
66 inline void SetWorkflowId(const char* value) { m_workflowIdHasBeenSet = true; m_workflowId.assign(value); }
67 inline WorkflowRunSummary& WithWorkflowId(const Aws::String& value) { SetWorkflowId(value); return *this;}
68 inline WorkflowRunSummary& WithWorkflowId(Aws::String&& value) { SetWorkflowId(std::move(value)); return *this;}
69 inline WorkflowRunSummary& WithWorkflowId(const char* value) { SetWorkflowId(value); return *this;}
71
73
76 inline const Aws::String& GetWorkflowName() const{ return m_workflowName; }
77 inline bool WorkflowNameHasBeenSet() const { return m_workflowNameHasBeenSet; }
78 inline void SetWorkflowName(const Aws::String& value) { m_workflowNameHasBeenSet = true; m_workflowName = value; }
79 inline void SetWorkflowName(Aws::String&& value) { m_workflowNameHasBeenSet = true; m_workflowName = std::move(value); }
80 inline void SetWorkflowName(const char* value) { m_workflowNameHasBeenSet = true; m_workflowName.assign(value); }
81 inline WorkflowRunSummary& WithWorkflowName(const Aws::String& value) { SetWorkflowName(value); return *this;}
82 inline WorkflowRunSummary& WithWorkflowName(Aws::String&& value) { SetWorkflowName(std::move(value)); return *this;}
83 inline WorkflowRunSummary& WithWorkflowName(const char* value) { SetWorkflowName(value); return *this;}
85
87
90 inline const WorkflowRunStatus& GetStatus() const{ return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 inline void SetStatus(const WorkflowRunStatus& value) { m_statusHasBeenSet = true; m_status = value; }
93 inline void SetStatus(WorkflowRunStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
94 inline WorkflowRunSummary& WithStatus(const WorkflowRunStatus& value) { SetStatus(value); return *this;}
95 inline WorkflowRunSummary& WithStatus(WorkflowRunStatus&& value) { SetStatus(std::move(value)); return *this;}
97
99
102 inline const Aws::Vector<WorkflowRunStatusReason>& GetStatusReasons() const{ return m_statusReasons; }
103 inline bool StatusReasonsHasBeenSet() const { return m_statusReasonsHasBeenSet; }
104 inline void SetStatusReasons(const Aws::Vector<WorkflowRunStatusReason>& value) { m_statusReasonsHasBeenSet = true; m_statusReasons = value; }
105 inline void SetStatusReasons(Aws::Vector<WorkflowRunStatusReason>&& value) { m_statusReasonsHasBeenSet = true; m_statusReasons = std::move(value); }
108 inline WorkflowRunSummary& AddStatusReasons(const WorkflowRunStatusReason& value) { m_statusReasonsHasBeenSet = true; m_statusReasons.push_back(value); return *this; }
109 inline WorkflowRunSummary& AddStatusReasons(WorkflowRunStatusReason&& value) { m_statusReasonsHasBeenSet = true; m_statusReasons.push_back(std::move(value)); return *this; }
111
113
118 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
119 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
120 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
121 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
122 inline WorkflowRunSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
123 inline WorkflowRunSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
125
127
132 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
133 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
134 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
135 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
136 inline WorkflowRunSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
137 inline WorkflowRunSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
139
141
146 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
147 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
148 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
149 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
151 inline WorkflowRunSummary& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
153 private:
154
155 Aws::String m_id;
156 bool m_idHasBeenSet = false;
157
158 Aws::String m_workflowId;
159 bool m_workflowIdHasBeenSet = false;
160
161 Aws::String m_workflowName;
162 bool m_workflowNameHasBeenSet = false;
163
164 WorkflowRunStatus m_status;
165 bool m_statusHasBeenSet = false;
166
168 bool m_statusReasonsHasBeenSet = false;
169
170 Aws::Utils::DateTime m_startTime;
171 bool m_startTimeHasBeenSet = false;
172
173 Aws::Utils::DateTime m_endTime;
174 bool m_endTimeHasBeenSet = false;
175
176 Aws::Utils::DateTime m_lastUpdatedTime;
177 bool m_lastUpdatedTimeHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace CodeCatalyst
182} // namespace Aws
WorkflowRunSummary & WithWorkflowName(const char *value)
WorkflowRunSummary & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
WorkflowRunSummary & WithStatusReasons(const Aws::Vector< WorkflowRunStatusReason > &value)
WorkflowRunSummary & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
WorkflowRunSummary & WithWorkflowName(Aws::String &&value)
WorkflowRunSummary & AddStatusReasons(WorkflowRunStatusReason &&value)
WorkflowRunSummary & WithStatus(const WorkflowRunStatus &value)
const Aws::Vector< WorkflowRunStatusReason > & GetStatusReasons() const
void SetEndTime(const Aws::Utils::DateTime &value)
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(const WorkflowRunStatus &value)
WorkflowRunSummary & WithStartTime(const Aws::Utils::DateTime &value)
WorkflowRunSummary & WithStatus(WorkflowRunStatus &&value)
WorkflowRunSummary & WithStatusReasons(Aws::Vector< WorkflowRunStatusReason > &&value)
WorkflowRunSummary & AddStatusReasons(const WorkflowRunStatusReason &value)
WorkflowRunSummary & WithId(const char *value)
void SetWorkflowName(const Aws::String &value)
void SetWorkflowId(const Aws::String &value)
const Aws::Utils::DateTime & GetStartTime() const
AWS_CODECATALYST_API WorkflowRunSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkflowRunSummary & WithEndTime(Aws::Utils::DateTime &&value)
void SetStatusReasons(const Aws::Vector< WorkflowRunStatusReason > &value)
WorkflowRunSummary & WithWorkflowName(const Aws::String &value)
WorkflowRunSummary & WithStartTime(Aws::Utils::DateTime &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndTime() const
WorkflowRunSummary & WithId(const Aws::String &value)
void SetStartTime(Aws::Utils::DateTime &&value)
AWS_CODECATALYST_API WorkflowRunSummary(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
WorkflowRunSummary & WithWorkflowId(Aws::String &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
WorkflowRunSummary & WithId(Aws::String &&value)
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
void SetStatusReasons(Aws::Vector< WorkflowRunStatusReason > &&value)
WorkflowRunSummary & WithWorkflowId(const Aws::String &value)
const WorkflowRunStatus & GetStatus() const
WorkflowRunSummary & WithEndTime(const Aws::Utils::DateTime &value)
void SetStatus(WorkflowRunStatus &&value)
WorkflowRunSummary & WithWorkflowId(const char *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