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/ServiceJobCapacityUsageDetail.h>
11#include <aws/batch/model/ServiceJobRetryStrategy.h>
12#include <aws/batch/model/ServiceJobStatus.h>
13#include <aws/batch/model/ServiceJobTimeout.h>
14#include <aws/batch/model/ServiceJobType.h>
15#include <aws/core/http/HttpResponse.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
23template <
typename RESULT_TYPE>
24class AmazonWebServiceResult;
44 template <
typename AttemptsT = Aws::Vector<ServiceJobAttemptDetail>>
46 m_attemptsHasBeenSet =
true;
47 m_attempts = std::forward<AttemptsT>(value);
49 template <
typename AttemptsT = Aws::Vector<ServiceJobAttemptDetail>>
54 template <
typename AttemptsT = ServiceJobAttemptDetail>
56 m_attemptsHasBeenSet =
true;
57 m_attempts.emplace_back(std::forward<AttemptsT>(value));
69 template <
typename CapacityUsageT = Aws::Vector<ServiceJobCapacityUsageDetail>>
71 m_capacityUsageHasBeenSet =
true;
72 m_capacityUsage = std::forward<CapacityUsageT>(value);
74 template <
typename CapacityUsageT = Aws::Vector<ServiceJobCapacityUsageDetail>>
79 template <
typename CapacityUsageT = ServiceJobCapacityUsageDetail>
81 m_capacityUsageHasBeenSet =
true;
82 m_capacityUsage.emplace_back(std::forward<CapacityUsageT>(value));
94 m_createdAtHasBeenSet =
true;
109 m_isTerminatedHasBeenSet =
true;
110 m_isTerminated = value;
123 template <
typename JobArnT = Aws::String>
125 m_jobArnHasBeenSet =
true;
126 m_jobArn = std::forward<JobArnT>(value);
128 template <
typename JobArnT = Aws::String>
140 template <
typename JobIdT = Aws::String>
142 m_jobIdHasBeenSet =
true;
143 m_jobId = std::forward<JobIdT>(value);
145 template <
typename JobIdT = Aws::String>
147 SetJobId(std::forward<JobIdT>(value));
157 template <
typename JobNameT = Aws::String>
159 m_jobNameHasBeenSet =
true;
160 m_jobName = std::forward<JobNameT>(value);
162 template <
typename JobNameT = Aws::String>
174 template <
typename JobQueueT = Aws::String>
176 m_jobQueueHasBeenSet =
true;
177 m_jobQueue = std::forward<JobQueueT>(value);
179 template <
typename JobQueueT = Aws::String>
191 template <
typename LatestAttemptT = LatestServiceJobAttempt>
193 m_latestAttemptHasBeenSet =
true;
194 m_latestAttempt = std::forward<LatestAttemptT>(value);
196 template <
typename LatestAttemptT = LatestServiceJobAttempt>
209 template <
typename RetryStrategyT = ServiceJobRetryStrategy>
211 m_retryStrategyHasBeenSet =
true;
212 m_retryStrategy = std::forward<RetryStrategyT>(value);
214 template <
typename RetryStrategyT = ServiceJobRetryStrategy>
229 m_scheduledAtHasBeenSet =
true;
230 m_scheduledAt = value;
244 m_schedulingPriorityHasBeenSet =
true;
245 m_schedulingPriority = value;
259 template <
typename ServiceRequestPayloadT = Aws::String>
261 m_serviceRequestPayloadHasBeenSet =
true;
262 m_serviceRequestPayload = std::forward<ServiceRequestPayloadT>(value);
264 template <
typename ServiceRequestPayloadT = Aws::String>
278 m_serviceJobTypeHasBeenSet =
true;
279 m_serviceJobType = value;
293 template <
typename ShareIdentifierT = Aws::String>
295 m_shareIdentifierHasBeenSet =
true;
296 m_shareIdentifier = std::forward<ShareIdentifierT>(value);
298 template <
typename ShareIdentifierT = Aws::String>
312 m_startedAtHasBeenSet =
true;
327 m_statusHasBeenSet =
true;
342 template <
typename StatusReasonT = Aws::String>
344 m_statusReasonHasBeenSet =
true;
345 m_statusReason = std::forward<StatusReasonT>(value);
347 template <
typename StatusReasonT = Aws::String>
361 m_stoppedAtHasBeenSet =
true;
378 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
380 m_tagsHasBeenSet =
true;
381 m_tags = std::forward<TagsT>(value);
383 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
385 SetTags(std::forward<TagsT>(value));
388 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
390 m_tagsHasBeenSet =
true;
391 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
401 template <
typename TimeoutConfigT = ServiceJobTimeout>
403 m_timeoutConfigHasBeenSet =
true;
404 m_timeoutConfig = std::forward<TimeoutConfigT>(value);
406 template <
typename TimeoutConfigT = ServiceJobTimeout>
416 template <
typename RequestIdT = Aws::String>
418 m_requestIdHasBeenSet =
true;
419 m_requestId = std::forward<RequestIdT>(value);
421 template <
typename RequestIdT = Aws::String>
434 long long m_createdAt{0};
436 bool m_isTerminated{
false};
446 LatestServiceJobAttempt m_latestAttempt;
448 ServiceJobRetryStrategy m_retryStrategy;
450 long long m_scheduledAt{0};
452 int m_schedulingPriority{0};
460 long long m_startedAt{0};
466 long long m_stoppedAt{0};
470 ServiceJobTimeout m_timeoutConfig;
474 bool m_attemptsHasBeenSet =
false;
475 bool m_capacityUsageHasBeenSet =
false;
476 bool m_createdAtHasBeenSet =
false;
477 bool m_isTerminatedHasBeenSet =
false;
478 bool m_jobArnHasBeenSet =
false;
479 bool m_jobIdHasBeenSet =
false;
480 bool m_jobNameHasBeenSet =
false;
481 bool m_jobQueueHasBeenSet =
false;
482 bool m_latestAttemptHasBeenSet =
false;
483 bool m_retryStrategyHasBeenSet =
false;
484 bool m_scheduledAtHasBeenSet =
false;
485 bool m_schedulingPriorityHasBeenSet =
false;
486 bool m_serviceRequestPayloadHasBeenSet =
false;
487 bool m_serviceJobTypeHasBeenSet =
false;
488 bool m_shareIdentifierHasBeenSet =
false;
489 bool m_startedAtHasBeenSet =
false;
490 bool m_statusHasBeenSet =
false;
491 bool m_statusReasonHasBeenSet =
false;
492 bool m_stoppedAtHasBeenSet =
false;
493 bool m_tagsHasBeenSet =
false;
494 bool m_timeoutConfigHasBeenSet =
false;
495 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
void SetScheduledAt(long long value)
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)
DescribeServiceJobResult & WithScheduledAt(long long 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 Aws::Vector< ServiceJobCapacityUsageDetail > & GetCapacityUsage() const
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
void SetCapacityUsage(CapacityUsageT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() 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)
long long GetScheduledAt() const
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 & AddCapacityUsage(CapacityUsageT &&value)
DescribeServiceJobResult & WithStartedAt(long long value)
void SetServiceRequestPayload(ServiceRequestPayloadT &&value)
AWS_BATCH_API DescribeServiceJobResult()=default
bool GetIsTerminated() const
DescribeServiceJobResult & AddAttempts(AttemptsT &&value)
DescribeServiceJobResult & WithCapacityUsage(CapacityUsageT &&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