AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
WorkflowSummary.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/codecatalyst/model/WorkflowDefinitionSummary.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 {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeCatalyst {
24namespace Model {
25
32 public:
33 AWS_CODECATALYST_API WorkflowSummary() = default;
34 AWS_CODECATALYST_API WorkflowSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODECATALYST_API WorkflowSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 WorkflowSummary& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 WorkflowSummary& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetSourceRepositoryName() const { return m_sourceRepositoryName; }
80 inline bool SourceRepositoryNameHasBeenSet() const { return m_sourceRepositoryNameHasBeenSet; }
81 template <typename SourceRepositoryNameT = Aws::String>
82 void SetSourceRepositoryName(SourceRepositoryNameT&& value) {
83 m_sourceRepositoryNameHasBeenSet = true;
84 m_sourceRepositoryName = std::forward<SourceRepositoryNameT>(value);
85 }
86 template <typename SourceRepositoryNameT = Aws::String>
87 WorkflowSummary& WithSourceRepositoryName(SourceRepositoryNameT&& value) {
88 SetSourceRepositoryName(std::forward<SourceRepositoryNameT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetSourceBranchName() const { return m_sourceBranchName; }
99 inline bool SourceBranchNameHasBeenSet() const { return m_sourceBranchNameHasBeenSet; }
100 template <typename SourceBranchNameT = Aws::String>
101 void SetSourceBranchName(SourceBranchNameT&& value) {
102 m_sourceBranchNameHasBeenSet = true;
103 m_sourceBranchName = std::forward<SourceBranchNameT>(value);
104 }
105 template <typename SourceBranchNameT = Aws::String>
106 WorkflowSummary& WithSourceBranchName(SourceBranchNameT&& value) {
107 SetSourceBranchName(std::forward<SourceBranchNameT>(value));
108 return *this;
109 }
111
113
116 inline const WorkflowDefinitionSummary& GetDefinition() const { return m_definition; }
117 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
118 template <typename DefinitionT = WorkflowDefinitionSummary>
119 void SetDefinition(DefinitionT&& value) {
120 m_definitionHasBeenSet = true;
121 m_definition = std::forward<DefinitionT>(value);
122 }
123 template <typename DefinitionT = WorkflowDefinitionSummary>
124 WorkflowSummary& WithDefinition(DefinitionT&& value) {
125 SetDefinition(std::forward<DefinitionT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
137 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
138 template <typename CreatedTimeT = Aws::Utils::DateTime>
139 void SetCreatedTime(CreatedTimeT&& value) {
140 m_createdTimeHasBeenSet = true;
141 m_createdTime = std::forward<CreatedTimeT>(value);
142 }
143 template <typename CreatedTimeT = Aws::Utils::DateTime>
144 WorkflowSummary& WithCreatedTime(CreatedTimeT&& value) {
145 SetCreatedTime(std::forward<CreatedTimeT>(value));
146 return *this;
147 }
149
151
156 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
157 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
158 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
159 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
160 m_lastUpdatedTimeHasBeenSet = true;
161 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
162 }
163 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
164 WorkflowSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
165 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
166 return *this;
167 }
169
171
174 inline WorkflowRunMode GetRunMode() const { return m_runMode; }
175 inline bool RunModeHasBeenSet() const { return m_runModeHasBeenSet; }
176 inline void SetRunMode(WorkflowRunMode value) {
177 m_runModeHasBeenSet = true;
178 m_runMode = value;
179 }
181 SetRunMode(value);
182 return *this;
183 }
185
187
190 inline WorkflowStatus GetStatus() const { return m_status; }
191 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
192 inline void SetStatus(WorkflowStatus value) {
193 m_statusHasBeenSet = true;
194 m_status = value;
195 }
197 SetStatus(value);
198 return *this;
199 }
201 private:
202 Aws::String m_id;
203
204 Aws::String m_name;
205
206 Aws::String m_sourceRepositoryName;
207
208 Aws::String m_sourceBranchName;
209
210 WorkflowDefinitionSummary m_definition;
211
212 Aws::Utils::DateTime m_createdTime{};
213
214 Aws::Utils::DateTime m_lastUpdatedTime{};
215
217
219 bool m_idHasBeenSet = false;
220 bool m_nameHasBeenSet = false;
221 bool m_sourceRepositoryNameHasBeenSet = false;
222 bool m_sourceBranchNameHasBeenSet = false;
223 bool m_definitionHasBeenSet = false;
224 bool m_createdTimeHasBeenSet = false;
225 bool m_lastUpdatedTimeHasBeenSet = false;
226 bool m_runModeHasBeenSet = false;
227 bool m_statusHasBeenSet = false;
228};
229
230} // namespace Model
231} // namespace CodeCatalyst
232} // namespace Aws
WorkflowSummary & WithDefinition(DefinitionT &&value)
void SetSourceRepositoryName(SourceRepositoryNameT &&value)
const Aws::String & GetSourceBranchName() const
WorkflowSummary & WithRunMode(WorkflowRunMode value)
WorkflowSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
void SetCreatedTime(CreatedTimeT &&value)
const WorkflowDefinitionSummary & GetDefinition() const
WorkflowSummary & WithSourceBranchName(SourceBranchNameT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
WorkflowSummary & WithName(NameT &&value)
const Aws::String & GetSourceRepositoryName() const
void SetSourceBranchName(SourceBranchNameT &&value)
AWS_CODECATALYST_API WorkflowSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTime() const
WorkflowSummary & WithCreatedTime(CreatedTimeT &&value)
WorkflowSummary & WithStatus(WorkflowStatus value)
AWS_CODECATALYST_API WorkflowSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
WorkflowSummary & WithSourceRepositoryName(SourceRepositoryNameT &&value)
AWS_CODECATALYST_API WorkflowSummary()=default
WorkflowSummary & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue