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>
22namespace EMRServerless {
45 template <
typename ApplicationIdT = Aws::String>
47 m_applicationIdHasBeenSet =
true;
48 m_applicationId = std::forward<ApplicationIdT>(value);
50 template <
typename ApplicationIdT = Aws::String>
64 template <
typename ClientTokenT = Aws::String>
66 m_clientTokenHasBeenSet =
true;
67 m_clientToken = std::forward<ClientTokenT>(value);
69 template <
typename ClientTokenT = Aws::String>
82 template <
typename ExecutionRoleArnT = Aws::String>
84 m_executionRoleArnHasBeenSet =
true;
85 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
87 template <
typename ExecutionRoleArnT = Aws::String>
102 template <
typename ExecutionIamPolicyT = JobRunExecutionIamPolicy>
104 m_executionIamPolicyHasBeenSet =
true;
105 m_executionIamPolicy = std::forward<ExecutionIamPolicyT>(value);
107 template <
typename ExecutionIamPolicyT = JobRunExecutionIamPolicy>
120 template <
typename JobDriverT = JobDriver>
122 m_jobDriverHasBeenSet =
true;
123 m_jobDriver = std::forward<JobDriverT>(value);
125 template <
typename JobDriverT = JobDriver>
138 template <
typename ConfigurationOverr
idesT = ConfigurationOverr
ides>
140 m_configurationOverridesHasBeenSet =
true;
141 m_configurationOverrides = std::forward<ConfigurationOverridesT>(value);
143 template <
typename ConfigurationOverr
idesT = ConfigurationOverr
ides>
156 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 m_tagsHasBeenSet =
true;
159 m_tags = std::forward<TagsT>(value);
161 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
163 SetTags(std::forward<TagsT>(value));
166 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
168 m_tagsHasBeenSet =
true;
169 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
185 m_executionTimeoutMinutesHasBeenSet =
true;
186 m_executionTimeoutMinutes = value;
200 template <
typename NameT = Aws::String>
202 m_nameHasBeenSet =
true;
203 m_name = std::forward<NameT>(value);
205 template <
typename NameT = Aws::String>
207 SetName(std::forward<NameT>(value));
219 m_modeHasBeenSet =
true;
234 template <
typename RetryPolicyT = RetryPolicy>
236 m_retryPolicyHasBeenSet =
true;
237 m_retryPolicy = std::forward<RetryPolicyT>(value);
239 template <
typename RetryPolicyT = RetryPolicy>
253 template <
typename FlexExecutionT = FlexExecution>
255 m_flexExecutionHasBeenSet =
true;
256 m_flexExecution = std::forward<FlexExecutionT>(value);
258 template <
typename FlexExecutionT = FlexExecution>
271 JobRunExecutionIamPolicy m_executionIamPolicy;
273 JobDriver m_jobDriver;
275 ConfigurationOverrides m_configurationOverrides;
279 long long m_executionTimeoutMinutes{0};
285 RetryPolicy m_retryPolicy;
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;
bool ModeHasBeenSet() const
StartJobRunRequest & WithApplicationId(ApplicationIdT &&value)
void SetJobDriver(JobDriverT &&value)
void SetTags(TagsT &&value)
const RetryPolicy & GetRetryPolicy() const
StartJobRunRequest & WithRetryPolicy(RetryPolicyT &&value)
virtual const char * GetServiceRequestName() const override
void SetClientToken(ClientTokenT &&value)
const FlexExecution & GetFlexExecution() const
StartJobRunRequest & WithExecutionTimeoutMinutes(long long value)
bool ClientTokenHasBeenSet() const
StartJobRunRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
long long GetExecutionTimeoutMinutes() const
bool JobDriverHasBeenSet() const
const Aws::String & GetClientToken() const
const ConfigurationOverrides & GetConfigurationOverrides() const
void SetExecutionTimeoutMinutes(long long value)
StartJobRunRequest & WithConfigurationOverrides(ConfigurationOverridesT &&value)
void SetMode(JobRunMode value)
AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override
void SetFlexExecution(FlexExecutionT &&value)
const JobRunExecutionIamPolicy & GetExecutionIamPolicy() const
bool ExecutionRoleArnHasBeenSet() const
bool ConfigurationOverridesHasBeenSet() const
bool NameHasBeenSet() const
void SetRetryPolicy(RetryPolicyT &&value)
bool ExecutionIamPolicyHasBeenSet() const
bool FlexExecutionHasBeenSet() const
const Aws::String & GetApplicationId() const
const Aws::String & GetName() const
bool ApplicationIdHasBeenSet() const
StartJobRunRequest & WithName(NameT &&value)
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
StartJobRunRequest & WithExecutionIamPolicy(ExecutionIamPolicyT &&value)
StartJobRunRequest & WithTags(TagsT &&value)
void SetConfigurationOverrides(ConfigurationOverridesT &&value)
void SetApplicationId(ApplicationIdT &&value)
bool RetryPolicyHasBeenSet() const
StartJobRunRequest & WithJobDriver(JobDriverT &&value)
AWS_EMRSERVERLESS_API StartJobRunRequest()=default
void SetExecutionIamPolicy(ExecutionIamPolicyT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool TagsHasBeenSet() const
StartJobRunRequest & WithMode(JobRunMode value)
const Aws::String & GetExecutionRoleArn() const
bool ExecutionTimeoutMinutesHasBeenSet() const
StartJobRunRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
const JobDriver & GetJobDriver() const
StartJobRunRequest & WithFlexExecution(FlexExecutionT &&value)
void SetName(NameT &&value)
StartJobRunRequest & WithClientToken(ClientTokenT &&value)
JobRunMode GetMode() const
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