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>
21template <
typename RESULT_TYPE>
22class AmazonWebServiceResult;
42 template <
typename AttemptsT = Aws::Vector<ServiceJobAttemptDetail>>
44 m_attemptsHasBeenSet =
true;
45 m_attempts = std::forward<AttemptsT>(value);
47 template <
typename AttemptsT = Aws::Vector<ServiceJobAttemptDetail>>
52 template <
typename AttemptsT = ServiceJobAttemptDetail>
54 m_attemptsHasBeenSet =
true;
55 m_attempts.emplace_back(std::forward<AttemptsT>(value));
67 m_createdAtHasBeenSet =
true;
82 m_isTerminatedHasBeenSet =
true;
83 m_isTerminated = value;
96 template <
typename JobArnT = Aws::String>
98 m_jobArnHasBeenSet =
true;
99 m_jobArn = std::forward<JobArnT>(value);
101 template <
typename JobArnT = Aws::String>
113 template <
typename JobIdT = Aws::String>
115 m_jobIdHasBeenSet =
true;
116 m_jobId = std::forward<JobIdT>(value);
118 template <
typename JobIdT = Aws::String>
120 SetJobId(std::forward<JobIdT>(value));
130 template <
typename JobNameT = Aws::String>
132 m_jobNameHasBeenSet =
true;
133 m_jobName = std::forward<JobNameT>(value);
135 template <
typename JobNameT = Aws::String>
147 template <
typename JobQueueT = Aws::String>
149 m_jobQueueHasBeenSet =
true;
150 m_jobQueue = std::forward<JobQueueT>(value);
152 template <
typename JobQueueT = Aws::String>
164 template <
typename LatestAttemptT = LatestServiceJobAttempt>
166 m_latestAttemptHasBeenSet =
true;
167 m_latestAttempt = std::forward<LatestAttemptT>(value);
169 template <
typename LatestAttemptT = LatestServiceJobAttempt>
182 template <
typename RetryStrategyT = ServiceJobRetryStrategy>
184 m_retryStrategyHasBeenSet =
true;
185 m_retryStrategy = std::forward<RetryStrategyT>(value);
187 template <
typename RetryStrategyT = ServiceJobRetryStrategy>
200 m_schedulingPriorityHasBeenSet =
true;
201 m_schedulingPriority = value;
215 template <
typename ServiceRequestPayloadT = Aws::String>
217 m_serviceRequestPayloadHasBeenSet =
true;
218 m_serviceRequestPayload = std::forward<ServiceRequestPayloadT>(value);
220 template <
typename ServiceRequestPayloadT = Aws::String>
234 m_serviceJobTypeHasBeenSet =
true;
235 m_serviceJobType = value;
249 template <
typename ShareIdentifierT = Aws::String>
251 m_shareIdentifierHasBeenSet =
true;
252 m_shareIdentifier = std::forward<ShareIdentifierT>(value);
254 template <
typename ShareIdentifierT = Aws::String>
268 m_startedAtHasBeenSet =
true;
283 m_statusHasBeenSet =
true;
298 template <
typename StatusReasonT = Aws::String>
300 m_statusReasonHasBeenSet =
true;
301 m_statusReason = std::forward<StatusReasonT>(value);
303 template <
typename StatusReasonT = Aws::String>
317 m_stoppedAtHasBeenSet =
true;
334 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
336 m_tagsHasBeenSet =
true;
337 m_tags = std::forward<TagsT>(value);
339 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
341 SetTags(std::forward<TagsT>(value));
344 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
346 m_tagsHasBeenSet =
true;
347 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
357 template <
typename TimeoutConfigT = ServiceJobTimeout>
359 m_timeoutConfigHasBeenSet =
true;
360 m_timeoutConfig = std::forward<TimeoutConfigT>(value);
362 template <
typename TimeoutConfigT = ServiceJobTimeout>
372 template <
typename RequestIdT = Aws::String>
374 m_requestIdHasBeenSet =
true;
375 m_requestId = std::forward<RequestIdT>(value);
377 template <
typename RequestIdT = Aws::String>
386 long long m_createdAt{0};
388 bool m_isTerminated{
false};
398 LatestServiceJobAttempt m_latestAttempt;
400 ServiceJobRetryStrategy m_retryStrategy;
402 int m_schedulingPriority{0};
410 long long m_startedAt{0};
416 long long m_stoppedAt{0};
420 ServiceJobTimeout m_timeoutConfig;
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;
void SetJobArn(JobArnT &&value)
DescribeServiceJobResult & WithLatestAttempt(LatestAttemptT &&value)
void SetJobQueue(JobQueueT &&value)
ServiceJobStatus GetStatus() const
const ServiceJobTimeout & GetTimeoutConfig() const
DescribeServiceJobResult & WithSchedulingPriority(int value)
DescribeServiceJobResult & WithShareIdentifier(ShareIdentifierT &&value)
void SetSchedulingPriority(int value)
void SetShareIdentifier(ShareIdentifierT &&value)
const Aws::String & GetJobQueue() const
const ServiceJobRetryStrategy & GetRetryStrategy() const
AWS_BATCH_API DescribeServiceJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetStatusReason() const
DescribeServiceJobResult & WithTags(TagsT &&value)
DescribeServiceJobResult & WithIsTerminated(bool value)
long long GetStartedAt() const
DescribeServiceJobResult & WithStatus(ServiceJobStatus value)
DescribeServiceJobResult & WithJobArn(JobArnT &&value)
const Aws::String & GetShareIdentifier() const
ServiceJobType GetServiceJobType() const
const Aws::String & GetServiceRequestPayload() const
const Aws::String & GetJobArn() const
DescribeServiceJobResult & WithRetryStrategy(RetryStrategyT &&value)
int GetSchedulingPriority() const
DescribeServiceJobResult & WithRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetStoppedAt(long long value)
void SetLatestAttempt(LatestAttemptT &&value)
void SetCreatedAt(long long value)
DescribeServiceJobResult & WithCreatedAt(long long value)
const Aws::String & GetJobId() const
void SetStatusReason(StatusReasonT &&value)
DescribeServiceJobResult & WithStoppedAt(long long value)
const LatestServiceJobAttempt & GetLatestAttempt() const
void SetRetryStrategy(RetryStrategyT &&value)
void SetStatus(ServiceJobStatus value)
void SetStartedAt(long long value)
DescribeServiceJobResult & WithAttempts(AttemptsT &&value)
const Aws::String & GetJobName() const
void SetServiceJobType(ServiceJobType value)
void SetJobId(JobIdT &&value)
long long GetStoppedAt() const
long long GetCreatedAt() const
AWS_BATCH_API DescribeServiceJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeServiceJobResult & WithJobId(JobIdT &&value)
void SetRequestId(RequestIdT &&value)
DescribeServiceJobResult & WithJobName(JobNameT &&value)
void SetAttempts(AttemptsT &&value)
void SetTags(TagsT &&value)
DescribeServiceJobResult & WithJobQueue(JobQueueT &&value)
void SetTimeoutConfig(TimeoutConfigT &&value)
DescribeServiceJobResult & WithStatusReason(StatusReasonT &&value)
DescribeServiceJobResult & WithTimeoutConfig(TimeoutConfigT &&value)
DescribeServiceJobResult & WithStartedAt(long long value)
void SetServiceRequestPayload(ServiceRequestPayloadT &&value)
AWS_BATCH_API DescribeServiceJobResult()=default
bool GetIsTerminated() const
DescribeServiceJobResult & AddAttempts(AttemptsT &&value)
DescribeServiceJobResult & WithServiceRequestPayload(ServiceRequestPayloadT &&value)
DescribeServiceJobResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetIsTerminated(bool value)
void SetJobName(JobNameT &&value)
const Aws::Vector< ServiceJobAttemptDetail > & GetAttempts() const
DescribeServiceJobResult & WithServiceJobType(ServiceJobType value)
const Aws::String & GetRequestId() 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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue