AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
StartJobRunRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/emr-serverless/EMRServerlessRequest.h>
11#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
12#include <aws/emr-serverless/model/ConfigurationOverrides.h>
13#include <aws/emr-serverless/model/FlexExecution.h>
14#include <aws/emr-serverless/model/JobDriver.h>
15#include <aws/emr-serverless/model/JobRunExecutionIamPolicy.h>
16#include <aws/emr-serverless/model/JobRunMode.h>
17#include <aws/emr-serverless/model/RetryPolicy.h>
18
19#include <utility>
20
21namespace Aws {
22namespace EMRServerless {
23namespace Model {
24
28 public:
29 AWS_EMRSERVERLESS_API StartJobRunRequest() = 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 "StartJobRun"; }
36
37 AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
44 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
45 template <typename ApplicationIdT = Aws::String>
46 void SetApplicationId(ApplicationIdT&& value) {
47 m_applicationIdHasBeenSet = true;
48 m_applicationId = std::forward<ApplicationIdT>(value);
49 }
50 template <typename ApplicationIdT = Aws::String>
51 StartJobRunRequest& WithApplicationId(ApplicationIdT&& value) {
52 SetApplicationId(std::forward<ApplicationIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetClientToken() const { return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 template <typename ClientTokenT = Aws::String>
65 void SetClientToken(ClientTokenT&& value) {
66 m_clientTokenHasBeenSet = true;
67 m_clientToken = std::forward<ClientTokenT>(value);
68 }
69 template <typename ClientTokenT = Aws::String>
70 StartJobRunRequest& WithClientToken(ClientTokenT&& value) {
71 SetClientToken(std::forward<ClientTokenT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
81 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
82 template <typename ExecutionRoleArnT = Aws::String>
83 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
84 m_executionRoleArnHasBeenSet = true;
85 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
86 }
87 template <typename ExecutionRoleArnT = Aws::String>
88 StartJobRunRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
89 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
90 return *this;
91 }
93
95
100 inline const JobRunExecutionIamPolicy& GetExecutionIamPolicy() const { return m_executionIamPolicy; }
101 inline bool ExecutionIamPolicyHasBeenSet() const { return m_executionIamPolicyHasBeenSet; }
102 template <typename ExecutionIamPolicyT = JobRunExecutionIamPolicy>
103 void SetExecutionIamPolicy(ExecutionIamPolicyT&& value) {
104 m_executionIamPolicyHasBeenSet = true;
105 m_executionIamPolicy = std::forward<ExecutionIamPolicyT>(value);
106 }
107 template <typename ExecutionIamPolicyT = JobRunExecutionIamPolicy>
108 StartJobRunRequest& WithExecutionIamPolicy(ExecutionIamPolicyT&& value) {
109 SetExecutionIamPolicy(std::forward<ExecutionIamPolicyT>(value));
110 return *this;
111 }
113
115
118 inline const JobDriver& GetJobDriver() const { return m_jobDriver; }
119 inline bool JobDriverHasBeenSet() const { return m_jobDriverHasBeenSet; }
120 template <typename JobDriverT = JobDriver>
121 void SetJobDriver(JobDriverT&& value) {
122 m_jobDriverHasBeenSet = true;
123 m_jobDriver = std::forward<JobDriverT>(value);
124 }
125 template <typename JobDriverT = JobDriver>
126 StartJobRunRequest& WithJobDriver(JobDriverT&& value) {
127 SetJobDriver(std::forward<JobDriverT>(value));
128 return *this;
129 }
131
133
136 inline const ConfigurationOverrides& GetConfigurationOverrides() const { return m_configurationOverrides; }
137 inline bool ConfigurationOverridesHasBeenSet() const { return m_configurationOverridesHasBeenSet; }
138 template <typename ConfigurationOverridesT = ConfigurationOverrides>
139 void SetConfigurationOverrides(ConfigurationOverridesT&& value) {
140 m_configurationOverridesHasBeenSet = true;
141 m_configurationOverrides = std::forward<ConfigurationOverridesT>(value);
142 }
143 template <typename ConfigurationOverridesT = ConfigurationOverrides>
144 StartJobRunRequest& WithConfigurationOverrides(ConfigurationOverridesT&& value) {
145 SetConfigurationOverrides(std::forward<ConfigurationOverridesT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 void SetTags(TagsT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags = std::forward<TagsT>(value);
160 }
161 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
162 StartJobRunRequest& WithTags(TagsT&& value) {
163 SetTags(std::forward<TagsT>(value));
164 return *this;
165 }
166 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
167 StartJobRunRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
168 m_tagsHasBeenSet = true;
169 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
170 return *this;
171 }
173
175
182 inline long long GetExecutionTimeoutMinutes() const { return m_executionTimeoutMinutes; }
183 inline bool ExecutionTimeoutMinutesHasBeenSet() const { return m_executionTimeoutMinutesHasBeenSet; }
184 inline void SetExecutionTimeoutMinutes(long long value) {
185 m_executionTimeoutMinutesHasBeenSet = true;
186 m_executionTimeoutMinutes = value;
187 }
190 return *this;
191 }
193
195
198 inline const Aws::String& GetName() const { return m_name; }
199 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
200 template <typename NameT = Aws::String>
201 void SetName(NameT&& value) {
202 m_nameHasBeenSet = true;
203 m_name = std::forward<NameT>(value);
204 }
205 template <typename NameT = Aws::String>
206 StartJobRunRequest& WithName(NameT&& value) {
207 SetName(std::forward<NameT>(value));
208 return *this;
209 }
211
213
216 inline JobRunMode GetMode() const { return m_mode; }
217 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
218 inline void SetMode(JobRunMode value) {
219 m_modeHasBeenSet = true;
220 m_mode = value;
221 }
223 SetMode(value);
224 return *this;
225 }
227
229
232 inline const RetryPolicy& GetRetryPolicy() const { return m_retryPolicy; }
233 inline bool RetryPolicyHasBeenSet() const { return m_retryPolicyHasBeenSet; }
234 template <typename RetryPolicyT = RetryPolicy>
235 void SetRetryPolicy(RetryPolicyT&& value) {
236 m_retryPolicyHasBeenSet = true;
237 m_retryPolicy = std::forward<RetryPolicyT>(value);
238 }
239 template <typename RetryPolicyT = RetryPolicy>
240 StartJobRunRequest& WithRetryPolicy(RetryPolicyT&& value) {
241 SetRetryPolicy(std::forward<RetryPolicyT>(value));
242 return *this;
243 }
245
247
251 inline const FlexExecution& GetFlexExecution() const { return m_flexExecution; }
252 inline bool FlexExecutionHasBeenSet() const { return m_flexExecutionHasBeenSet; }
253 template <typename FlexExecutionT = FlexExecution>
254 void SetFlexExecution(FlexExecutionT&& value) {
255 m_flexExecutionHasBeenSet = true;
256 m_flexExecution = std::forward<FlexExecutionT>(value);
257 }
258 template <typename FlexExecutionT = FlexExecution>
259 StartJobRunRequest& WithFlexExecution(FlexExecutionT&& value) {
260 SetFlexExecution(std::forward<FlexExecutionT>(value));
261 return *this;
262 }
264 private:
265 Aws::String m_applicationId;
266
268
269 Aws::String m_executionRoleArn;
270
271 JobRunExecutionIamPolicy m_executionIamPolicy;
272
273 JobDriver m_jobDriver;
274
275 ConfigurationOverrides m_configurationOverrides;
276
278
279 long long m_executionTimeoutMinutes{0};
280
281 Aws::String m_name;
282
284
285 RetryPolicy m_retryPolicy;
286
287 FlexExecution m_flexExecution;
288 bool m_applicationIdHasBeenSet = false;
289 bool m_clientTokenHasBeenSet = true;
290 bool m_executionRoleArnHasBeenSet = false;
291 bool m_executionIamPolicyHasBeenSet = false;
292 bool m_jobDriverHasBeenSet = false;
293 bool m_configurationOverridesHasBeenSet = false;
294 bool m_tagsHasBeenSet = false;
295 bool m_executionTimeoutMinutesHasBeenSet = false;
296 bool m_nameHasBeenSet = false;
297 bool m_modeHasBeenSet = false;
298 bool m_retryPolicyHasBeenSet = false;
299 bool m_flexExecutionHasBeenSet = false;
300};
301
302} // namespace Model
303} // namespace EMRServerless
304} // namespace Aws
StartJobRunRequest & WithApplicationId(ApplicationIdT &&value)
StartJobRunRequest & WithRetryPolicy(RetryPolicyT &&value)
virtual const char * GetServiceRequestName() const override
StartJobRunRequest & WithExecutionTimeoutMinutes(long long value)
StartJobRunRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const ConfigurationOverrides & GetConfigurationOverrides() const
StartJobRunRequest & WithConfigurationOverrides(ConfigurationOverridesT &&value)
AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override
const JobRunExecutionIamPolicy & GetExecutionIamPolicy() const
StartJobRunRequest & WithName(NameT &&value)
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
StartJobRunRequest & WithExecutionIamPolicy(ExecutionIamPolicyT &&value)
StartJobRunRequest & WithTags(TagsT &&value)
void SetConfigurationOverrides(ConfigurationOverridesT &&value)
StartJobRunRequest & WithJobDriver(JobDriverT &&value)
AWS_EMRSERVERLESS_API StartJobRunRequest()=default
void SetExecutionIamPolicy(ExecutionIamPolicyT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartJobRunRequest & WithMode(JobRunMode value)
StartJobRunRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
StartJobRunRequest & WithFlexExecution(FlexExecutionT &&value)
StartJobRunRequest & WithClientToken(ClientTokenT &&value)
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