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/ServiceJobPreemptionConfiguration.h>
12#include <aws/batch/model/ServiceJobPreemptionSummary.h>
13#include <aws/batch/model/ServiceJobRetryStrategy.h>
14#include <aws/batch/model/ServiceJobStatus.h>
15#include <aws/batch/model/ServiceJobTimeout.h>
16#include <aws/batch/model/ServiceJobType.h>
17#include <aws/core/http/HttpResponse.h>
18#include <aws/core/utils/memory/stl/AWSMap.h>
19#include <aws/core/utils/memory/stl/AWSString.h>
20#include <aws/core/utils/memory/stl/AWSVector.h>
25template <
typename RESULT_TYPE>
26class AmazonWebServiceResult;
46 template <
typename AttemptsT = Aws::Vector<ServiceJobAttemptDetail>>
48 m_attemptsHasBeenSet =
true;
49 m_attempts = std::forward<AttemptsT>(value);
51 template <
typename AttemptsT = Aws::Vector<ServiceJobAttemptDetail>>
56 template <
typename AttemptsT = ServiceJobAttemptDetail>
58 m_attemptsHasBeenSet =
true;
59 m_attempts.emplace_back(std::forward<AttemptsT>(value));
71 template <
typename CapacityUsageT = Aws::Vector<ServiceJobCapacityUsageDetail>>
73 m_capacityUsageHasBeenSet =
true;
74 m_capacityUsage = std::forward<CapacityUsageT>(value);
76 template <
typename CapacityUsageT = Aws::Vector<ServiceJobCapacityUsageDetail>>
81 template <
typename CapacityUsageT = ServiceJobCapacityUsageDetail>
83 m_capacityUsageHasBeenSet =
true;
84 m_capacityUsage.emplace_back(std::forward<CapacityUsageT>(value));
96 m_createdAtHasBeenSet =
true;
111 m_isTerminatedHasBeenSet =
true;
112 m_isTerminated = value;
125 template <
typename JobArnT = Aws::String>
127 m_jobArnHasBeenSet =
true;
128 m_jobArn = std::forward<JobArnT>(value);
130 template <
typename JobArnT = Aws::String>
142 template <
typename JobIdT = Aws::String>
144 m_jobIdHasBeenSet =
true;
145 m_jobId = std::forward<JobIdT>(value);
147 template <
typename JobIdT = Aws::String>
149 SetJobId(std::forward<JobIdT>(value));
159 template <
typename JobNameT = Aws::String>
161 m_jobNameHasBeenSet =
true;
162 m_jobName = std::forward<JobNameT>(value);
164 template <
typename JobNameT = Aws::String>
176 template <
typename JobQueueT = Aws::String>
178 m_jobQueueHasBeenSet =
true;
179 m_jobQueue = std::forward<JobQueueT>(value);
181 template <
typename JobQueueT = Aws::String>
193 template <
typename LatestAttemptT = LatestServiceJobAttempt>
195 m_latestAttemptHasBeenSet =
true;
196 m_latestAttempt = std::forward<LatestAttemptT>(value);
198 template <
typename LatestAttemptT = LatestServiceJobAttempt>
211 template <
typename RetryStrategyT = ServiceJobRetryStrategy>
213 m_retryStrategyHasBeenSet =
true;
214 m_retryStrategy = std::forward<RetryStrategyT>(value);
216 template <
typename RetryStrategyT = ServiceJobRetryStrategy>
231 m_scheduledAtHasBeenSet =
true;
232 m_scheduledAt = value;
246 m_schedulingPriorityHasBeenSet =
true;
247 m_schedulingPriority = value;
261 template <
typename ServiceRequestPayloadT = Aws::String>
263 m_serviceRequestPayloadHasBeenSet =
true;
264 m_serviceRequestPayload = std::forward<ServiceRequestPayloadT>(value);
266 template <
typename ServiceRequestPayloadT = Aws::String>
280 m_serviceJobTypeHasBeenSet =
true;
281 m_serviceJobType = value;
295 template <
typename ShareIdentifierT = Aws::String>
297 m_shareIdentifierHasBeenSet =
true;
298 m_shareIdentifier = std::forward<ShareIdentifierT>(value);
300 template <
typename ShareIdentifierT = Aws::String>
312 template <
typename QuotaShareNameT = Aws::String>
314 m_quotaShareNameHasBeenSet =
true;
315 m_quotaShareName = std::forward<QuotaShareNameT>(value);
317 template <
typename QuotaShareNameT = Aws::String>
329 template <
typename PreemptionConfigurationT = ServiceJobPreemptionConfiguration>
331 m_preemptionConfigurationHasBeenSet =
true;
332 m_preemptionConfiguration = std::forward<PreemptionConfigurationT>(value);
334 template <
typename PreemptionConfigurationT = ServiceJobPreemptionConfiguration>
347 template <
typename PreemptionSummaryT = ServiceJobPreemptionSummary>
349 m_preemptionSummaryHasBeenSet =
true;
350 m_preemptionSummary = std::forward<PreemptionSummaryT>(value);
352 template <
typename PreemptionSummaryT = ServiceJobPreemptionSummary>
366 m_startedAtHasBeenSet =
true;
381 m_statusHasBeenSet =
true;
396 template <
typename StatusReasonT = Aws::String>
398 m_statusReasonHasBeenSet =
true;
399 m_statusReason = std::forward<StatusReasonT>(value);
401 template <
typename StatusReasonT = Aws::String>
415 m_stoppedAtHasBeenSet =
true;
432 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
434 m_tagsHasBeenSet =
true;
435 m_tags = std::forward<TagsT>(value);
437 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
439 SetTags(std::forward<TagsT>(value));
442 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
444 m_tagsHasBeenSet =
true;
445 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
455 template <
typename TimeoutConfigT = ServiceJobTimeout>
457 m_timeoutConfigHasBeenSet =
true;
458 m_timeoutConfig = std::forward<TimeoutConfigT>(value);
460 template <
typename TimeoutConfigT = ServiceJobTimeout>
470 template <
typename RequestIdT = Aws::String>
472 m_requestIdHasBeenSet =
true;
473 m_requestId = std::forward<RequestIdT>(value);
475 template <
typename RequestIdT = Aws::String>
488 long long m_createdAt{0};
490 bool m_isTerminated{
false};
500 LatestServiceJobAttempt m_latestAttempt;
502 ServiceJobRetryStrategy m_retryStrategy;
504 long long m_scheduledAt{0};
506 int m_schedulingPriority{0};
516 ServiceJobPreemptionConfiguration m_preemptionConfiguration;
518 ServiceJobPreemptionSummary m_preemptionSummary;
520 long long m_startedAt{0};
526 long long m_stoppedAt{0};
530 ServiceJobTimeout m_timeoutConfig;
534 bool m_attemptsHasBeenSet =
false;
535 bool m_capacityUsageHasBeenSet =
false;
536 bool m_createdAtHasBeenSet =
false;
537 bool m_isTerminatedHasBeenSet =
false;
538 bool m_jobArnHasBeenSet =
false;
539 bool m_jobIdHasBeenSet =
false;
540 bool m_jobNameHasBeenSet =
false;
541 bool m_jobQueueHasBeenSet =
false;
542 bool m_latestAttemptHasBeenSet =
false;
543 bool m_retryStrategyHasBeenSet =
false;
544 bool m_scheduledAtHasBeenSet =
false;
545 bool m_schedulingPriorityHasBeenSet =
false;
546 bool m_serviceRequestPayloadHasBeenSet =
false;
547 bool m_serviceJobTypeHasBeenSet =
false;
548 bool m_shareIdentifierHasBeenSet =
false;
549 bool m_quotaShareNameHasBeenSet =
false;
550 bool m_preemptionConfigurationHasBeenSet =
false;
551 bool m_preemptionSummaryHasBeenSet =
false;
552 bool m_startedAtHasBeenSet =
false;
553 bool m_statusHasBeenSet =
false;
554 bool m_statusReasonHasBeenSet =
false;
555 bool m_stoppedAtHasBeenSet =
false;
556 bool m_tagsHasBeenSet =
false;
557 bool m_timeoutConfigHasBeenSet =
false;
558 bool m_requestIdHasBeenSet =
false;
void SetJobArn(JobArnT &&value)
DescribeServiceJobResult & WithLatestAttempt(LatestAttemptT &&value)
void SetJobQueue(JobQueueT &&value)
ServiceJobStatus GetStatus() const
const ServiceJobTimeout & GetTimeoutConfig() const
const Aws::String & GetQuotaShareName() 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 & WithPreemptionConfiguration(PreemptionConfigurationT &&value)
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
void SetQuotaShareName(QuotaShareNameT &&value)
ServiceJobType GetServiceJobType() const
const Aws::String & GetServiceRequestPayload() const
const ServiceJobPreemptionSummary & GetPreemptionSummary() const
DescribeServiceJobResult & WithQuotaShareName(QuotaShareNameT &&value)
const ServiceJobPreemptionConfiguration & GetPreemptionConfiguration() const
const Aws::String & GetJobArn() const
DescribeServiceJobResult & WithRetryStrategy(RetryStrategyT &&value)
int GetSchedulingPriority() const
void SetPreemptionConfiguration(PreemptionConfigurationT &&value)
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
void SetPreemptionSummary(PreemptionSummaryT &&value)
const LatestServiceJobAttempt & GetLatestAttempt() const
DescribeServiceJobResult & WithPreemptionSummary(PreemptionSummaryT &&value)
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