AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/batch/model/JobStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/batch/model/RetryStrategy.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/batch/model/ContainerDetail.h>
14#include <aws/batch/model/NodeDetails.h>
15#include <aws/batch/model/NodeProperties.h>
16#include <aws/batch/model/ArrayPropertiesDetail.h>
17#include <aws/batch/model/JobTimeout.h>
18#include <aws/batch/model/EksPropertiesDetail.h>
19#include <aws/batch/model/EcsPropertiesDetail.h>
20#include <aws/batch/model/AttemptDetail.h>
21#include <aws/batch/model/JobDependency.h>
22#include <aws/batch/model/PlatformCapability.h>
23#include <aws/batch/model/EksAttemptDetail.h>
24#include <utility>
25
26namespace Aws
27{
28namespace Utils
29{
30namespace Json
31{
32 class JsonValue;
33 class JsonView;
34} // namespace Json
35} // namespace Utils
36namespace Batch
37{
38namespace Model
39{
40
47 {
48 public:
49 AWS_BATCH_API JobDetail();
50 AWS_BATCH_API JobDetail(Aws::Utils::Json::JsonView jsonValue);
52 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const Aws::String& GetJobArn() const{ return m_jobArn; }
60 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
61 inline void SetJobArn(const Aws::String& value) { m_jobArnHasBeenSet = true; m_jobArn = value; }
62 inline void SetJobArn(Aws::String&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::move(value); }
63 inline void SetJobArn(const char* value) { m_jobArnHasBeenSet = true; m_jobArn.assign(value); }
64 inline JobDetail& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;}
65 inline JobDetail& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;}
66 inline JobDetail& WithJobArn(const char* value) { SetJobArn(value); return *this;}
68
70
73 inline const Aws::String& GetJobName() const{ return m_jobName; }
74 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
75 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
76 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
77 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
78 inline JobDetail& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
79 inline JobDetail& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
80 inline JobDetail& WithJobName(const char* value) { SetJobName(value); return *this;}
82
84
87 inline const Aws::String& GetJobId() const{ return m_jobId; }
88 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
89 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
90 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
91 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
92 inline JobDetail& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
93 inline JobDetail& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
94 inline JobDetail& WithJobId(const char* value) { SetJobId(value); return *this;}
96
98
102 inline const Aws::String& GetJobQueue() const{ return m_jobQueue; }
103 inline bool JobQueueHasBeenSet() const { return m_jobQueueHasBeenSet; }
104 inline void SetJobQueue(const Aws::String& value) { m_jobQueueHasBeenSet = true; m_jobQueue = value; }
105 inline void SetJobQueue(Aws::String&& value) { m_jobQueueHasBeenSet = true; m_jobQueue = std::move(value); }
106 inline void SetJobQueue(const char* value) { m_jobQueueHasBeenSet = true; m_jobQueue.assign(value); }
107 inline JobDetail& WithJobQueue(const Aws::String& value) { SetJobQueue(value); return *this;}
108 inline JobDetail& WithJobQueue(Aws::String&& value) { SetJobQueue(std::move(value)); return *this;}
109 inline JobDetail& WithJobQueue(const char* value) { SetJobQueue(value); return *this;}
111
113
120 inline const JobStatus& GetStatus() const{ return m_status; }
121 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
122 inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
123 inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
124 inline JobDetail& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
125 inline JobDetail& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
127
129
132 inline const Aws::String& GetShareIdentifier() const{ return m_shareIdentifier; }
133 inline bool ShareIdentifierHasBeenSet() const { return m_shareIdentifierHasBeenSet; }
134 inline void SetShareIdentifier(const Aws::String& value) { m_shareIdentifierHasBeenSet = true; m_shareIdentifier = value; }
135 inline void SetShareIdentifier(Aws::String&& value) { m_shareIdentifierHasBeenSet = true; m_shareIdentifier = std::move(value); }
136 inline void SetShareIdentifier(const char* value) { m_shareIdentifierHasBeenSet = true; m_shareIdentifier.assign(value); }
137 inline JobDetail& WithShareIdentifier(const Aws::String& value) { SetShareIdentifier(value); return *this;}
138 inline JobDetail& WithShareIdentifier(Aws::String&& value) { SetShareIdentifier(std::move(value)); return *this;}
139 inline JobDetail& WithShareIdentifier(const char* value) { SetShareIdentifier(value); return *this;}
141
143
148 inline int GetSchedulingPriority() const{ return m_schedulingPriority; }
149 inline bool SchedulingPriorityHasBeenSet() const { return m_schedulingPriorityHasBeenSet; }
150 inline void SetSchedulingPriority(int value) { m_schedulingPriorityHasBeenSet = true; m_schedulingPriority = value; }
151 inline JobDetail& WithSchedulingPriority(int value) { SetSchedulingPriority(value); return *this;}
153
155
158 inline const Aws::Vector<AttemptDetail>& GetAttempts() const{ return m_attempts; }
159 inline bool AttemptsHasBeenSet() const { return m_attemptsHasBeenSet; }
160 inline void SetAttempts(const Aws::Vector<AttemptDetail>& value) { m_attemptsHasBeenSet = true; m_attempts = value; }
161 inline void SetAttempts(Aws::Vector<AttemptDetail>&& value) { m_attemptsHasBeenSet = true; m_attempts = std::move(value); }
162 inline JobDetail& WithAttempts(const Aws::Vector<AttemptDetail>& value) { SetAttempts(value); return *this;}
163 inline JobDetail& WithAttempts(Aws::Vector<AttemptDetail>&& value) { SetAttempts(std::move(value)); return *this;}
164 inline JobDetail& AddAttempts(const AttemptDetail& value) { m_attemptsHasBeenSet = true; m_attempts.push_back(value); return *this; }
165 inline JobDetail& AddAttempts(AttemptDetail&& value) { m_attemptsHasBeenSet = true; m_attempts.push_back(std::move(value)); return *this; }
167
169
183 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
184 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
185 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
186 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
187 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
188 inline JobDetail& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
189 inline JobDetail& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
190 inline JobDetail& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
192
194
202 inline long long GetCreatedAt() const{ return m_createdAt; }
203 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
204 inline void SetCreatedAt(long long value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
205 inline JobDetail& WithCreatedAt(long long value) { SetCreatedAt(value); return *this;}
207
209
212 inline const RetryStrategy& GetRetryStrategy() const{ return m_retryStrategy; }
213 inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; }
214 inline void SetRetryStrategy(const RetryStrategy& value) { m_retryStrategyHasBeenSet = true; m_retryStrategy = value; }
215 inline void SetRetryStrategy(RetryStrategy&& value) { m_retryStrategyHasBeenSet = true; m_retryStrategy = std::move(value); }
216 inline JobDetail& WithRetryStrategy(const RetryStrategy& value) { SetRetryStrategy(value); return *this;}
217 inline JobDetail& WithRetryStrategy(RetryStrategy&& value) { SetRetryStrategy(std::move(value)); return *this;}
219
221
226 inline long long GetStartedAt() const{ return m_startedAt; }
227 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
228 inline void SetStartedAt(long long value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
229 inline JobDetail& WithStartedAt(long long value) { SetStartedAt(value); return *this;}
231
233
238 inline long long GetStoppedAt() const{ return m_stoppedAt; }
239 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
240 inline void SetStoppedAt(long long value) { m_stoppedAtHasBeenSet = true; m_stoppedAt = value; }
241 inline JobDetail& WithStoppedAt(long long value) { SetStoppedAt(value); return *this;}
243
245
248 inline const Aws::Vector<JobDependency>& GetDependsOn() const{ return m_dependsOn; }
249 inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
250 inline void SetDependsOn(const Aws::Vector<JobDependency>& value) { m_dependsOnHasBeenSet = true; m_dependsOn = value; }
251 inline void SetDependsOn(Aws::Vector<JobDependency>&& value) { m_dependsOnHasBeenSet = true; m_dependsOn = std::move(value); }
252 inline JobDetail& WithDependsOn(const Aws::Vector<JobDependency>& value) { SetDependsOn(value); return *this;}
253 inline JobDetail& WithDependsOn(Aws::Vector<JobDependency>&& value) { SetDependsOn(std::move(value)); return *this;}
254 inline JobDetail& AddDependsOn(const JobDependency& value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(value); return *this; }
255 inline JobDetail& AddDependsOn(JobDependency&& value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(std::move(value)); return *this; }
257
259
262 inline const Aws::String& GetJobDefinition() const{ return m_jobDefinition; }
263 inline bool JobDefinitionHasBeenSet() const { return m_jobDefinitionHasBeenSet; }
264 inline void SetJobDefinition(const Aws::String& value) { m_jobDefinitionHasBeenSet = true; m_jobDefinition = value; }
265 inline void SetJobDefinition(Aws::String&& value) { m_jobDefinitionHasBeenSet = true; m_jobDefinition = std::move(value); }
266 inline void SetJobDefinition(const char* value) { m_jobDefinitionHasBeenSet = true; m_jobDefinition.assign(value); }
267 inline JobDetail& WithJobDefinition(const Aws::String& value) { SetJobDefinition(value); return *this;}
268 inline JobDetail& WithJobDefinition(Aws::String&& value) { SetJobDefinition(std::move(value)); return *this;}
269 inline JobDetail& WithJobDefinition(const char* value) { SetJobDefinition(value); return *this;}
271
273
278 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
279 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
280 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
281 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
282 inline JobDetail& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
283 inline JobDetail& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
284 inline JobDetail& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
285 inline JobDetail& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
286 inline JobDetail& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
287 inline JobDetail& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
288 inline JobDetail& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
289 inline JobDetail& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
290 inline JobDetail& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
292
294
299 inline const ContainerDetail& GetContainer() const{ return m_container; }
300 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
301 inline void SetContainer(const ContainerDetail& value) { m_containerHasBeenSet = true; m_container = value; }
302 inline void SetContainer(ContainerDetail&& value) { m_containerHasBeenSet = true; m_container = std::move(value); }
303 inline JobDetail& WithContainer(const ContainerDetail& value) { SetContainer(value); return *this;}
304 inline JobDetail& WithContainer(ContainerDetail&& value) { SetContainer(std::move(value)); return *this;}
306
308
312 inline const NodeDetails& GetNodeDetails() const{ return m_nodeDetails; }
313 inline bool NodeDetailsHasBeenSet() const { return m_nodeDetailsHasBeenSet; }
314 inline void SetNodeDetails(const NodeDetails& value) { m_nodeDetailsHasBeenSet = true; m_nodeDetails = value; }
315 inline void SetNodeDetails(NodeDetails&& value) { m_nodeDetailsHasBeenSet = true; m_nodeDetails = std::move(value); }
316 inline JobDetail& WithNodeDetails(const NodeDetails& value) { SetNodeDetails(value); return *this;}
317 inline JobDetail& WithNodeDetails(NodeDetails&& value) { SetNodeDetails(std::move(value)); return *this;}
319
321
326 inline const NodeProperties& GetNodeProperties() const{ return m_nodeProperties; }
327 inline bool NodePropertiesHasBeenSet() const { return m_nodePropertiesHasBeenSet; }
328 inline void SetNodeProperties(const NodeProperties& value) { m_nodePropertiesHasBeenSet = true; m_nodeProperties = value; }
329 inline void SetNodeProperties(NodeProperties&& value) { m_nodePropertiesHasBeenSet = true; m_nodeProperties = std::move(value); }
330 inline JobDetail& WithNodeProperties(const NodeProperties& value) { SetNodeProperties(value); return *this;}
331 inline JobDetail& WithNodeProperties(NodeProperties&& value) { SetNodeProperties(std::move(value)); return *this;}
333
335
338 inline const ArrayPropertiesDetail& GetArrayProperties() const{ return m_arrayProperties; }
339 inline bool ArrayPropertiesHasBeenSet() const { return m_arrayPropertiesHasBeenSet; }
340 inline void SetArrayProperties(const ArrayPropertiesDetail& value) { m_arrayPropertiesHasBeenSet = true; m_arrayProperties = value; }
341 inline void SetArrayProperties(ArrayPropertiesDetail&& value) { m_arrayPropertiesHasBeenSet = true; m_arrayProperties = std::move(value); }
342 inline JobDetail& WithArrayProperties(const ArrayPropertiesDetail& value) { SetArrayProperties(value); return *this;}
343 inline JobDetail& WithArrayProperties(ArrayPropertiesDetail&& value) { SetArrayProperties(std::move(value)); return *this;}
345
347
350 inline const JobTimeout& GetTimeout() const{ return m_timeout; }
351 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
352 inline void SetTimeout(const JobTimeout& value) { m_timeoutHasBeenSet = true; m_timeout = value; }
353 inline void SetTimeout(JobTimeout&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); }
354 inline JobDetail& WithTimeout(const JobTimeout& value) { SetTimeout(value); return *this;}
355 inline JobDetail& WithTimeout(JobTimeout&& value) { SetTimeout(std::move(value)); return *this;}
357
359
362 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
363 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
364 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
365 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
366 inline JobDetail& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
367 inline JobDetail& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
368 inline JobDetail& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
369 inline JobDetail& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
370 inline JobDetail& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
371 inline JobDetail& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
372 inline JobDetail& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
373 inline JobDetail& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
374 inline JobDetail& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
376
378
386 inline bool GetPropagateTags() const{ return m_propagateTags; }
387 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
388 inline void SetPropagateTags(bool value) { m_propagateTagsHasBeenSet = true; m_propagateTags = value; }
389 inline JobDetail& WithPropagateTags(bool value) { SetPropagateTags(value); return *this;}
391
393
398 inline const Aws::Vector<PlatformCapability>& GetPlatformCapabilities() const{ return m_platformCapabilities; }
399 inline bool PlatformCapabilitiesHasBeenSet() const { return m_platformCapabilitiesHasBeenSet; }
400 inline void SetPlatformCapabilities(const Aws::Vector<PlatformCapability>& value) { m_platformCapabilitiesHasBeenSet = true; m_platformCapabilities = value; }
401 inline void SetPlatformCapabilities(Aws::Vector<PlatformCapability>&& value) { m_platformCapabilitiesHasBeenSet = true; m_platformCapabilities = std::move(value); }
404 inline JobDetail& AddPlatformCapabilities(const PlatformCapability& value) { m_platformCapabilitiesHasBeenSet = true; m_platformCapabilities.push_back(value); return *this; }
405 inline JobDetail& AddPlatformCapabilities(PlatformCapability&& value) { m_platformCapabilitiesHasBeenSet = true; m_platformCapabilities.push_back(std::move(value)); return *this; }
407
409
413 inline const EksPropertiesDetail& GetEksProperties() const{ return m_eksProperties; }
414 inline bool EksPropertiesHasBeenSet() const { return m_eksPropertiesHasBeenSet; }
415 inline void SetEksProperties(const EksPropertiesDetail& value) { m_eksPropertiesHasBeenSet = true; m_eksProperties = value; }
416 inline void SetEksProperties(EksPropertiesDetail&& value) { m_eksPropertiesHasBeenSet = true; m_eksProperties = std::move(value); }
417 inline JobDetail& WithEksProperties(const EksPropertiesDetail& value) { SetEksProperties(value); return *this;}
418 inline JobDetail& WithEksProperties(EksPropertiesDetail&& value) { SetEksProperties(std::move(value)); return *this;}
420
422
425 inline const Aws::Vector<EksAttemptDetail>& GetEksAttempts() const{ return m_eksAttempts; }
426 inline bool EksAttemptsHasBeenSet() const { return m_eksAttemptsHasBeenSet; }
427 inline void SetEksAttempts(const Aws::Vector<EksAttemptDetail>& value) { m_eksAttemptsHasBeenSet = true; m_eksAttempts = value; }
428 inline void SetEksAttempts(Aws::Vector<EksAttemptDetail>&& value) { m_eksAttemptsHasBeenSet = true; m_eksAttempts = std::move(value); }
429 inline JobDetail& WithEksAttempts(const Aws::Vector<EksAttemptDetail>& value) { SetEksAttempts(value); return *this;}
430 inline JobDetail& WithEksAttempts(Aws::Vector<EksAttemptDetail>&& value) { SetEksAttempts(std::move(value)); return *this;}
431 inline JobDetail& AddEksAttempts(const EksAttemptDetail& value) { m_eksAttemptsHasBeenSet = true; m_eksAttempts.push_back(value); return *this; }
432 inline JobDetail& AddEksAttempts(EksAttemptDetail&& value) { m_eksAttemptsHasBeenSet = true; m_eksAttempts.push_back(std::move(value)); return *this; }
434
436
439 inline const EcsPropertiesDetail& GetEcsProperties() const{ return m_ecsProperties; }
440 inline bool EcsPropertiesHasBeenSet() const { return m_ecsPropertiesHasBeenSet; }
441 inline void SetEcsProperties(const EcsPropertiesDetail& value) { m_ecsPropertiesHasBeenSet = true; m_ecsProperties = value; }
442 inline void SetEcsProperties(EcsPropertiesDetail&& value) { m_ecsPropertiesHasBeenSet = true; m_ecsProperties = std::move(value); }
443 inline JobDetail& WithEcsProperties(const EcsPropertiesDetail& value) { SetEcsProperties(value); return *this;}
444 inline JobDetail& WithEcsProperties(EcsPropertiesDetail&& value) { SetEcsProperties(std::move(value)); return *this;}
446
448
451 inline bool GetIsCancelled() const{ return m_isCancelled; }
452 inline bool IsCancelledHasBeenSet() const { return m_isCancelledHasBeenSet; }
453 inline void SetIsCancelled(bool value) { m_isCancelledHasBeenSet = true; m_isCancelled = value; }
454 inline JobDetail& WithIsCancelled(bool value) { SetIsCancelled(value); return *this;}
456
458
461 inline bool GetIsTerminated() const{ return m_isTerminated; }
462 inline bool IsTerminatedHasBeenSet() const { return m_isTerminatedHasBeenSet; }
463 inline void SetIsTerminated(bool value) { m_isTerminatedHasBeenSet = true; m_isTerminated = value; }
464 inline JobDetail& WithIsTerminated(bool value) { SetIsTerminated(value); return *this;}
466 private:
467
468 Aws::String m_jobArn;
469 bool m_jobArnHasBeenSet = false;
470
471 Aws::String m_jobName;
472 bool m_jobNameHasBeenSet = false;
473
474 Aws::String m_jobId;
475 bool m_jobIdHasBeenSet = false;
476
477 Aws::String m_jobQueue;
478 bool m_jobQueueHasBeenSet = false;
479
480 JobStatus m_status;
481 bool m_statusHasBeenSet = false;
482
483 Aws::String m_shareIdentifier;
484 bool m_shareIdentifierHasBeenSet = false;
485
486 int m_schedulingPriority;
487 bool m_schedulingPriorityHasBeenSet = false;
488
490 bool m_attemptsHasBeenSet = false;
491
492 Aws::String m_statusReason;
493 bool m_statusReasonHasBeenSet = false;
494
495 long long m_createdAt;
496 bool m_createdAtHasBeenSet = false;
497
498 RetryStrategy m_retryStrategy;
499 bool m_retryStrategyHasBeenSet = false;
500
501 long long m_startedAt;
502 bool m_startedAtHasBeenSet = false;
503
504 long long m_stoppedAt;
505 bool m_stoppedAtHasBeenSet = false;
506
507 Aws::Vector<JobDependency> m_dependsOn;
508 bool m_dependsOnHasBeenSet = false;
509
510 Aws::String m_jobDefinition;
511 bool m_jobDefinitionHasBeenSet = false;
512
514 bool m_parametersHasBeenSet = false;
515
516 ContainerDetail m_container;
517 bool m_containerHasBeenSet = false;
518
519 NodeDetails m_nodeDetails;
520 bool m_nodeDetailsHasBeenSet = false;
521
522 NodeProperties m_nodeProperties;
523 bool m_nodePropertiesHasBeenSet = false;
524
525 ArrayPropertiesDetail m_arrayProperties;
526 bool m_arrayPropertiesHasBeenSet = false;
527
528 JobTimeout m_timeout;
529 bool m_timeoutHasBeenSet = false;
530
532 bool m_tagsHasBeenSet = false;
533
534 bool m_propagateTags;
535 bool m_propagateTagsHasBeenSet = false;
536
537 Aws::Vector<PlatformCapability> m_platformCapabilities;
538 bool m_platformCapabilitiesHasBeenSet = false;
539
540 EksPropertiesDetail m_eksProperties;
541 bool m_eksPropertiesHasBeenSet = false;
542
543 Aws::Vector<EksAttemptDetail> m_eksAttempts;
544 bool m_eksAttemptsHasBeenSet = false;
545
546 EcsPropertiesDetail m_ecsProperties;
547 bool m_ecsPropertiesHasBeenSet = false;
548
549 bool m_isCancelled;
550 bool m_isCancelledHasBeenSet = false;
551
552 bool m_isTerminated;
553 bool m_isTerminatedHasBeenSet = false;
554 };
555
556} // namespace Model
557} // namespace Batch
558} // namespace Aws
const EcsPropertiesDetail & GetEcsProperties() const
Definition JobDetail.h:439
JobDetail & WithStatus(JobStatus &&value)
Definition JobDetail.h:125
JobDetail & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition JobDetail.h:367
void SetJobDefinition(Aws::String &&value)
Definition JobDetail.h:265
JobDetail & AddTags(Aws::String &&key, Aws::String &&value)
Definition JobDetail.h:371
bool ParametersHasBeenSet() const
Definition JobDetail.h:279
JobDetail & WithAttempts(const Aws::Vector< AttemptDetail > &value)
Definition JobDetail.h:162
const Aws::Vector< PlatformCapability > & GetPlatformCapabilities() const
Definition JobDetail.h:398
void SetAttempts(const Aws::Vector< AttemptDetail > &value)
Definition JobDetail.h:160
void SetIsTerminated(bool value)
Definition JobDetail.h:463
void SetRetryStrategy(const RetryStrategy &value)
Definition JobDetail.h:214
bool JobNameHasBeenSet() const
Definition JobDetail.h:74
void SetNodeDetails(NodeDetails &&value)
Definition JobDetail.h:315
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
JobDetail & WithEcsProperties(EcsPropertiesDetail &&value)
Definition JobDetail.h:444
void SetShareIdentifier(const char *value)
Definition JobDetail.h:136
void SetPropagateTags(bool value)
Definition JobDetail.h:388
JobDetail & WithNodeDetails(NodeDetails &&value)
Definition JobDetail.h:317
void SetStatus(const JobStatus &value)
Definition JobDetail.h:122
JobDetail & WithJobQueue(const Aws::String &value)
Definition JobDetail.h:107
bool AttemptsHasBeenSet() const
Definition JobDetail.h:159
JobDetail & WithEcsProperties(const EcsPropertiesDetail &value)
Definition JobDetail.h:443
JobDetail & WithContainer(const ContainerDetail &value)
Definition JobDetail.h:303
JobDetail & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition JobDetail.h:282
bool JobQueueHasBeenSet() const
Definition JobDetail.h:103
void SetStatusReason(const char *value)
Definition JobDetail.h:187
JobDetail & AddEksAttempts(EksAttemptDetail &&value)
Definition JobDetail.h:432
void SetArrayProperties(ArrayPropertiesDetail &&value)
Definition JobDetail.h:341
void SetStatusReason(const Aws::String &value)
Definition JobDetail.h:185
void SetJobArn(const Aws::String &value)
Definition JobDetail.h:61
const Aws::Vector< EksAttemptDetail > & GetEksAttempts() const
Definition JobDetail.h:425
const NodeDetails & GetNodeDetails() const
Definition JobDetail.h:312
JobDetail & WithTimeout(const JobTimeout &value)
Definition JobDetail.h:354
JobDetail & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition JobDetail.h:366
bool ArrayPropertiesHasBeenSet() const
Definition JobDetail.h:339
JobDetail & WithStatusReason(Aws::String &&value)
Definition JobDetail.h:189
void SetJobDefinition(const char *value)
Definition JobDetail.h:266
void SetEksProperties(const EksPropertiesDetail &value)
Definition JobDetail.h:415
bool ContainerHasBeenSet() const
Definition JobDetail.h:300
const NodeProperties & GetNodeProperties() const
Definition JobDetail.h:326
bool CreatedAtHasBeenSet() const
Definition JobDetail.h:203
bool StoppedAtHasBeenSet() const
Definition JobDetail.h:239
void SetJobArn(Aws::String &&value)
Definition JobDetail.h:62
void SetJobName(const char *value)
Definition JobDetail.h:77
JobDetail & WithEksAttempts(const Aws::Vector< EksAttemptDetail > &value)
Definition JobDetail.h:429
void SetEksProperties(EksPropertiesDetail &&value)
Definition JobDetail.h:416
const Aws::String & GetJobArn() const
Definition JobDetail.h:59
JobDetail & AddAttempts(AttemptDetail &&value)
Definition JobDetail.h:165
JobDetail & WithStatusReason(const char *value)
Definition JobDetail.h:190
void SetPlatformCapabilities(const Aws::Vector< PlatformCapability > &value)
Definition JobDetail.h:400
const Aws::String & GetJobDefinition() const
Definition JobDetail.h:262
JobDetail & WithPlatformCapabilities(Aws::Vector< PlatformCapability > &&value)
Definition JobDetail.h:403
JobDetail & WithJobName(const char *value)
Definition JobDetail.h:80
JobDetail & WithEksAttempts(Aws::Vector< EksAttemptDetail > &&value)
Definition JobDetail.h:430
void SetSchedulingPriority(int value)
Definition JobDetail.h:150
JobDetail & WithNodeProperties(const NodeProperties &value)
Definition JobDetail.h:330
JobDetail & WithJobId(const Aws::String &value)
Definition JobDetail.h:92
JobDetail & WithDependsOn(const Aws::Vector< JobDependency > &value)
Definition JobDetail.h:252
void SetJobId(const Aws::String &value)
Definition JobDetail.h:89
JobDetail & WithStatusReason(const Aws::String &value)
Definition JobDetail.h:188
const ArrayPropertiesDetail & GetArrayProperties() const
Definition JobDetail.h:338
JobDetail & WithStoppedAt(long long value)
Definition JobDetail.h:241
JobDetail & WithEksProperties(EksPropertiesDetail &&value)
Definition JobDetail.h:418
void SetNodeProperties(NodeProperties &&value)
Definition JobDetail.h:329
void SetCreatedAt(long long value)
Definition JobDetail.h:204
JobDetail & WithArrayProperties(ArrayPropertiesDetail &&value)
Definition JobDetail.h:343
void SetEksAttempts(const Aws::Vector< EksAttemptDetail > &value)
Definition JobDetail.h:427
bool SchedulingPriorityHasBeenSet() const
Definition JobDetail.h:149
JobDetail & WithStatus(const JobStatus &value)
Definition JobDetail.h:124
const RetryStrategy & GetRetryStrategy() const
Definition JobDetail.h:212
JobDetail & AddParameters(Aws::String &&key, const char *value)
Definition JobDetail.h:289
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition JobDetail.h:280
JobDetail & WithJobDefinition(Aws::String &&value)
Definition JobDetail.h:268
void SetPlatformCapabilities(Aws::Vector< PlatformCapability > &&value)
Definition JobDetail.h:401
void SetNodeDetails(const NodeDetails &value)
Definition JobDetail.h:314
bool StatusReasonHasBeenSet() const
Definition JobDetail.h:184
void SetJobArn(const char *value)
Definition JobDetail.h:63
void SetEcsProperties(EcsPropertiesDetail &&value)
Definition JobDetail.h:442
void SetNodeProperties(const NodeProperties &value)
Definition JobDetail.h:328
bool EcsPropertiesHasBeenSet() const
Definition JobDetail.h:440
void SetEksAttempts(Aws::Vector< EksAttemptDetail > &&value)
Definition JobDetail.h:428
bool StartedAtHasBeenSet() const
Definition JobDetail.h:227
JobDetail & WithRetryStrategy(const RetryStrategy &value)
Definition JobDetail.h:216
JobDetail & WithJobId(Aws::String &&value)
Definition JobDetail.h:93
void SetJobQueue(Aws::String &&value)
Definition JobDetail.h:105
JobDetail & AddDependsOn(JobDependency &&value)
Definition JobDetail.h:255
bool JobArnHasBeenSet() const
Definition JobDetail.h:60
bool IsTerminatedHasBeenSet() const
Definition JobDetail.h:462
void SetAttempts(Aws::Vector< AttemptDetail > &&value)
Definition JobDetail.h:161
JobDetail & WithArrayProperties(const ArrayPropertiesDetail &value)
Definition JobDetail.h:342
const Aws::String & GetJobName() const
Definition JobDetail.h:73
bool RetryStrategyHasBeenSet() const
Definition JobDetail.h:213
JobDetail & AddTags(Aws::String &&key, const char *value)
Definition JobDetail.h:373
JobDetail & WithJobArn(const char *value)
Definition JobDetail.h:66
bool JobDefinitionHasBeenSet() const
Definition JobDetail.h:263
JobDetail & AddTags(Aws::String &&key, const Aws::String &value)
Definition JobDetail.h:369
JobDetail & WithSchedulingPriority(int value)
Definition JobDetail.h:151
JobDetail & WithJobDefinition(const char *value)
Definition JobDetail.h:269
bool EksAttemptsHasBeenSet() const
Definition JobDetail.h:426
JobDetail & WithJobId(const char *value)
Definition JobDetail.h:94
const ContainerDetail & GetContainer() const
Definition JobDetail.h:299
JobDetail & WithNodeProperties(NodeProperties &&value)
Definition JobDetail.h:331
void SetContainer(const ContainerDetail &value)
Definition JobDetail.h:301
void SetArrayProperties(const ArrayPropertiesDetail &value)
Definition JobDetail.h:340
JobDetail & WithDependsOn(Aws::Vector< JobDependency > &&value)
Definition JobDetail.h:253
void SetJobId(const char *value)
Definition JobDetail.h:91
JobDetail & WithAttempts(Aws::Vector< AttemptDetail > &&value)
Definition JobDetail.h:163
JobDetail & AddParameters(const Aws::String &key, Aws::String &&value)
Definition JobDetail.h:286
JobDetail & WithIsCancelled(bool value)
Definition JobDetail.h:454
JobDetail & WithShareIdentifier(const Aws::String &value)
Definition JobDetail.h:137
JobDetail & AddTags(const char *key, const char *value)
Definition JobDetail.h:374
JobDetail & WithJobQueue(const char *value)
Definition JobDetail.h:109
JobDetail & AddParameters(Aws::String &&key, Aws::String &&value)
Definition JobDetail.h:287
JobDetail & WithShareIdentifier(Aws::String &&value)
Definition JobDetail.h:138
JobDetail & AddAttempts(const AttemptDetail &value)
Definition JobDetail.h:164
void SetJobId(Aws::String &&value)
Definition JobDetail.h:90
void SetIsCancelled(bool value)
Definition JobDetail.h:453
JobDetail & WithStartedAt(long long value)
Definition JobDetail.h:229
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition JobDetail.h:365
void SetRetryStrategy(RetryStrategy &&value)
Definition JobDetail.h:215
void SetStartedAt(long long value)
Definition JobDetail.h:228
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition JobDetail.h:278
bool NodePropertiesHasBeenSet() const
Definition JobDetail.h:327
void SetDependsOn(Aws::Vector< JobDependency > &&value)
Definition JobDetail.h:251
JobDetail & AddParameters(const char *key, Aws::String &&value)
Definition JobDetail.h:288
JobDetail & AddTags(const Aws::String &key, Aws::String &&value)
Definition JobDetail.h:370
JobDetail & WithJobArn(Aws::String &&value)
Definition JobDetail.h:65
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition JobDetail.h:362
void SetShareIdentifier(Aws::String &&value)
Definition JobDetail.h:135
JobDetail & AddParameters(Aws::String &&key, const Aws::String &value)
Definition JobDetail.h:285
bool PropagateTagsHasBeenSet() const
Definition JobDetail.h:387
const Aws::String & GetJobId() const
Definition JobDetail.h:87
JobDetail & WithJobDefinition(const Aws::String &value)
Definition JobDetail.h:267
void SetShareIdentifier(const Aws::String &value)
Definition JobDetail.h:134
void SetJobQueue(const char *value)
Definition JobDetail.h:106
bool IsCancelledHasBeenSet() const
Definition JobDetail.h:452
void SetJobDefinition(const Aws::String &value)
Definition JobDetail.h:264
JobDetail & WithIsTerminated(bool value)
Definition JobDetail.h:464
void SetTimeout(const JobTimeout &value)
Definition JobDetail.h:352
JobDetail & AddEksAttempts(const EksAttemptDetail &value)
Definition JobDetail.h:431
void SetJobName(Aws::String &&value)
Definition JobDetail.h:76
JobDetail & WithCreatedAt(long long value)
Definition JobDetail.h:205
JobDetail & WithJobName(Aws::String &&value)
Definition JobDetail.h:79
AWS_BATCH_API JobDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetJobQueue() const
Definition JobDetail.h:102
long long GetStartedAt() const
Definition JobDetail.h:226
void SetStatusReason(Aws::String &&value)
Definition JobDetail.h:186
bool PlatformCapabilitiesHasBeenSet() const
Definition JobDetail.h:399
void SetContainer(ContainerDetail &&value)
Definition JobDetail.h:302
JobDetail & AddParameters(const Aws::String &key, const Aws::String &value)
Definition JobDetail.h:284
JobDetail & WithPropagateTags(bool value)
Definition JobDetail.h:389
long long GetCreatedAt() const
Definition JobDetail.h:202
JobDetail & WithEksProperties(const EksPropertiesDetail &value)
Definition JobDetail.h:417
bool ShareIdentifierHasBeenSet() const
Definition JobDetail.h:133
void SetStoppedAt(long long value)
Definition JobDetail.h:240
const Aws::String & GetShareIdentifier() const
Definition JobDetail.h:132
JobDetail & WithRetryStrategy(RetryStrategy &&value)
Definition JobDetail.h:217
JobDetail & AddPlatformCapabilities(PlatformCapability &&value)
Definition JobDetail.h:405
void SetStatus(JobStatus &&value)
Definition JobDetail.h:123
AWS_BATCH_API JobDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetStoppedAt() const
Definition JobDetail.h:238
void SetTimeout(JobTimeout &&value)
Definition JobDetail.h:353
JobDetail & AddTags(const Aws::String &key, const Aws::String &value)
Definition JobDetail.h:368
JobDetail & WithShareIdentifier(const char *value)
Definition JobDetail.h:139
bool EksPropertiesHasBeenSet() const
Definition JobDetail.h:414
JobDetail & AddDependsOn(const JobDependency &value)
Definition JobDetail.h:254
const Aws::String & GetStatusReason() const
Definition JobDetail.h:183
void SetJobQueue(const Aws::String &value)
Definition JobDetail.h:104
bool DependsOnHasBeenSet() const
Definition JobDetail.h:249
void SetEcsProperties(const EcsPropertiesDetail &value)
Definition JobDetail.h:441
const JobTimeout & GetTimeout() const
Definition JobDetail.h:350
JobDetail & WithJobArn(const Aws::String &value)
Definition JobDetail.h:64
JobDetail & AddTags(const char *key, Aws::String &&value)
Definition JobDetail.h:372
JobDetail & WithNodeDetails(const NodeDetails &value)
Definition JobDetail.h:316
JobDetail & AddPlatformCapabilities(const PlatformCapability &value)
Definition JobDetail.h:404
int GetSchedulingPriority() const
Definition JobDetail.h:148
bool NodeDetailsHasBeenSet() const
Definition JobDetail.h:313
void SetDependsOn(const Aws::Vector< JobDependency > &value)
Definition JobDetail.h:250
JobDetail & WithJobName(const Aws::String &value)
Definition JobDetail.h:78
const Aws::Vector< AttemptDetail > & GetAttempts() const
Definition JobDetail.h:158
JobDetail & AddParameters(const char *key, const char *value)
Definition JobDetail.h:290
JobDetail & WithJobQueue(Aws::String &&value)
Definition JobDetail.h:108
const JobStatus & GetStatus() const
Definition JobDetail.h:120
JobDetail & WithContainer(ContainerDetail &&value)
Definition JobDetail.h:304
const Aws::Vector< JobDependency > & GetDependsOn() const
Definition JobDetail.h:248
JobDetail & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition JobDetail.h:283
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition JobDetail.h:281
JobDetail & WithPlatformCapabilities(const Aws::Vector< PlatformCapability > &value)
Definition JobDetail.h:402
JobDetail & WithTimeout(JobTimeout &&value)
Definition JobDetail.h:355
const EksPropertiesDetail & GetEksProperties() const
Definition JobDetail.h:413
void SetJobName(const Aws::String &value)
Definition JobDetail.h:75
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition JobDetail.h:364
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue