AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeServiceJobResult.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/LatestServiceJobAttempt.h>
9#include <aws/batch/model/ServiceJobAttemptDetail.h>
10#include <aws/batch/model/ServiceJobRetryStrategy.h>
11#include <aws/batch/model/ServiceJobStatus.h>
12#include <aws/batch/model/ServiceJobTimeout.h>
13#include <aws/batch/model/ServiceJobType.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace Batch {
30namespace Model {
32 public:
33 AWS_BATCH_API DescribeServiceJobResult() = default;
36
38
41 inline const Aws::Vector<ServiceJobAttemptDetail>& GetAttempts() const { return m_attempts; }
42 template <typename AttemptsT = Aws::Vector<ServiceJobAttemptDetail>>
43 void SetAttempts(AttemptsT&& value) {
44 m_attemptsHasBeenSet = true;
45 m_attempts = std::forward<AttemptsT>(value);
46 }
47 template <typename AttemptsT = Aws::Vector<ServiceJobAttemptDetail>>
49 SetAttempts(std::forward<AttemptsT>(value));
50 return *this;
51 }
52 template <typename AttemptsT = ServiceJobAttemptDetail>
54 m_attemptsHasBeenSet = true;
55 m_attempts.emplace_back(std::forward<AttemptsT>(value));
56 return *this;
57 }
59
61
65 inline long long GetCreatedAt() const { return m_createdAt; }
66 inline void SetCreatedAt(long long value) {
67 m_createdAtHasBeenSet = true;
68 m_createdAt = value;
69 }
70 inline DescribeServiceJobResult& WithCreatedAt(long long value) {
71 SetCreatedAt(value);
72 return *this;
73 }
75
77
80 inline bool GetIsTerminated() const { return m_isTerminated; }
81 inline void SetIsTerminated(bool value) {
82 m_isTerminatedHasBeenSet = true;
83 m_isTerminated = value;
84 }
86 SetIsTerminated(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetJobArn() const { return m_jobArn; }
96 template <typename JobArnT = Aws::String>
97 void SetJobArn(JobArnT&& value) {
98 m_jobArnHasBeenSet = true;
99 m_jobArn = std::forward<JobArnT>(value);
100 }
101 template <typename JobArnT = Aws::String>
103 SetJobArn(std::forward<JobArnT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetJobId() const { return m_jobId; }
113 template <typename JobIdT = Aws::String>
114 void SetJobId(JobIdT&& value) {
115 m_jobIdHasBeenSet = true;
116 m_jobId = std::forward<JobIdT>(value);
117 }
118 template <typename JobIdT = Aws::String>
120 SetJobId(std::forward<JobIdT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetJobName() const { return m_jobName; }
130 template <typename JobNameT = Aws::String>
131 void SetJobName(JobNameT&& value) {
132 m_jobNameHasBeenSet = true;
133 m_jobName = std::forward<JobNameT>(value);
134 }
135 template <typename JobNameT = Aws::String>
137 SetJobName(std::forward<JobNameT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetJobQueue() const { return m_jobQueue; }
147 template <typename JobQueueT = Aws::String>
148 void SetJobQueue(JobQueueT&& value) {
149 m_jobQueueHasBeenSet = true;
150 m_jobQueue = std::forward<JobQueueT>(value);
151 }
152 template <typename JobQueueT = Aws::String>
154 SetJobQueue(std::forward<JobQueueT>(value));
155 return *this;
156 }
158
160
163 inline const LatestServiceJobAttempt& GetLatestAttempt() const { return m_latestAttempt; }
164 template <typename LatestAttemptT = LatestServiceJobAttempt>
165 void SetLatestAttempt(LatestAttemptT&& value) {
166 m_latestAttemptHasBeenSet = true;
167 m_latestAttempt = std::forward<LatestAttemptT>(value);
168 }
169 template <typename LatestAttemptT = LatestServiceJobAttempt>
171 SetLatestAttempt(std::forward<LatestAttemptT>(value));
172 return *this;
173 }
175
177
181 inline const ServiceJobRetryStrategy& GetRetryStrategy() const { return m_retryStrategy; }
182 template <typename RetryStrategyT = ServiceJobRetryStrategy>
183 void SetRetryStrategy(RetryStrategyT&& value) {
184 m_retryStrategyHasBeenSet = true;
185 m_retryStrategy = std::forward<RetryStrategyT>(value);
186 }
187 template <typename RetryStrategyT = ServiceJobRetryStrategy>
189 SetRetryStrategy(std::forward<RetryStrategyT>(value));
190 return *this;
191 }
193
195
198 inline int GetSchedulingPriority() const { return m_schedulingPriority; }
199 inline void SetSchedulingPriority(int value) {
200 m_schedulingPriorityHasBeenSet = true;
201 m_schedulingPriority = value;
202 }
205 return *this;
206 }
208
210
214 inline const Aws::String& GetServiceRequestPayload() const { return m_serviceRequestPayload; }
215 template <typename ServiceRequestPayloadT = Aws::String>
216 void SetServiceRequestPayload(ServiceRequestPayloadT&& value) {
217 m_serviceRequestPayloadHasBeenSet = true;
218 m_serviceRequestPayload = std::forward<ServiceRequestPayloadT>(value);
219 }
220 template <typename ServiceRequestPayloadT = Aws::String>
221 DescribeServiceJobResult& WithServiceRequestPayload(ServiceRequestPayloadT&& value) {
222 SetServiceRequestPayload(std::forward<ServiceRequestPayloadT>(value));
223 return *this;
224 }
226
228
232 inline ServiceJobType GetServiceJobType() const { return m_serviceJobType; }
234 m_serviceJobTypeHasBeenSet = true;
235 m_serviceJobType = value;
236 }
238 SetServiceJobType(value);
239 return *this;
240 }
242
244
248 inline const Aws::String& GetShareIdentifier() const { return m_shareIdentifier; }
249 template <typename ShareIdentifierT = Aws::String>
250 void SetShareIdentifier(ShareIdentifierT&& value) {
251 m_shareIdentifierHasBeenSet = true;
252 m_shareIdentifier = std::forward<ShareIdentifierT>(value);
253 }
254 template <typename ShareIdentifierT = Aws::String>
256 SetShareIdentifier(std::forward<ShareIdentifierT>(value));
257 return *this;
258 }
260
262
266 inline long long GetStartedAt() const { return m_startedAt; }
267 inline void SetStartedAt(long long value) {
268 m_startedAtHasBeenSet = true;
269 m_startedAt = value;
270 }
271 inline DescribeServiceJobResult& WithStartedAt(long long value) {
272 SetStartedAt(value);
273 return *this;
274 }
276
278
281 inline ServiceJobStatus GetStatus() const { return m_status; }
282 inline void SetStatus(ServiceJobStatus value) {
283 m_statusHasBeenSet = true;
284 m_status = value;
285 }
287 SetStatus(value);
288 return *this;
289 }
291
293
297 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
298 template <typename StatusReasonT = Aws::String>
299 void SetStatusReason(StatusReasonT&& value) {
300 m_statusReasonHasBeenSet = true;
301 m_statusReason = std::forward<StatusReasonT>(value);
302 }
303 template <typename StatusReasonT = Aws::String>
305 SetStatusReason(std::forward<StatusReasonT>(value));
306 return *this;
307 }
309
311
315 inline long long GetStoppedAt() const { return m_stoppedAt; }
316 inline void SetStoppedAt(long long value) {
317 m_stoppedAtHasBeenSet = true;
318 m_stoppedAt = value;
319 }
320 inline DescribeServiceJobResult& WithStoppedAt(long long value) {
321 SetStoppedAt(value);
322 return *this;
323 }
325
327
333 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
334 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
335 void SetTags(TagsT&& value) {
336 m_tagsHasBeenSet = true;
337 m_tags = std::forward<TagsT>(value);
338 }
339 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
341 SetTags(std::forward<TagsT>(value));
342 return *this;
343 }
344 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
345 DescribeServiceJobResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
346 m_tagsHasBeenSet = true;
347 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
348 return *this;
349 }
351
353
356 inline const ServiceJobTimeout& GetTimeoutConfig() const { return m_timeoutConfig; }
357 template <typename TimeoutConfigT = ServiceJobTimeout>
358 void SetTimeoutConfig(TimeoutConfigT&& value) {
359 m_timeoutConfigHasBeenSet = true;
360 m_timeoutConfig = std::forward<TimeoutConfigT>(value);
361 }
362 template <typename TimeoutConfigT = ServiceJobTimeout>
364 SetTimeoutConfig(std::forward<TimeoutConfigT>(value));
365 return *this;
366 }
368
370
371 inline const Aws::String& GetRequestId() const { return m_requestId; }
372 template <typename RequestIdT = Aws::String>
373 void SetRequestId(RequestIdT&& value) {
374 m_requestIdHasBeenSet = true;
375 m_requestId = std::forward<RequestIdT>(value);
376 }
377 template <typename RequestIdT = Aws::String>
379 SetRequestId(std::forward<RequestIdT>(value));
380 return *this;
381 }
383 private:
385
386 long long m_createdAt{0};
387
388 bool m_isTerminated{false};
389
390 Aws::String m_jobArn;
391
392 Aws::String m_jobId;
393
394 Aws::String m_jobName;
395
396 Aws::String m_jobQueue;
397
398 LatestServiceJobAttempt m_latestAttempt;
399
400 ServiceJobRetryStrategy m_retryStrategy;
401
402 int m_schedulingPriority{0};
403
404 Aws::String m_serviceRequestPayload;
405
406 ServiceJobType m_serviceJobType{ServiceJobType::NOT_SET};
407
408 Aws::String m_shareIdentifier;
409
410 long long m_startedAt{0};
411
413
414 Aws::String m_statusReason;
415
416 long long m_stoppedAt{0};
417
419
420 ServiceJobTimeout m_timeoutConfig;
421
422 Aws::String m_requestId;
423 bool m_attemptsHasBeenSet = false;
424 bool m_createdAtHasBeenSet = false;
425 bool m_isTerminatedHasBeenSet = false;
426 bool m_jobArnHasBeenSet = false;
427 bool m_jobIdHasBeenSet = false;
428 bool m_jobNameHasBeenSet = false;
429 bool m_jobQueueHasBeenSet = false;
430 bool m_latestAttemptHasBeenSet = false;
431 bool m_retryStrategyHasBeenSet = false;
432 bool m_schedulingPriorityHasBeenSet = false;
433 bool m_serviceRequestPayloadHasBeenSet = false;
434 bool m_serviceJobTypeHasBeenSet = false;
435 bool m_shareIdentifierHasBeenSet = false;
436 bool m_startedAtHasBeenSet = false;
437 bool m_statusHasBeenSet = false;
438 bool m_statusReasonHasBeenSet = false;
439 bool m_stoppedAtHasBeenSet = false;
440 bool m_tagsHasBeenSet = false;
441 bool m_timeoutConfigHasBeenSet = false;
442 bool m_requestIdHasBeenSet = false;
443};
444
445} // namespace Model
446} // namespace Batch
447} // namespace Aws
DescribeServiceJobResult & WithLatestAttempt(LatestAttemptT &&value)
const ServiceJobTimeout & GetTimeoutConfig() const
DescribeServiceJobResult & WithSchedulingPriority(int value)
DescribeServiceJobResult & WithShareIdentifier(ShareIdentifierT &&value)
const ServiceJobRetryStrategy & GetRetryStrategy() const
AWS_BATCH_API DescribeServiceJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeServiceJobResult & WithTags(TagsT &&value)
DescribeServiceJobResult & WithIsTerminated(bool value)
DescribeServiceJobResult & WithStatus(ServiceJobStatus value)
DescribeServiceJobResult & WithJobArn(JobArnT &&value)
DescribeServiceJobResult & WithRetryStrategy(RetryStrategyT &&value)
DescribeServiceJobResult & WithRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DescribeServiceJobResult & WithCreatedAt(long long value)
DescribeServiceJobResult & WithStoppedAt(long long value)
const LatestServiceJobAttempt & GetLatestAttempt() const
DescribeServiceJobResult & WithAttempts(AttemptsT &&value)
AWS_BATCH_API DescribeServiceJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeServiceJobResult & WithJobId(JobIdT &&value)
DescribeServiceJobResult & WithJobName(JobNameT &&value)
DescribeServiceJobResult & WithJobQueue(JobQueueT &&value)
DescribeServiceJobResult & WithStatusReason(StatusReasonT &&value)
DescribeServiceJobResult & WithTimeoutConfig(TimeoutConfigT &&value)
DescribeServiceJobResult & WithStartedAt(long long value)
void SetServiceRequestPayload(ServiceRequestPayloadT &&value)
AWS_BATCH_API DescribeServiceJobResult()=default
DescribeServiceJobResult & AddAttempts(AttemptsT &&value)
DescribeServiceJobResult & WithServiceRequestPayload(ServiceRequestPayloadT &&value)
DescribeServiceJobResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< ServiceJobAttemptDetail > & GetAttempts() const
DescribeServiceJobResult & WithServiceJobType(ServiceJobType 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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue