AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SubmitServiceJobRequest.h
1
6#pragma once
7#include <aws/batch/BatchRequest.h>
8#include <aws/batch/Batch_EXPORTS.h>
9#include <aws/batch/model/ServiceJobRetryStrategy.h>
10#include <aws/batch/model/ServiceJobTimeout.h>
11#include <aws/batch/model/ServiceJobType.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Batch {
20namespace Model {
21
25 public:
26 AWS_BATCH_API SubmitServiceJobRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SubmitServiceJob"; }
33
34 AWS_BATCH_API Aws::String SerializePayload() const override;
35
37
42 inline const Aws::String& GetJobName() const { return m_jobName; }
43 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
44 template <typename JobNameT = Aws::String>
45 void SetJobName(JobNameT&& value) {
46 m_jobNameHasBeenSet = true;
47 m_jobName = std::forward<JobNameT>(value);
48 }
49 template <typename JobNameT = Aws::String>
51 SetJobName(std::forward<JobNameT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetJobQueue() const { return m_jobQueue; }
63 inline bool JobQueueHasBeenSet() const { return m_jobQueueHasBeenSet; }
64 template <typename JobQueueT = Aws::String>
65 void SetJobQueue(JobQueueT&& value) {
66 m_jobQueueHasBeenSet = true;
67 m_jobQueue = std::forward<JobQueueT>(value);
68 }
69 template <typename JobQueueT = Aws::String>
71 SetJobQueue(std::forward<JobQueueT>(value));
72 return *this;
73 }
75
77
81 inline const ServiceJobRetryStrategy& GetRetryStrategy() const { return m_retryStrategy; }
82 inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; }
83 template <typename RetryStrategyT = ServiceJobRetryStrategy>
84 void SetRetryStrategy(RetryStrategyT&& value) {
85 m_retryStrategyHasBeenSet = true;
86 m_retryStrategy = std::forward<RetryStrategyT>(value);
87 }
88 template <typename RetryStrategyT = ServiceJobRetryStrategy>
89 SubmitServiceJobRequest& WithRetryStrategy(RetryStrategyT&& value) {
90 SetRetryStrategy(std::forward<RetryStrategyT>(value));
91 return *this;
92 }
94
96
100 inline int GetSchedulingPriority() const { return m_schedulingPriority; }
101 inline bool SchedulingPriorityHasBeenSet() const { return m_schedulingPriorityHasBeenSet; }
102 inline void SetSchedulingPriority(int value) {
103 m_schedulingPriorityHasBeenSet = true;
104 m_schedulingPriority = value;
105 }
108 return *this;
109 }
111
113
117 inline const Aws::String& GetServiceRequestPayload() const { return m_serviceRequestPayload; }
118 inline bool ServiceRequestPayloadHasBeenSet() const { return m_serviceRequestPayloadHasBeenSet; }
119 template <typename ServiceRequestPayloadT = Aws::String>
120 void SetServiceRequestPayload(ServiceRequestPayloadT&& value) {
121 m_serviceRequestPayloadHasBeenSet = true;
122 m_serviceRequestPayload = std::forward<ServiceRequestPayloadT>(value);
123 }
124 template <typename ServiceRequestPayloadT = Aws::String>
125 SubmitServiceJobRequest& WithServiceRequestPayload(ServiceRequestPayloadT&& value) {
126 SetServiceRequestPayload(std::forward<ServiceRequestPayloadT>(value));
127 return *this;
128 }
130
132
136 inline ServiceJobType GetServiceJobType() const { return m_serviceJobType; }
137 inline bool ServiceJobTypeHasBeenSet() const { return m_serviceJobTypeHasBeenSet; }
139 m_serviceJobTypeHasBeenSet = true;
140 m_serviceJobType = value;
141 }
143 SetServiceJobType(value);
144 return *this;
145 }
147
149
154 inline const Aws::String& GetShareIdentifier() const { return m_shareIdentifier; }
155 inline bool ShareIdentifierHasBeenSet() const { return m_shareIdentifierHasBeenSet; }
156 template <typename ShareIdentifierT = Aws::String>
157 void SetShareIdentifier(ShareIdentifierT&& value) {
158 m_shareIdentifierHasBeenSet = true;
159 m_shareIdentifier = std::forward<ShareIdentifierT>(value);
160 }
161 template <typename ShareIdentifierT = Aws::String>
162 SubmitServiceJobRequest& WithShareIdentifier(ShareIdentifierT&& value) {
163 SetShareIdentifier(std::forward<ShareIdentifierT>(value));
164 return *this;
165 }
167
169
173 inline const ServiceJobTimeout& GetTimeoutConfig() const { return m_timeoutConfig; }
174 inline bool TimeoutConfigHasBeenSet() const { return m_timeoutConfigHasBeenSet; }
175 template <typename TimeoutConfigT = ServiceJobTimeout>
176 void SetTimeoutConfig(TimeoutConfigT&& value) {
177 m_timeoutConfigHasBeenSet = true;
178 m_timeoutConfig = std::forward<TimeoutConfigT>(value);
179 }
180 template <typename TimeoutConfigT = ServiceJobTimeout>
182 SetTimeoutConfig(std::forward<TimeoutConfigT>(value));
183 return *this;
184 }
186
188
194 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
195 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
196 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
197 void SetTags(TagsT&& value) {
198 m_tagsHasBeenSet = true;
199 m_tags = std::forward<TagsT>(value);
200 }
201 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
203 SetTags(std::forward<TagsT>(value));
204 return *this;
205 }
206 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
207 SubmitServiceJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
208 m_tagsHasBeenSet = true;
209 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
210 return *this;
211 }
213
215
221 inline const Aws::String& GetClientToken() const { return m_clientToken; }
222 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
223 template <typename ClientTokenT = Aws::String>
224 void SetClientToken(ClientTokenT&& value) {
225 m_clientTokenHasBeenSet = true;
226 m_clientToken = std::forward<ClientTokenT>(value);
227 }
228 template <typename ClientTokenT = Aws::String>
230 SetClientToken(std::forward<ClientTokenT>(value));
231 return *this;
232 }
234 private:
235 Aws::String m_jobName;
236
237 Aws::String m_jobQueue;
238
239 ServiceJobRetryStrategy m_retryStrategy;
240
241 int m_schedulingPriority{0};
242
243 Aws::String m_serviceRequestPayload;
244
245 ServiceJobType m_serviceJobType{ServiceJobType::NOT_SET};
246
247 Aws::String m_shareIdentifier;
248
249 ServiceJobTimeout m_timeoutConfig;
250
252
254 bool m_jobNameHasBeenSet = false;
255 bool m_jobQueueHasBeenSet = false;
256 bool m_retryStrategyHasBeenSet = false;
257 bool m_schedulingPriorityHasBeenSet = false;
258 bool m_serviceRequestPayloadHasBeenSet = false;
259 bool m_serviceJobTypeHasBeenSet = false;
260 bool m_shareIdentifierHasBeenSet = false;
261 bool m_timeoutConfigHasBeenSet = false;
262 bool m_tagsHasBeenSet = false;
263 bool m_clientTokenHasBeenSet = true;
264};
265
266} // namespace Model
267} // namespace Batch
268} // namespace Aws
SubmitServiceJobRequest & WithClientToken(ClientTokenT &&value)
SubmitServiceJobRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
const ServiceJobTimeout & GetTimeoutConfig() const
SubmitServiceJobRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
const ServiceJobRetryStrategy & GetRetryStrategy() const
SubmitServiceJobRequest & WithJobQueue(JobQueueT &&value)
SubmitServiceJobRequest & WithTimeoutConfig(TimeoutConfigT &&value)
SubmitServiceJobRequest & WithRetryStrategy(RetryStrategyT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
SubmitServiceJobRequest & WithServiceJobType(ServiceJobType value)
void SetServiceRequestPayload(ServiceRequestPayloadT &&value)
SubmitServiceJobRequest & WithSchedulingPriority(int value)
SubmitServiceJobRequest & WithShareIdentifier(ShareIdentifierT &&value)
SubmitServiceJobRequest & WithJobName(JobNameT &&value)
SubmitServiceJobRequest & WithServiceRequestPayload(ServiceRequestPayloadT &&value)
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