7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/batch/model/LatestServiceJobAttempt.h>
11#include <aws/batch/model/ServiceJobRetryStrategy.h>
12#include <aws/batch/model/ServiceJobType.h>
13#include <aws/batch/model/ServiceJobStatus.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/batch/model/ServiceJobTimeout.h>
16#include <aws/batch/model/ServiceJobAttemptDetail.h>
21template<
typename RESULT_TYPE>
22class AmazonWebServiceResult;
48 template<
typename AttemptsT = Aws::Vector<ServiceJobAttemptDetail>>
49 void SetAttempts(AttemptsT&& value) { m_attemptsHasBeenSet =
true; m_attempts = std::forward<AttemptsT>(value); }
50 template<
typename AttemptsT = Aws::Vector<ServiceJobAttemptDetail>>
52 template<
typename AttemptsT = ServiceJobAttemptDetail>
62 inline void SetCreatedAt(
long long value) { m_createdAtHasBeenSet =
true; m_createdAt = value; }
71 inline void SetIsTerminated(
bool value) { m_isTerminatedHasBeenSet =
true; m_isTerminated = value; }
80 template<
typename JobArnT = Aws::String>
81 void SetJobArn(JobArnT&& value) { m_jobArnHasBeenSet =
true; m_jobArn = std::forward<JobArnT>(value); }
82 template<
typename JobArnT = Aws::String>
91 template<
typename JobIdT = Aws::String>
92 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet =
true; m_jobId = std::forward<JobIdT>(value); }
93 template<
typename JobIdT = Aws::String>
102 template<
typename JobNameT = Aws::String>
103 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet =
true; m_jobName = std::forward<JobNameT>(value); }
104 template<
typename JobNameT = Aws::String>
113 template<
typename JobQueueT = Aws::String>
114 void SetJobQueue(JobQueueT&& value) { m_jobQueueHasBeenSet =
true; m_jobQueue = std::forward<JobQueueT>(value); }
115 template<
typename JobQueueT = Aws::String>
124 template<
typename LatestAttemptT = LatestServiceJobAttempt>
125 void SetLatestAttempt(LatestAttemptT&& value) { m_latestAttemptHasBeenSet =
true; m_latestAttempt = std::forward<LatestAttemptT>(value); }
126 template<
typename LatestAttemptT = LatestServiceJobAttempt>
136 template<
typename RetryStrategyT = ServiceJobRetryStrategy>
137 void SetRetryStrategy(RetryStrategyT&& value) { m_retryStrategyHasBeenSet =
true; m_retryStrategy = std::forward<RetryStrategyT>(value); }
138 template<
typename RetryStrategyT = ServiceJobRetryStrategy>
147 inline void SetSchedulingPriority(
int value) { m_schedulingPriorityHasBeenSet =
true; m_schedulingPriority = value; }
157 template<
typename ServiceRequestPayloadT = Aws::String>
158 void SetServiceRequestPayload(ServiceRequestPayloadT&& value) { m_serviceRequestPayloadHasBeenSet =
true; m_serviceRequestPayload = std::forward<ServiceRequestPayloadT>(value); }
159 template<
typename ServiceRequestPayloadT = Aws::String>
179 template<
typename ShareIdentifierT = Aws::String>
180 void SetShareIdentifier(ShareIdentifierT&& value) { m_shareIdentifierHasBeenSet =
true; m_shareIdentifier = std::forward<ShareIdentifierT>(value); }
181 template<
typename ShareIdentifierT = Aws::String>
191 inline void SetStartedAt(
long long value) { m_startedAtHasBeenSet =
true; m_startedAt = value; }
210 template<
typename StatusReasonT = Aws::String>
211 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet =
true; m_statusReason = std::forward<StatusReasonT>(value); }
212 template<
typename StatusReasonT = Aws::String>
222 inline void SetStoppedAt(
long long value) { m_stoppedAtHasBeenSet =
true; m_stoppedAt = value; }
234 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
235 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
236 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
238 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
240 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
249 template<
typename TimeoutConfigT = ServiceJobTimeout>
250 void SetTimeoutConfig(TimeoutConfigT&& value) { m_timeoutConfigHasBeenSet =
true; m_timeoutConfig = std::forward<TimeoutConfigT>(value); }
251 template<
typename TimeoutConfigT = ServiceJobTimeout>
258 template<
typename RequestIdT = Aws::String>
259 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
260 template<
typename RequestIdT = Aws::String>
266 bool m_attemptsHasBeenSet =
false;
268 long long m_createdAt{0};
269 bool m_createdAtHasBeenSet =
false;
271 bool m_isTerminated{
false};
272 bool m_isTerminatedHasBeenSet =
false;
275 bool m_jobArnHasBeenSet =
false;
278 bool m_jobIdHasBeenSet =
false;
281 bool m_jobNameHasBeenSet =
false;
284 bool m_jobQueueHasBeenSet =
false;
286 LatestServiceJobAttempt m_latestAttempt;
287 bool m_latestAttemptHasBeenSet =
false;
289 ServiceJobRetryStrategy m_retryStrategy;
290 bool m_retryStrategyHasBeenSet =
false;
292 int m_schedulingPriority{0};
293 bool m_schedulingPriorityHasBeenSet =
false;
296 bool m_serviceRequestPayloadHasBeenSet =
false;
299 bool m_serviceJobTypeHasBeenSet =
false;
302 bool m_shareIdentifierHasBeenSet =
false;
304 long long m_startedAt{0};
305 bool m_startedAtHasBeenSet =
false;
308 bool m_statusHasBeenSet =
false;
311 bool m_statusReasonHasBeenSet =
false;
313 long long m_stoppedAt{0};
314 bool m_stoppedAtHasBeenSet =
false;
317 bool m_tagsHasBeenSet =
false;
319 ServiceJobTimeout m_timeoutConfig;
320 bool m_timeoutConfigHasBeenSet =
false;
323 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