AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
BatchGetStepItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/DependencyCounts.h>
12#include <aws/deadline/model/ParameterSpace.h>
13#include <aws/deadline/model/StepLifecycleStatus.h>
14#include <aws/deadline/model/StepRequiredCapabilities.h>
15#include <aws/deadline/model/StepTargetTaskRunStatus.h>
16#include <aws/deadline/model/TaskRunStatus.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace deadline {
28namespace Model {
29
37 public:
38 AWS_DEADLINE_API BatchGetStepItem() = default;
39 AWS_DEADLINE_API BatchGetStepItem(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetFarmId() const { return m_farmId; }
48 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
49 template <typename FarmIdT = Aws::String>
50 void SetFarmId(FarmIdT&& value) {
51 m_farmIdHasBeenSet = true;
52 m_farmId = std::forward<FarmIdT>(value);
53 }
54 template <typename FarmIdT = Aws::String>
55 BatchGetStepItem& WithFarmId(FarmIdT&& value) {
56 SetFarmId(std::forward<FarmIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetQueueId() const { return m_queueId; }
66 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
67 template <typename QueueIdT = Aws::String>
68 void SetQueueId(QueueIdT&& value) {
69 m_queueIdHasBeenSet = true;
70 m_queueId = std::forward<QueueIdT>(value);
71 }
72 template <typename QueueIdT = Aws::String>
73 BatchGetStepItem& WithQueueId(QueueIdT&& value) {
74 SetQueueId(std::forward<QueueIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetJobId() const { return m_jobId; }
84 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
85 template <typename JobIdT = Aws::String>
86 void SetJobId(JobIdT&& value) {
87 m_jobIdHasBeenSet = true;
88 m_jobId = std::forward<JobIdT>(value);
89 }
90 template <typename JobIdT = Aws::String>
91 BatchGetStepItem& WithJobId(JobIdT&& value) {
92 SetJobId(std::forward<JobIdT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetStepId() const { return m_stepId; }
102 inline bool StepIdHasBeenSet() const { return m_stepIdHasBeenSet; }
103 template <typename StepIdT = Aws::String>
104 void SetStepId(StepIdT&& value) {
105 m_stepIdHasBeenSet = true;
106 m_stepId = std::forward<StepIdT>(value);
107 }
108 template <typename StepIdT = Aws::String>
109 BatchGetStepItem& WithStepId(StepIdT&& value) {
110 SetStepId(std::forward<StepIdT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetName() const { return m_name; }
120 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
121 template <typename NameT = Aws::String>
122 void SetName(NameT&& value) {
123 m_nameHasBeenSet = true;
124 m_name = std::forward<NameT>(value);
125 }
126 template <typename NameT = Aws::String>
127 BatchGetStepItem& WithName(NameT&& value) {
128 SetName(std::forward<NameT>(value));
129 return *this;
130 }
132
134
137 inline StepLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
138 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
140 m_lifecycleStatusHasBeenSet = true;
141 m_lifecycleStatus = value;
142 }
144 SetLifecycleStatus(value);
145 return *this;
146 }
148
150
153 inline const Aws::String& GetLifecycleStatusMessage() const { return m_lifecycleStatusMessage; }
154 inline bool LifecycleStatusMessageHasBeenSet() const { return m_lifecycleStatusMessageHasBeenSet; }
155 template <typename LifecycleStatusMessageT = Aws::String>
156 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
157 m_lifecycleStatusMessageHasBeenSet = true;
158 m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value);
159 }
160 template <typename LifecycleStatusMessageT = Aws::String>
161 BatchGetStepItem& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
162 SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value));
163 return *this;
164 }
166
168
171 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
172 inline bool TaskRunStatusHasBeenSet() const { return m_taskRunStatusHasBeenSet; }
173 inline void SetTaskRunStatus(TaskRunStatus value) {
174 m_taskRunStatusHasBeenSet = true;
175 m_taskRunStatus = value;
176 }
178 SetTaskRunStatus(value);
179 return *this;
180 }
182
184
187 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
188 inline bool TaskRunStatusCountsHasBeenSet() const { return m_taskRunStatusCountsHasBeenSet; }
189 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
190 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
191 m_taskRunStatusCountsHasBeenSet = true;
192 m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value);
193 }
194 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
195 BatchGetStepItem& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
196 SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value));
197 return *this;
198 }
200 m_taskRunStatusCountsHasBeenSet = true;
201 m_taskRunStatusCounts.emplace(key, value);
202 return *this;
203 }
205
207
210 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
211 inline bool TaskFailureRetryCountHasBeenSet() const { return m_taskFailureRetryCountHasBeenSet; }
212 inline void SetTaskFailureRetryCount(int value) {
213 m_taskFailureRetryCountHasBeenSet = true;
214 m_taskFailureRetryCount = value;
215 }
218 return *this;
219 }
221
223
226 inline StepTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
227 inline bool TargetTaskRunStatusHasBeenSet() const { return m_targetTaskRunStatusHasBeenSet; }
229 m_targetTaskRunStatusHasBeenSet = true;
230 m_targetTaskRunStatus = value;
231 }
234 return *this;
235 }
237
239
242 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
243 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
244 template <typename CreatedAtT = Aws::Utils::DateTime>
245 void SetCreatedAt(CreatedAtT&& value) {
246 m_createdAtHasBeenSet = true;
247 m_createdAt = std::forward<CreatedAtT>(value);
248 }
249 template <typename CreatedAtT = Aws::Utils::DateTime>
250 BatchGetStepItem& WithCreatedAt(CreatedAtT&& value) {
251 SetCreatedAt(std::forward<CreatedAtT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
261 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
262 template <typename CreatedByT = Aws::String>
263 void SetCreatedBy(CreatedByT&& value) {
264 m_createdByHasBeenSet = true;
265 m_createdBy = std::forward<CreatedByT>(value);
266 }
267 template <typename CreatedByT = Aws::String>
268 BatchGetStepItem& WithCreatedBy(CreatedByT&& value) {
269 SetCreatedBy(std::forward<CreatedByT>(value));
270 return *this;
271 }
273
275
278 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
279 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
280 template <typename UpdatedAtT = Aws::Utils::DateTime>
281 void SetUpdatedAt(UpdatedAtT&& value) {
282 m_updatedAtHasBeenSet = true;
283 m_updatedAt = std::forward<UpdatedAtT>(value);
284 }
285 template <typename UpdatedAtT = Aws::Utils::DateTime>
286 BatchGetStepItem& WithUpdatedAt(UpdatedAtT&& value) {
287 SetUpdatedAt(std::forward<UpdatedAtT>(value));
288 return *this;
289 }
291
293
296 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
297 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
298 template <typename UpdatedByT = Aws::String>
299 void SetUpdatedBy(UpdatedByT&& value) {
300 m_updatedByHasBeenSet = true;
301 m_updatedBy = std::forward<UpdatedByT>(value);
302 }
303 template <typename UpdatedByT = Aws::String>
304 BatchGetStepItem& WithUpdatedBy(UpdatedByT&& value) {
305 SetUpdatedBy(std::forward<UpdatedByT>(value));
306 return *this;
307 }
309
311
314 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
315 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
316 template <typename StartedAtT = Aws::Utils::DateTime>
317 void SetStartedAt(StartedAtT&& value) {
318 m_startedAtHasBeenSet = true;
319 m_startedAt = std::forward<StartedAtT>(value);
320 }
321 template <typename StartedAtT = Aws::Utils::DateTime>
322 BatchGetStepItem& WithStartedAt(StartedAtT&& value) {
323 SetStartedAt(std::forward<StartedAtT>(value));
324 return *this;
325 }
327
329
332 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
333 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
334 template <typename EndedAtT = Aws::Utils::DateTime>
335 void SetEndedAt(EndedAtT&& value) {
336 m_endedAtHasBeenSet = true;
337 m_endedAt = std::forward<EndedAtT>(value);
338 }
339 template <typename EndedAtT = Aws::Utils::DateTime>
340 BatchGetStepItem& WithEndedAt(EndedAtT&& value) {
341 SetEndedAt(std::forward<EndedAtT>(value));
342 return *this;
343 }
345
347
350 inline const DependencyCounts& GetDependencyCounts() const { return m_dependencyCounts; }
351 inline bool DependencyCountsHasBeenSet() const { return m_dependencyCountsHasBeenSet; }
352 template <typename DependencyCountsT = DependencyCounts>
353 void SetDependencyCounts(DependencyCountsT&& value) {
354 m_dependencyCountsHasBeenSet = true;
355 m_dependencyCounts = std::forward<DependencyCountsT>(value);
356 }
357 template <typename DependencyCountsT = DependencyCounts>
358 BatchGetStepItem& WithDependencyCounts(DependencyCountsT&& value) {
359 SetDependencyCounts(std::forward<DependencyCountsT>(value));
360 return *this;
361 }
363
365
368 inline const StepRequiredCapabilities& GetRequiredCapabilities() const { return m_requiredCapabilities; }
369 inline bool RequiredCapabilitiesHasBeenSet() const { return m_requiredCapabilitiesHasBeenSet; }
370 template <typename RequiredCapabilitiesT = StepRequiredCapabilities>
371 void SetRequiredCapabilities(RequiredCapabilitiesT&& value) {
372 m_requiredCapabilitiesHasBeenSet = true;
373 m_requiredCapabilities = std::forward<RequiredCapabilitiesT>(value);
374 }
375 template <typename RequiredCapabilitiesT = StepRequiredCapabilities>
376 BatchGetStepItem& WithRequiredCapabilities(RequiredCapabilitiesT&& value) {
377 SetRequiredCapabilities(std::forward<RequiredCapabilitiesT>(value));
378 return *this;
379 }
381
383
386 inline const ParameterSpace& GetParameterSpace() const { return m_parameterSpace; }
387 inline bool ParameterSpaceHasBeenSet() const { return m_parameterSpaceHasBeenSet; }
388 template <typename ParameterSpaceT = ParameterSpace>
389 void SetParameterSpace(ParameterSpaceT&& value) {
390 m_parameterSpaceHasBeenSet = true;
391 m_parameterSpace = std::forward<ParameterSpaceT>(value);
392 }
393 template <typename ParameterSpaceT = ParameterSpace>
394 BatchGetStepItem& WithParameterSpace(ParameterSpaceT&& value) {
395 SetParameterSpace(std::forward<ParameterSpaceT>(value));
396 return *this;
397 }
399
401
404 inline const Aws::String& GetDescription() const { return m_description; }
405 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
406 template <typename DescriptionT = Aws::String>
407 void SetDescription(DescriptionT&& value) {
408 m_descriptionHasBeenSet = true;
409 m_description = std::forward<DescriptionT>(value);
410 }
411 template <typename DescriptionT = Aws::String>
412 BatchGetStepItem& WithDescription(DescriptionT&& value) {
413 SetDescription(std::forward<DescriptionT>(value));
414 return *this;
415 }
417 private:
418 Aws::String m_farmId;
419
420 Aws::String m_queueId;
421
422 Aws::String m_jobId;
423
424 Aws::String m_stepId;
425
426 Aws::String m_name;
427
429
430 Aws::String m_lifecycleStatusMessage;
431
432 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
433
434 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
435
436 int m_taskFailureRetryCount{0};
437
439
440 Aws::Utils::DateTime m_createdAt{};
441
442 Aws::String m_createdBy;
443
444 Aws::Utils::DateTime m_updatedAt{};
445
446 Aws::String m_updatedBy;
447
448 Aws::Utils::DateTime m_startedAt{};
449
450 Aws::Utils::DateTime m_endedAt{};
451
452 DependencyCounts m_dependencyCounts;
453
454 StepRequiredCapabilities m_requiredCapabilities;
455
456 ParameterSpace m_parameterSpace;
457
458 Aws::String m_description;
459 bool m_farmIdHasBeenSet = false;
460 bool m_queueIdHasBeenSet = false;
461 bool m_jobIdHasBeenSet = false;
462 bool m_stepIdHasBeenSet = false;
463 bool m_nameHasBeenSet = false;
464 bool m_lifecycleStatusHasBeenSet = false;
465 bool m_lifecycleStatusMessageHasBeenSet = false;
466 bool m_taskRunStatusHasBeenSet = false;
467 bool m_taskRunStatusCountsHasBeenSet = false;
468 bool m_taskFailureRetryCountHasBeenSet = false;
469 bool m_targetTaskRunStatusHasBeenSet = false;
470 bool m_createdAtHasBeenSet = false;
471 bool m_createdByHasBeenSet = false;
472 bool m_updatedAtHasBeenSet = false;
473 bool m_updatedByHasBeenSet = false;
474 bool m_startedAtHasBeenSet = false;
475 bool m_endedAtHasBeenSet = false;
476 bool m_dependencyCountsHasBeenSet = false;
477 bool m_requiredCapabilitiesHasBeenSet = false;
478 bool m_parameterSpaceHasBeenSet = false;
479 bool m_descriptionHasBeenSet = false;
480};
481
482} // namespace Model
483} // namespace deadline
484} // namespace Aws
BatchGetStepItem & WithStepId(StepIdT &&value)
BatchGetStepItem & WithFarmId(FarmIdT &&value)
AWS_DEADLINE_API BatchGetStepItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetJobId() const
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::Utils::DateTime & GetEndedAt() const
BatchGetStepItem & AddTaskRunStatusCounts(TaskRunStatus key, int value)
StepLifecycleStatus GetLifecycleStatus() const
void SetParameterSpace(ParameterSpaceT &&value)
void SetTaskRunStatus(TaskRunStatus value)
const ParameterSpace & GetParameterSpace() const
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
void SetDescription(DescriptionT &&value)
const DependencyCounts & GetDependencyCounts() const
const Aws::String & GetQueueId() const
const Aws::String & GetFarmId() const
BatchGetStepItem & WithDependencyCounts(DependencyCountsT &&value)
AWS_DEADLINE_API BatchGetStepItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUpdatedBy() const
BatchGetStepItem & WithLifecycleStatus(StepLifecycleStatus value)
void SetDependencyCounts(DependencyCountsT &&value)
void SetTaskRunStatusCounts(TaskRunStatusCountsT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
BatchGetStepItem & WithJobId(JobIdT &&value)
BatchGetStepItem & WithDescription(DescriptionT &&value)
BatchGetStepItem & WithCreatedAt(CreatedAtT &&value)
BatchGetStepItem & WithTaskRunStatusCounts(TaskRunStatusCountsT &&value)
AWS_DEADLINE_API BatchGetStepItem()=default
BatchGetStepItem & WithName(NameT &&value)
BatchGetStepItem & WithTaskRunStatus(TaskRunStatus value)
StepTargetTaskRunStatus GetTargetTaskRunStatus() const
void SetRequiredCapabilities(RequiredCapabilitiesT &&value)
BatchGetStepItem & WithRequiredCapabilities(RequiredCapabilitiesT &&value)
BatchGetStepItem & WithCreatedBy(CreatedByT &&value)
BatchGetStepItem & WithQueueId(QueueIdT &&value)
BatchGetStepItem & WithUpdatedAt(UpdatedAtT &&value)
void SetLifecycleStatus(StepLifecycleStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetLifecycleStatusMessage() const
BatchGetStepItem & WithEndedAt(EndedAtT &&value)
const Aws::String & GetCreatedBy() const
BatchGetStepItem & WithUpdatedBy(UpdatedByT &&value)
BatchGetStepItem & WithTargetTaskRunStatus(StepTargetTaskRunStatus value)
BatchGetStepItem & WithStartedAt(StartedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetDescription() const
void SetTargetTaskRunStatus(StepTargetTaskRunStatus value)
void SetLifecycleStatusMessage(LifecycleStatusMessageT &&value)
BatchGetStepItem & WithLifecycleStatusMessage(LifecycleStatusMessageT &&value)
const StepRequiredCapabilities & GetRequiredCapabilities() const
BatchGetStepItem & WithTaskFailureRetryCount(int value)
BatchGetStepItem & WithParameterSpace(ParameterSpaceT &&value)
const Aws::String & GetStepId() const
const Aws::String & GetName() const
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