AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
SubmitServiceJobRequest.h
1
6#pragma once
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>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace Batch
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_BATCH_API SubmitServiceJobRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "SubmitServiceJob"; }
36
37 AWS_BATCH_API Aws::String SerializePayload() const override;
38
39
41
46 inline const Aws::String& GetJobName() const { return m_jobName; }
47 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
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>
51 SubmitServiceJobRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
53
55
60 inline const Aws::String& GetJobQueue() const { return m_jobQueue; }
61 inline bool JobQueueHasBeenSet() const { return m_jobQueueHasBeenSet; }
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>
65 SubmitServiceJobRequest& WithJobQueue(JobQueueT&& value) { SetJobQueue(std::forward<JobQueueT>(value)); return *this;}
67
69
73 inline const ServiceJobRetryStrategy& GetRetryStrategy() const { return m_retryStrategy; }
74 inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; }
75 template<typename RetryStrategyT = ServiceJobRetryStrategy>
76 void SetRetryStrategy(RetryStrategyT&& value) { m_retryStrategyHasBeenSet = true; m_retryStrategy = std::forward<RetryStrategyT>(value); }
77 template<typename RetryStrategyT = ServiceJobRetryStrategy>
78 SubmitServiceJobRequest& WithRetryStrategy(RetryStrategyT&& value) { SetRetryStrategy(std::forward<RetryStrategyT>(value)); return *this;}
80
82
86 inline int GetSchedulingPriority() const { return m_schedulingPriority; }
87 inline bool SchedulingPriorityHasBeenSet() const { return m_schedulingPriorityHasBeenSet; }
88 inline void SetSchedulingPriority(int value) { m_schedulingPriorityHasBeenSet = true; m_schedulingPriority = value; }
89 inline SubmitServiceJobRequest& WithSchedulingPriority(int value) { SetSchedulingPriority(value); return *this;}
91
93
97 inline const Aws::String& GetServiceRequestPayload() const { return m_serviceRequestPayload; }
98 inline bool ServiceRequestPayloadHasBeenSet() const { return m_serviceRequestPayloadHasBeenSet; }
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>
102 SubmitServiceJobRequest& WithServiceRequestPayload(ServiceRequestPayloadT&& value) { SetServiceRequestPayload(std::forward<ServiceRequestPayloadT>(value)); return *this;}
104
106
110 inline ServiceJobType GetServiceJobType() const { return m_serviceJobType; }
111 inline bool ServiceJobTypeHasBeenSet() const { return m_serviceJobTypeHasBeenSet; }
112 inline void SetServiceJobType(ServiceJobType value) { m_serviceJobTypeHasBeenSet = true; m_serviceJobType = value; }
115
117
122 inline const Aws::String& GetShareIdentifier() const { return m_shareIdentifier; }
123 inline bool ShareIdentifierHasBeenSet() const { return m_shareIdentifierHasBeenSet; }
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>
127 SubmitServiceJobRequest& WithShareIdentifier(ShareIdentifierT&& value) { SetShareIdentifier(std::forward<ShareIdentifierT>(value)); return *this;}
129
131
135 inline const ServiceJobTimeout& GetTimeoutConfig() const { return m_timeoutConfig; }
136 inline bool TimeoutConfigHasBeenSet() const { return m_timeoutConfigHasBeenSet; }
137 template<typename TimeoutConfigT = ServiceJobTimeout>
138 void SetTimeoutConfig(TimeoutConfigT&& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = std::forward<TimeoutConfigT>(value); }
139 template<typename TimeoutConfigT = ServiceJobTimeout>
140 SubmitServiceJobRequest& WithTimeoutConfig(TimeoutConfigT&& value) { SetTimeoutConfig(std::forward<TimeoutConfigT>(value)); return *this;}
142
144
150 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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>>
155 SubmitServiceJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
156 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
157 SubmitServiceJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
158 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
159 }
161
163
169 inline const Aws::String& GetClientToken() const { return m_clientToken; }
170 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
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>
174 SubmitServiceJobRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
176 private:
177
178 Aws::String m_jobName;
179 bool m_jobNameHasBeenSet = false;
180
181 Aws::String m_jobQueue;
182 bool m_jobQueueHasBeenSet = false;
183
184 ServiceJobRetryStrategy m_retryStrategy;
185 bool m_retryStrategyHasBeenSet = false;
186
187 int m_schedulingPriority{0};
188 bool m_schedulingPriorityHasBeenSet = false;
189
190 Aws::String m_serviceRequestPayload;
191 bool m_serviceRequestPayloadHasBeenSet = false;
192
193 ServiceJobType m_serviceJobType{ServiceJobType::NOT_SET};
194 bool m_serviceJobTypeHasBeenSet = false;
195
196 Aws::String m_shareIdentifier;
197 bool m_shareIdentifierHasBeenSet = false;
198
199 ServiceJobTimeout m_timeoutConfig;
200 bool m_timeoutConfigHasBeenSet = false;
201
203 bool m_tagsHasBeenSet = false;
204
206 bool m_clientTokenHasBeenSet = true;
207 };
208
209} // namespace Model
210} // namespace Batch
211} // 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