7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/BatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/batch/model/ServiceJobRetryStrategy.h>
11#include <aws/batch/model/ServiceJobType.h>
12#include <aws/batch/model/ServiceJobTimeout.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/UUID.h>
48 template<
typename JobNameT = Aws::String>
49 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet =
true; m_jobName = std::forward<JobNameT>(value); }
50 template<
typename JobNameT = Aws::String>
62 template<
typename JobQueueT = Aws::String>
63 void SetJobQueue(JobQueueT&& value) { m_jobQueueHasBeenSet =
true; m_jobQueue = std::forward<JobQueueT>(value); }
64 template<
typename JobQueueT = Aws::String>
75 template<
typename RetryStrategyT = ServiceJobRetryStrategy>
76 void SetRetryStrategy(RetryStrategyT&& value) { m_retryStrategyHasBeenSet =
true; m_retryStrategy = std::forward<RetryStrategyT>(value); }
77 template<
typename RetryStrategyT = ServiceJobRetryStrategy>
88 inline void SetSchedulingPriority(
int value) { m_schedulingPriorityHasBeenSet =
true; m_schedulingPriority = value; }
99 template<
typename ServiceRequestPayloadT = Aws::String>
100 void SetServiceRequestPayload(ServiceRequestPayloadT&& value) { m_serviceRequestPayloadHasBeenSet =
true; m_serviceRequestPayload = std::forward<ServiceRequestPayloadT>(value); }
101 template<
typename ServiceRequestPayloadT = Aws::String>
124 template<
typename ShareIdentifierT = Aws::String>
125 void SetShareIdentifier(ShareIdentifierT&& value) { m_shareIdentifierHasBeenSet =
true; m_shareIdentifier = std::forward<ShareIdentifierT>(value); }
126 template<
typename ShareIdentifierT = Aws::String>
137 template<
typename TimeoutConfigT = ServiceJobTimeout>
138 void SetTimeoutConfig(TimeoutConfigT&& value) { m_timeoutConfigHasBeenSet =
true; m_timeoutConfig = std::forward<TimeoutConfigT>(value); }
139 template<
typename TimeoutConfigT = ServiceJobTimeout>
152 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
154 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
156 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
158 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
171 template<
typename ClientTokenT = Aws::String>
172 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
173 template<
typename ClientTokenT = Aws::String>
179 bool m_jobNameHasBeenSet =
false;
182 bool m_jobQueueHasBeenSet =
false;
185 bool m_retryStrategyHasBeenSet =
false;
187 int m_schedulingPriority{0};
188 bool m_schedulingPriorityHasBeenSet =
false;
191 bool m_serviceRequestPayloadHasBeenSet =
false;
194 bool m_serviceJobTypeHasBeenSet =
false;
197 bool m_shareIdentifierHasBeenSet =
false;
199 ServiceJobTimeout m_timeoutConfig;
200 bool m_timeoutConfigHasBeenSet =
false;
203 bool m_tagsHasBeenSet =
false;
206 bool m_clientTokenHasBeenSet =
true;
bool ServiceRequestPayloadHasBeenSet() const
bool ServiceJobTypeHasBeenSet() const
const Aws::String & GetJobName() const
SubmitServiceJobRequest & WithClientToken(ClientTokenT &&value)
SubmitServiceJobRequest & WithTags(TagsT &&value)
ServiceJobType GetServiceJobType() const
void SetSchedulingPriority(int value)
bool ClientTokenHasBeenSet() const
void SetRetryStrategy(RetryStrategyT &&value)
virtual const char * GetServiceRequestName() const override
void SetClientToken(ClientTokenT &&value)
bool RetryStrategyHasBeenSet() const
void SetJobQueue(JobQueueT &&value)
const ServiceJobTimeout & GetTimeoutConfig() const
void SetJobName(JobNameT &&value)
bool JobNameHasBeenSet() const
SubmitServiceJobRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
const ServiceJobRetryStrategy & GetRetryStrategy() const
bool SchedulingPriorityHasBeenSet() const
void SetTags(TagsT &&value)
void SetShareIdentifier(ShareIdentifierT &&value)
const Aws::String & GetClientToken() const
SubmitServiceJobRequest & WithJobQueue(JobQueueT &&value)
const Aws::String & GetServiceRequestPayload() const
int GetSchedulingPriority() const
SubmitServiceJobRequest & WithTimeoutConfig(TimeoutConfigT &&value)
SubmitServiceJobRequest & WithRetryStrategy(RetryStrategyT &&value)
const Aws::String & GetShareIdentifier() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
SubmitServiceJobRequest & WithServiceJobType(ServiceJobType value)
void SetServiceRequestPayload(ServiceRequestPayloadT &&value)
void SetServiceJobType(ServiceJobType value)
SubmitServiceJobRequest & WithSchedulingPriority(int value)
bool ShareIdentifierHasBeenSet() const
void SetTimeoutConfig(TimeoutConfigT &&value)
SubmitServiceJobRequest & WithShareIdentifier(ShareIdentifierT &&value)
bool TimeoutConfigHasBeenSet() const
SubmitServiceJobRequest & WithJobName(JobNameT &&value)
const Aws::String & GetJobQueue() const
SubmitServiceJobRequest & WithServiceRequestPayload(ServiceRequestPayloadT &&value)
bool TagsHasBeenSet() const
bool JobQueueHasBeenSet() const
AWS_BATCH_API SubmitServiceJobRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
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