AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
GetStepResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/deadline/Deadline_EXPORTS.h>
12#include <aws/deadline/model/DependencyCounts.h>
13#include <aws/deadline/model/ParameterSpace.h>
14#include <aws/deadline/model/StepLifecycleStatus.h>
15#include <aws/deadline/model/StepRequiredCapabilities.h>
16#include <aws/deadline/model/StepTargetTaskRunStatus.h>
17#include <aws/deadline/model/TaskRunStatus.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace deadline {
31namespace Model {
33 public:
34 AWS_DEADLINE_API GetStepResult() = default;
37
39
42 inline const Aws::String& GetStepId() const { return m_stepId; }
43 template <typename StepIdT = Aws::String>
44 void SetStepId(StepIdT&& value) {
45 m_stepIdHasBeenSet = true;
46 m_stepId = std::forward<StepIdT>(value);
47 }
48 template <typename StepIdT = Aws::String>
49 GetStepResult& WithStepId(StepIdT&& value) {
50 SetStepId(std::forward<StepIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 GetStepResult& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline StepLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
78 m_lifecycleStatusHasBeenSet = true;
79 m_lifecycleStatus = value;
80 }
82 SetLifecycleStatus(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetLifecycleStatusMessage() const { return m_lifecycleStatusMessage; }
92 template <typename LifecycleStatusMessageT = Aws::String>
93 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
94 m_lifecycleStatusMessageHasBeenSet = true;
95 m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value);
96 }
97 template <typename LifecycleStatusMessageT = Aws::String>
98 GetStepResult& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
99 SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value));
100 return *this;
101 }
103
105
108 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
109 inline void SetTaskRunStatus(TaskRunStatus value) {
110 m_taskRunStatusHasBeenSet = true;
111 m_taskRunStatus = value;
112 }
114 SetTaskRunStatus(value);
115 return *this;
116 }
118
120
123 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
124 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
125 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
126 m_taskRunStatusCountsHasBeenSet = true;
127 m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value);
128 }
129 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
130 GetStepResult& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
131 SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value));
132 return *this;
133 }
135 m_taskRunStatusCountsHasBeenSet = true;
136 m_taskRunStatusCounts.emplace(key, value);
137 return *this;
138 }
140
142
145 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
146 inline void SetTaskFailureRetryCount(int value) {
147 m_taskFailureRetryCountHasBeenSet = true;
148 m_taskFailureRetryCount = value;
149 }
152 return *this;
153 }
155
157
160 inline StepTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
162 m_targetTaskRunStatusHasBeenSet = true;
163 m_targetTaskRunStatus = value;
164 }
167 return *this;
168 }
170
172
175 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
176 template <typename CreatedAtT = Aws::Utils::DateTime>
177 void SetCreatedAt(CreatedAtT&& value) {
178 m_createdAtHasBeenSet = true;
179 m_createdAt = std::forward<CreatedAtT>(value);
180 }
181 template <typename CreatedAtT = Aws::Utils::DateTime>
182 GetStepResult& WithCreatedAt(CreatedAtT&& value) {
183 SetCreatedAt(std::forward<CreatedAtT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
193 template <typename CreatedByT = Aws::String>
194 void SetCreatedBy(CreatedByT&& value) {
195 m_createdByHasBeenSet = true;
196 m_createdBy = std::forward<CreatedByT>(value);
197 }
198 template <typename CreatedByT = Aws::String>
199 GetStepResult& WithCreatedBy(CreatedByT&& value) {
200 SetCreatedBy(std::forward<CreatedByT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
210 template <typename UpdatedAtT = Aws::Utils::DateTime>
211 void SetUpdatedAt(UpdatedAtT&& value) {
212 m_updatedAtHasBeenSet = true;
213 m_updatedAt = std::forward<UpdatedAtT>(value);
214 }
215 template <typename UpdatedAtT = Aws::Utils::DateTime>
216 GetStepResult& WithUpdatedAt(UpdatedAtT&& value) {
217 SetUpdatedAt(std::forward<UpdatedAtT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
227 template <typename UpdatedByT = Aws::String>
228 void SetUpdatedBy(UpdatedByT&& value) {
229 m_updatedByHasBeenSet = true;
230 m_updatedBy = std::forward<UpdatedByT>(value);
231 }
232 template <typename UpdatedByT = Aws::String>
233 GetStepResult& WithUpdatedBy(UpdatedByT&& value) {
234 SetUpdatedBy(std::forward<UpdatedByT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
244 template <typename StartedAtT = Aws::Utils::DateTime>
245 void SetStartedAt(StartedAtT&& value) {
246 m_startedAtHasBeenSet = true;
247 m_startedAt = std::forward<StartedAtT>(value);
248 }
249 template <typename StartedAtT = Aws::Utils::DateTime>
250 GetStepResult& WithStartedAt(StartedAtT&& value) {
251 SetStartedAt(std::forward<StartedAtT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
261 template <typename EndedAtT = Aws::Utils::DateTime>
262 void SetEndedAt(EndedAtT&& value) {
263 m_endedAtHasBeenSet = true;
264 m_endedAt = std::forward<EndedAtT>(value);
265 }
266 template <typename EndedAtT = Aws::Utils::DateTime>
267 GetStepResult& WithEndedAt(EndedAtT&& value) {
268 SetEndedAt(std::forward<EndedAtT>(value));
269 return *this;
270 }
272
274
277 inline const DependencyCounts& GetDependencyCounts() const { return m_dependencyCounts; }
278 template <typename DependencyCountsT = DependencyCounts>
279 void SetDependencyCounts(DependencyCountsT&& value) {
280 m_dependencyCountsHasBeenSet = true;
281 m_dependencyCounts = std::forward<DependencyCountsT>(value);
282 }
283 template <typename DependencyCountsT = DependencyCounts>
284 GetStepResult& WithDependencyCounts(DependencyCountsT&& value) {
285 SetDependencyCounts(std::forward<DependencyCountsT>(value));
286 return *this;
287 }
289
291
294 inline const StepRequiredCapabilities& GetRequiredCapabilities() const { return m_requiredCapabilities; }
295 template <typename RequiredCapabilitiesT = StepRequiredCapabilities>
296 void SetRequiredCapabilities(RequiredCapabilitiesT&& value) {
297 m_requiredCapabilitiesHasBeenSet = true;
298 m_requiredCapabilities = std::forward<RequiredCapabilitiesT>(value);
299 }
300 template <typename RequiredCapabilitiesT = StepRequiredCapabilities>
301 GetStepResult& WithRequiredCapabilities(RequiredCapabilitiesT&& value) {
302 SetRequiredCapabilities(std::forward<RequiredCapabilitiesT>(value));
303 return *this;
304 }
306
308
311 inline const ParameterSpace& GetParameterSpace() const { return m_parameterSpace; }
312 template <typename ParameterSpaceT = ParameterSpace>
313 void SetParameterSpace(ParameterSpaceT&& value) {
314 m_parameterSpaceHasBeenSet = true;
315 m_parameterSpace = std::forward<ParameterSpaceT>(value);
316 }
317 template <typename ParameterSpaceT = ParameterSpace>
318 GetStepResult& WithParameterSpace(ParameterSpaceT&& value) {
319 SetParameterSpace(std::forward<ParameterSpaceT>(value));
320 return *this;
321 }
323
325
330 inline const Aws::String& GetDescription() const { return m_description; }
331 template <typename DescriptionT = Aws::String>
332 void SetDescription(DescriptionT&& value) {
333 m_descriptionHasBeenSet = true;
334 m_description = std::forward<DescriptionT>(value);
335 }
336 template <typename DescriptionT = Aws::String>
337 GetStepResult& WithDescription(DescriptionT&& value) {
338 SetDescription(std::forward<DescriptionT>(value));
339 return *this;
340 }
342
344
345 inline const Aws::String& GetRequestId() const { return m_requestId; }
346 template <typename RequestIdT = Aws::String>
347 void SetRequestId(RequestIdT&& value) {
348 m_requestIdHasBeenSet = true;
349 m_requestId = std::forward<RequestIdT>(value);
350 }
351 template <typename RequestIdT = Aws::String>
352 GetStepResult& WithRequestId(RequestIdT&& value) {
353 SetRequestId(std::forward<RequestIdT>(value));
354 return *this;
355 }
357 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
358
359 private:
360 Aws::String m_stepId;
361
362 Aws::String m_name;
363
365
366 Aws::String m_lifecycleStatusMessage;
367
368 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
369
370 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
371
372 int m_taskFailureRetryCount{0};
373
375
376 Aws::Utils::DateTime m_createdAt{};
377
378 Aws::String m_createdBy;
379
380 Aws::Utils::DateTime m_updatedAt{};
381
382 Aws::String m_updatedBy;
383
384 Aws::Utils::DateTime m_startedAt{};
385
386 Aws::Utils::DateTime m_endedAt{};
387
388 DependencyCounts m_dependencyCounts;
389
390 StepRequiredCapabilities m_requiredCapabilities;
391
392 ParameterSpace m_parameterSpace;
393
394 Aws::String m_description;
395
396 Aws::String m_requestId;
397 Aws::Http::HttpResponseCode m_HttpResponseCode;
398 bool m_stepIdHasBeenSet = false;
399 bool m_nameHasBeenSet = false;
400 bool m_lifecycleStatusHasBeenSet = false;
401 bool m_lifecycleStatusMessageHasBeenSet = false;
402 bool m_taskRunStatusHasBeenSet = false;
403 bool m_taskRunStatusCountsHasBeenSet = false;
404 bool m_taskFailureRetryCountHasBeenSet = false;
405 bool m_targetTaskRunStatusHasBeenSet = false;
406 bool m_createdAtHasBeenSet = false;
407 bool m_createdByHasBeenSet = false;
408 bool m_updatedAtHasBeenSet = false;
409 bool m_updatedByHasBeenSet = false;
410 bool m_startedAtHasBeenSet = false;
411 bool m_endedAtHasBeenSet = false;
412 bool m_dependencyCountsHasBeenSet = false;
413 bool m_requiredCapabilitiesHasBeenSet = false;
414 bool m_parameterSpaceHasBeenSet = false;
415 bool m_descriptionHasBeenSet = false;
416 bool m_requestIdHasBeenSet = false;
417};
418
419} // namespace Model
420} // namespace deadline
421} // namespace Aws
GetStepResult & WithDependencyCounts(DependencyCountsT &&value)
GetStepResult & WithCreatedBy(CreatedByT &&value)
const ParameterSpace & GetParameterSpace() const
GetStepResult & WithLifecycleStatusMessage(LifecycleStatusMessageT &&value)
StepLifecycleStatus GetLifecycleStatus() const
const StepRequiredCapabilities & GetRequiredCapabilities() const
void SetCreatedBy(CreatedByT &&value)
AWS_DEADLINE_API GetStepResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_DEADLINE_API GetStepResult()=default
GetStepResult & WithUpdatedBy(UpdatedByT &&value)
GetStepResult & WithRequiredCapabilities(RequiredCapabilitiesT &&value)
void SetTargetTaskRunStatus(StepTargetTaskRunStatus value)
void SetRequiredCapabilities(RequiredCapabilitiesT &&value)
const DependencyCounts & GetDependencyCounts() const
const Aws::String & GetUpdatedBy() const
const Aws::String & GetDescription() const
StepTargetTaskRunStatus GetTargetTaskRunStatus() const
void SetCreatedAt(CreatedAtT &&value)
GetStepResult & WithDescription(DescriptionT &&value)
GetStepResult & WithTaskRunStatus(TaskRunStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetUpdatedBy(UpdatedByT &&value)
GetStepResult & WithLifecycleStatus(StepLifecycleStatus value)
void SetDependencyCounts(DependencyCountsT &&value)
GetStepResult & WithEndedAt(EndedAtT &&value)
GetStepResult & WithTaskRunStatusCounts(TaskRunStatusCountsT &&value)
GetStepResult & WithStepId(StepIdT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
void SetLifecycleStatus(StepLifecycleStatus value)
void SetTaskRunStatus(TaskRunStatus value)
const Aws::String & GetRequestId() const
TaskRunStatus GetTaskRunStatus() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetLifecycleStatusMessage() const
GetStepResult & WithRequestId(RequestIdT &&value)
void SetLifecycleStatusMessage(LifecycleStatusMessageT &&value)
GetStepResult & WithName(NameT &&value)
void SetParameterSpace(ParameterSpaceT &&value)
GetStepResult & WithStartedAt(StartedAtT &&value)
void SetDescription(DescriptionT &&value)
void SetStartedAt(StartedAtT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
GetStepResult & WithTaskFailureRetryCount(int value)
void SetUpdatedAt(UpdatedAtT &&value)
void SetEndedAt(EndedAtT &&value)
GetStepResult & WithTargetTaskRunStatus(StepTargetTaskRunStatus value)
void SetRequestId(RequestIdT &&value)
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
GetStepResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetCreatedBy() const
const Aws::String & GetStepId() const
AWS_DEADLINE_API GetStepResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetName() const
GetStepResult & WithCreatedAt(CreatedAtT &&value)
GetStepResult & WithParameterSpace(ParameterSpaceT &&value)
GetStepResult & AddTaskRunStatusCounts(TaskRunStatus key, int value)
void SetTaskRunStatusCounts(TaskRunStatusCountsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue