7#include <aws/emr-containers/EMRContainers_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/emr-containers/model/JobRunState.h>
10#include <aws/emr-containers/model/ConfigurationOverrides.h>
11#include <aws/emr-containers/model/JobDriver.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/emr-containers/model/FailureReason.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/emr-containers/model/RetryPolicyConfiguration.h>
16#include <aws/emr-containers/model/RetryPolicyExecution.h>
29namespace EMRContainers
44 AWS_EMRCONTAINERS_API
JobRun() =
default;
56 template<
typename IdT = Aws::String>
57 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
58 template<
typename IdT = Aws::String>
68 template<
typename NameT = Aws::String>
69 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
70 template<
typename NameT = Aws::String>
80 template<
typename VirtualClusterIdT = Aws::String>
81 void SetVirtualClusterId(VirtualClusterIdT&& value) { m_virtualClusterIdHasBeenSet =
true; m_virtualClusterId = std::forward<VirtualClusterIdT>(value); }
82 template<
typename VirtualClusterIdT = Aws::String>
92 template<
typename ArnT = Aws::String>
93 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
94 template<
typename ArnT = Aws::String>
114 template<
typename ClientTokenT = Aws::String>
115 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
116 template<
typename ClientTokenT = Aws::String>
126 template<
typename ExecutionRoleArnT = Aws::String>
127 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet =
true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
128 template<
typename ExecutionRoleArnT = Aws::String>
138 template<
typename ReleaseLabelT = Aws::String>
139 void SetReleaseLabel(ReleaseLabelT&& value) { m_releaseLabelHasBeenSet =
true; m_releaseLabel = std::forward<ReleaseLabelT>(value); }
140 template<
typename ReleaseLabelT = Aws::String>
151 template<
typename ConfigurationOverr
idesT = ConfigurationOverr
ides>
152 void SetConfigurationOverrides(ConfigurationOverridesT&& value) { m_configurationOverridesHasBeenSet =
true; m_configurationOverrides = std::forward<ConfigurationOverridesT>(value); }
153 template<
typename ConfigurationOverr
idesT = ConfigurationOverr
ides>
163 template<
typename JobDriverT = JobDriver>
164 void SetJobDriver(JobDriverT&& value) { m_jobDriverHasBeenSet =
true; m_jobDriver = std::forward<JobDriverT>(value); }
165 template<
typename JobDriverT = JobDriver>
175 template<
typename CreatedAtT = Aws::Utils::DateTime>
176 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
177 template<
typename CreatedAtT = Aws::Utils::DateTime>
187 template<
typename CreatedByT = Aws::String>
188 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet =
true; m_createdBy = std::forward<CreatedByT>(value); }
189 template<
typename CreatedByT = Aws::String>
199 template<
typename FinishedAtT = Aws::Utils::DateTime>
200 void SetFinishedAt(FinishedAtT&& value) { m_finishedAtHasBeenSet =
true; m_finishedAt = std::forward<FinishedAtT>(value); }
201 template<
typename FinishedAtT = Aws::Utils::DateTime>
211 template<
typename StateDetailsT = Aws::String>
212 void SetStateDetails(StateDetailsT&& value) { m_stateDetailsHasBeenSet =
true; m_stateDetails = std::forward<StateDetailsT>(value); }
213 template<
typename StateDetailsT = Aws::String>
233 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
234 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
235 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
237 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
239 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
249 template<
typename RetryPolicyConfigurationT = RetryPolicyConfiguration>
250 void SetRetryPolicyConfiguration(RetryPolicyConfigurationT&& value) { m_retryPolicyConfigurationHasBeenSet =
true; m_retryPolicyConfiguration = std::forward<RetryPolicyConfigurationT>(value); }
251 template<
typename RetryPolicyConfigurationT = RetryPolicyConfiguration>
261 template<
typename RetryPolicyExecutionT = RetryPolicyExecution>
262 void SetRetryPolicyExecution(RetryPolicyExecutionT&& value) { m_retryPolicyExecutionHasBeenSet =
true; m_retryPolicyExecution = std::forward<RetryPolicyExecutionT>(value); }
263 template<
typename RetryPolicyExecutionT = RetryPolicyExecution>
269 bool m_idHasBeenSet =
false;
272 bool m_nameHasBeenSet =
false;
275 bool m_virtualClusterIdHasBeenSet =
false;
278 bool m_arnHasBeenSet =
false;
281 bool m_stateHasBeenSet =
false;
284 bool m_clientTokenHasBeenSet =
false;
287 bool m_executionRoleArnHasBeenSet =
false;
290 bool m_releaseLabelHasBeenSet =
false;
292 ConfigurationOverrides m_configurationOverrides;
293 bool m_configurationOverridesHasBeenSet =
false;
295 JobDriver m_jobDriver;
296 bool m_jobDriverHasBeenSet =
false;
299 bool m_createdAtHasBeenSet =
false;
302 bool m_createdByHasBeenSet =
false;
305 bool m_finishedAtHasBeenSet =
false;
308 bool m_stateDetailsHasBeenSet =
false;
311 bool m_failureReasonHasBeenSet =
false;
314 bool m_tagsHasBeenSet =
false;
316 RetryPolicyConfiguration m_retryPolicyConfiguration;
317 bool m_retryPolicyConfigurationHasBeenSet =
false;
319 RetryPolicyExecution m_retryPolicyExecution;
320 bool m_retryPolicyExecutionHasBeenSet =
false;
JobRun & WithArn(ArnT &&value)
JobRun & WithStateDetails(StateDetailsT &&value)
JobRun & WithTags(TagsT &&value)
void SetArn(ArnT &&value)
const JobDriver & GetJobDriver() const
bool StateHasBeenSet() const
JobRun & WithExecutionRoleArn(ExecutionRoleArnT &&value)
JobRunState GetState() const
void SetCreatedAt(CreatedAtT &&value)
bool CreatedAtHasBeenSet() const
bool RetryPolicyExecutionHasBeenSet() const
FailureReason GetFailureReason() const
AWS_EMRCONTAINERS_API JobRun(Aws::Utils::Json::JsonView jsonValue)
JobRun & AddTags(TagsKeyT &&key, TagsValueT &&value)
JobRun & WithState(JobRunState value)
void SetRetryPolicyExecution(RetryPolicyExecutionT &&value)
const Aws::Utils::DateTime & GetFinishedAt() const
void SetClientToken(ClientTokenT &&value)
void SetRetryPolicyConfiguration(RetryPolicyConfigurationT &&value)
bool IdHasBeenSet() const
bool TagsHasBeenSet() const
const Aws::String & GetCreatedBy() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetJobDriver(JobDriverT &&value)
JobRun & WithCreatedBy(CreatedByT &&value)
JobRun & WithFinishedAt(FinishedAtT &&value)
const Aws::String & GetStateDetails() const
void SetState(JobRunState value)
AWS_EMRCONTAINERS_API JobRun & operator=(Aws::Utils::Json::JsonView jsonValue)
JobRun & WithFailureReason(FailureReason value)
AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetVirtualClusterId() const
void SetVirtualClusterId(VirtualClusterIdT &&value)
JobRun & WithId(IdT &&value)
const Aws::String & GetArn() const
const Aws::String & GetExecutionRoleArn() const
void SetTags(TagsT &&value)
const ConfigurationOverrides & GetConfigurationOverrides() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool VirtualClusterIdHasBeenSet() const
const Aws::String & GetClientToken() const
bool NameHasBeenSet() const
bool ConfigurationOverridesHasBeenSet() const
bool ReleaseLabelHasBeenSet() const
bool FinishedAtHasBeenSet() const
bool CreatedByHasBeenSet() const
void SetName(NameT &&value)
bool ClientTokenHasBeenSet() const
void SetFinishedAt(FinishedAtT &&value)
JobRun & WithConfigurationOverrides(ConfigurationOverridesT &&value)
const Aws::String & GetName() const
AWS_EMRCONTAINERS_API JobRun()=default
const Aws::String & GetReleaseLabel() const
void SetFailureReason(FailureReason value)
bool RetryPolicyConfigurationHasBeenSet() const
JobRun & WithName(NameT &&value)
JobRun & WithRetryPolicyConfiguration(RetryPolicyConfigurationT &&value)
const RetryPolicyConfiguration & GetRetryPolicyConfiguration() const
JobRun & WithCreatedAt(CreatedAtT &&value)
bool JobDriverHasBeenSet() const
JobRun & WithJobDriver(JobDriverT &&value)
JobRun & WithVirtualClusterId(VirtualClusterIdT &&value)
JobRun & WithClientToken(ClientTokenT &&value)
JobRun & WithRetryPolicyExecution(RetryPolicyExecutionT &&value)
bool ArnHasBeenSet() const
void SetConfigurationOverrides(ConfigurationOverridesT &&value)
const Aws::String & GetId() const
bool FailureReasonHasBeenSet() const
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
void SetStateDetails(StateDetailsT &&value)
const RetryPolicyExecution & GetRetryPolicyExecution() const
JobRun & WithReleaseLabel(ReleaseLabelT &&value)
bool StateDetailsHasBeenSet() const
void SetCreatedBy(CreatedByT &&value)
void SetReleaseLabel(ReleaseLabelT &&value)
bool ExecutionRoleArnHasBeenSet() const
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
Aws::Utils::Json::JsonValue JsonValue