AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
BatchGetTaskItem.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/TaskParameterValue.h>
12#include <aws/deadline/model/TaskRunStatus.h>
13#include <aws/deadline/model/TaskTargetRunStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace deadline {
25namespace Model {
26
34 public:
35 AWS_DEADLINE_API BatchGetTaskItem() = default;
36 AWS_DEADLINE_API BatchGetTaskItem(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetFarmId() const { return m_farmId; }
45 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
46 template <typename FarmIdT = Aws::String>
47 void SetFarmId(FarmIdT&& value) {
48 m_farmIdHasBeenSet = true;
49 m_farmId = std::forward<FarmIdT>(value);
50 }
51 template <typename FarmIdT = Aws::String>
52 BatchGetTaskItem& WithFarmId(FarmIdT&& value) {
53 SetFarmId(std::forward<FarmIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetQueueId() const { return m_queueId; }
63 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
64 template <typename QueueIdT = Aws::String>
65 void SetQueueId(QueueIdT&& value) {
66 m_queueIdHasBeenSet = true;
67 m_queueId = std::forward<QueueIdT>(value);
68 }
69 template <typename QueueIdT = Aws::String>
70 BatchGetTaskItem& WithQueueId(QueueIdT&& value) {
71 SetQueueId(std::forward<QueueIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetJobId() const { return m_jobId; }
81 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
82 template <typename JobIdT = Aws::String>
83 void SetJobId(JobIdT&& value) {
84 m_jobIdHasBeenSet = true;
85 m_jobId = std::forward<JobIdT>(value);
86 }
87 template <typename JobIdT = Aws::String>
88 BatchGetTaskItem& WithJobId(JobIdT&& value) {
89 SetJobId(std::forward<JobIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetStepId() const { return m_stepId; }
99 inline bool StepIdHasBeenSet() const { return m_stepIdHasBeenSet; }
100 template <typename StepIdT = Aws::String>
101 void SetStepId(StepIdT&& value) {
102 m_stepIdHasBeenSet = true;
103 m_stepId = std::forward<StepIdT>(value);
104 }
105 template <typename StepIdT = Aws::String>
106 BatchGetTaskItem& WithStepId(StepIdT&& value) {
107 SetStepId(std::forward<StepIdT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetTaskId() const { return m_taskId; }
117 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
118 template <typename TaskIdT = Aws::String>
119 void SetTaskId(TaskIdT&& value) {
120 m_taskIdHasBeenSet = true;
121 m_taskId = std::forward<TaskIdT>(value);
122 }
123 template <typename TaskIdT = Aws::String>
124 BatchGetTaskItem& WithTaskId(TaskIdT&& value) {
125 SetTaskId(std::forward<TaskIdT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
135 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
136 template <typename CreatedAtT = Aws::Utils::DateTime>
137 void SetCreatedAt(CreatedAtT&& value) {
138 m_createdAtHasBeenSet = true;
139 m_createdAt = std::forward<CreatedAtT>(value);
140 }
141 template <typename CreatedAtT = Aws::Utils::DateTime>
142 BatchGetTaskItem& WithCreatedAt(CreatedAtT&& value) {
143 SetCreatedAt(std::forward<CreatedAtT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
153 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
154 template <typename CreatedByT = Aws::String>
155 void SetCreatedBy(CreatedByT&& value) {
156 m_createdByHasBeenSet = true;
157 m_createdBy = std::forward<CreatedByT>(value);
158 }
159 template <typename CreatedByT = Aws::String>
160 BatchGetTaskItem& WithCreatedBy(CreatedByT&& value) {
161 SetCreatedBy(std::forward<CreatedByT>(value));
162 return *this;
163 }
165
167
170 inline TaskRunStatus GetRunStatus() const { return m_runStatus; }
171 inline bool RunStatusHasBeenSet() const { return m_runStatusHasBeenSet; }
172 inline void SetRunStatus(TaskRunStatus value) {
173 m_runStatusHasBeenSet = true;
174 m_runStatus = value;
175 }
177 SetRunStatus(value);
178 return *this;
179 }
181
183
186 inline TaskTargetRunStatus GetTargetRunStatus() const { return m_targetRunStatus; }
187 inline bool TargetRunStatusHasBeenSet() const { return m_targetRunStatusHasBeenSet; }
189 m_targetRunStatusHasBeenSet = true;
190 m_targetRunStatus = value;
191 }
193 SetTargetRunStatus(value);
194 return *this;
195 }
197
199
202 inline int GetFailureRetryCount() const { return m_failureRetryCount; }
203 inline bool FailureRetryCountHasBeenSet() const { return m_failureRetryCountHasBeenSet; }
204 inline void SetFailureRetryCount(int value) {
205 m_failureRetryCountHasBeenSet = true;
206 m_failureRetryCount = value;
207 }
210 return *this;
211 }
213
215
218 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
219 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
220 template <typename StartedAtT = Aws::Utils::DateTime>
221 void SetStartedAt(StartedAtT&& value) {
222 m_startedAtHasBeenSet = true;
223 m_startedAt = std::forward<StartedAtT>(value);
224 }
225 template <typename StartedAtT = Aws::Utils::DateTime>
226 BatchGetTaskItem& WithStartedAt(StartedAtT&& value) {
227 SetStartedAt(std::forward<StartedAtT>(value));
228 return *this;
229 }
231
233
236 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
237 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
238 template <typename EndedAtT = Aws::Utils::DateTime>
239 void SetEndedAt(EndedAtT&& value) {
240 m_endedAtHasBeenSet = true;
241 m_endedAt = std::forward<EndedAtT>(value);
242 }
243 template <typename EndedAtT = Aws::Utils::DateTime>
244 BatchGetTaskItem& WithEndedAt(EndedAtT&& value) {
245 SetEndedAt(std::forward<EndedAtT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
255 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
256 template <typename UpdatedAtT = Aws::Utils::DateTime>
257 void SetUpdatedAt(UpdatedAtT&& value) {
258 m_updatedAtHasBeenSet = true;
259 m_updatedAt = std::forward<UpdatedAtT>(value);
260 }
261 template <typename UpdatedAtT = Aws::Utils::DateTime>
262 BatchGetTaskItem& WithUpdatedAt(UpdatedAtT&& value) {
263 SetUpdatedAt(std::forward<UpdatedAtT>(value));
264 return *this;
265 }
267
269
272 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
273 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
274 template <typename UpdatedByT = Aws::String>
275 void SetUpdatedBy(UpdatedByT&& value) {
276 m_updatedByHasBeenSet = true;
277 m_updatedBy = std::forward<UpdatedByT>(value);
278 }
279 template <typename UpdatedByT = Aws::String>
280 BatchGetTaskItem& WithUpdatedBy(UpdatedByT&& value) {
281 SetUpdatedBy(std::forward<UpdatedByT>(value));
282 return *this;
283 }
285
287
290 inline const Aws::String& GetLatestSessionActionId() const { return m_latestSessionActionId; }
291 inline bool LatestSessionActionIdHasBeenSet() const { return m_latestSessionActionIdHasBeenSet; }
292 template <typename LatestSessionActionIdT = Aws::String>
293 void SetLatestSessionActionId(LatestSessionActionIdT&& value) {
294 m_latestSessionActionIdHasBeenSet = true;
295 m_latestSessionActionId = std::forward<LatestSessionActionIdT>(value);
296 }
297 template <typename LatestSessionActionIdT = Aws::String>
298 BatchGetTaskItem& WithLatestSessionActionId(LatestSessionActionIdT&& value) {
299 SetLatestSessionActionId(std::forward<LatestSessionActionIdT>(value));
300 return *this;
301 }
303
305
308 inline const Aws::Map<Aws::String, TaskParameterValue>& GetParameters() const { return m_parameters; }
309 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
310 template <typename ParametersT = Aws::Map<Aws::String, TaskParameterValue>>
311 void SetParameters(ParametersT&& value) {
312 m_parametersHasBeenSet = true;
313 m_parameters = std::forward<ParametersT>(value);
314 }
315 template <typename ParametersT = Aws::Map<Aws::String, TaskParameterValue>>
316 BatchGetTaskItem& WithParameters(ParametersT&& value) {
317 SetParameters(std::forward<ParametersT>(value));
318 return *this;
319 }
320 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = TaskParameterValue>
321 BatchGetTaskItem& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
322 m_parametersHasBeenSet = true;
323 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
324 return *this;
325 }
327 private:
328 Aws::String m_farmId;
329
330 Aws::String m_queueId;
331
332 Aws::String m_jobId;
333
334 Aws::String m_stepId;
335
336 Aws::String m_taskId;
337
338 Aws::Utils::DateTime m_createdAt{};
339
340 Aws::String m_createdBy;
341
343
345
346 int m_failureRetryCount{0};
347
348 Aws::Utils::DateTime m_startedAt{};
349
350 Aws::Utils::DateTime m_endedAt{};
351
352 Aws::Utils::DateTime m_updatedAt{};
353
354 Aws::String m_updatedBy;
355
356 Aws::String m_latestSessionActionId;
357
359 bool m_farmIdHasBeenSet = false;
360 bool m_queueIdHasBeenSet = false;
361 bool m_jobIdHasBeenSet = false;
362 bool m_stepIdHasBeenSet = false;
363 bool m_taskIdHasBeenSet = false;
364 bool m_createdAtHasBeenSet = false;
365 bool m_createdByHasBeenSet = false;
366 bool m_runStatusHasBeenSet = false;
367 bool m_targetRunStatusHasBeenSet = false;
368 bool m_failureRetryCountHasBeenSet = false;
369 bool m_startedAtHasBeenSet = false;
370 bool m_endedAtHasBeenSet = false;
371 bool m_updatedAtHasBeenSet = false;
372 bool m_updatedByHasBeenSet = false;
373 bool m_latestSessionActionIdHasBeenSet = false;
374 bool m_parametersHasBeenSet = false;
375};
376
377} // namespace Model
378} // namespace deadline
379} // namespace Aws
void SetTargetRunStatus(TaskTargetRunStatus value)
void SetParameters(ParametersT &&value)
void SetLatestSessionActionId(LatestSessionActionIdT &&value)
BatchGetTaskItem & WithStartedAt(StartedAtT &&value)
const Aws::String & GetCreatedBy() const
BatchGetTaskItem & WithTargetRunStatus(TaskTargetRunStatus value)
const Aws::String & GetJobId() const
const Aws::String & GetTaskId() const
BatchGetTaskItem & WithUpdatedAt(UpdatedAtT &&value)
BatchGetTaskItem & WithFailureRetryCount(int value)
BatchGetTaskItem & WithStepId(StepIdT &&value)
BatchGetTaskItem & WithRunStatus(TaskRunStatus value)
BatchGetTaskItem & WithUpdatedBy(UpdatedByT &&value)
const Aws::String & GetLatestSessionActionId() const
BatchGetTaskItem & WithQueueId(QueueIdT &&value)
BatchGetTaskItem & WithFarmId(FarmIdT &&value)
BatchGetTaskItem & WithEndedAt(EndedAtT &&value)
BatchGetTaskItem & WithCreatedBy(CreatedByT &&value)
BatchGetTaskItem & WithCreatedAt(CreatedAtT &&value)
TaskTargetRunStatus GetTargetRunStatus() const
AWS_DEADLINE_API BatchGetTaskItem(Aws::Utils::Json::JsonView jsonValue)
BatchGetTaskItem & WithLatestSessionActionId(LatestSessionActionIdT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
BatchGetTaskItem & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const Aws::String & GetFarmId() const
const Aws::String & GetQueueId() const
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::String & GetStepId() const
BatchGetTaskItem & WithParameters(ParametersT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
BatchGetTaskItem & WithTaskId(TaskIdT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEADLINE_API BatchGetTaskItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API BatchGetTaskItem()=default
const Aws::String & GetUpdatedBy() const
BatchGetTaskItem & WithJobId(JobIdT &&value)
const Aws::Map< Aws::String, TaskParameterValue > & GetParameters() 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