7#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
8#include <aws/emr-serverless/EMRServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/emr-serverless/model/JobRunExecutionIamPolicy.h>
11#include <aws/emr-serverless/model/JobDriver.h>
12#include <aws/emr-serverless/model/ConfigurationOverrides.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/emr-serverless/model/JobRunMode.h>
15#include <aws/emr-serverless/model/RetryPolicy.h>
17#include <aws/core/utils/UUID.h>
21namespace EMRServerless
48 template<
typename ApplicationIdT = Aws::String>
49 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet =
true; m_applicationId = std::forward<ApplicationIdT>(value); }
50 template<
typename ApplicationIdT = Aws::String>
61 template<
typename ClientTokenT = Aws::String>
62 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
63 template<
typename ClientTokenT = Aws::String>
73 template<
typename ExecutionRoleArnT = Aws::String>
74 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet =
true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
75 template<
typename ExecutionRoleArnT = Aws::String>
87 template<
typename ExecutionIamPolicyT = JobRunExecutionIamPolicy>
88 void SetExecutionIamPolicy(ExecutionIamPolicyT&& value) { m_executionIamPolicyHasBeenSet =
true; m_executionIamPolicy = std::forward<ExecutionIamPolicyT>(value); }
89 template<
typename ExecutionIamPolicyT = JobRunExecutionIamPolicy>
99 template<
typename JobDriverT = JobDriver>
100 void SetJobDriver(JobDriverT&& value) { m_jobDriverHasBeenSet =
true; m_jobDriver = std::forward<JobDriverT>(value); }
101 template<
typename JobDriverT = JobDriver>
111 template<
typename ConfigurationOverr
idesT = ConfigurationOverr
ides>
112 void SetConfigurationOverrides(ConfigurationOverridesT&& value) { m_configurationOverridesHasBeenSet =
true; m_configurationOverrides = std::forward<ConfigurationOverridesT>(value); }
113 template<
typename ConfigurationOverr
idesT = ConfigurationOverr
ides>
123 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
124 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
125 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
129 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
150 template<
typename NameT = Aws::String>
151 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
152 template<
typename NameT = Aws::String>
172 template<
typename RetryPolicyT = RetryPolicy>
173 void SetRetryPolicy(RetryPolicyT&& value) { m_retryPolicyHasBeenSet =
true; m_retryPolicy = std::forward<RetryPolicyT>(value); }
174 template<
typename RetryPolicyT = RetryPolicy>
180 bool m_applicationIdHasBeenSet =
false;
183 bool m_clientTokenHasBeenSet =
true;
186 bool m_executionRoleArnHasBeenSet =
false;
188 JobRunExecutionIamPolicy m_executionIamPolicy;
189 bool m_executionIamPolicyHasBeenSet =
false;
191 JobDriver m_jobDriver;
192 bool m_jobDriverHasBeenSet =
false;
194 ConfigurationOverrides m_configurationOverrides;
195 bool m_configurationOverridesHasBeenSet =
false;
198 bool m_tagsHasBeenSet =
false;
200 long long m_executionTimeoutMinutes{0};
201 bool m_executionTimeoutMinutesHasBeenSet =
false;
204 bool m_nameHasBeenSet =
false;
207 bool m_modeHasBeenSet =
false;
209 RetryPolicy m_retryPolicy;
210 bool m_retryPolicyHasBeenSet =
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)
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
const JobRunExecutionIamPolicy & GetExecutionIamPolicy() const
bool ExecutionRoleArnHasBeenSet() const
bool ConfigurationOverridesHasBeenSet() const
bool NameHasBeenSet() const
void SetRetryPolicy(RetryPolicyT &&value)
bool ExecutionIamPolicyHasBeenSet() 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
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