/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace EMRContainers { namespace Model { /** */ class StartJobRunRequest : public EMRContainersRequest { public: AWS_EMRCONTAINERS_API StartJobRunRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartJobRun"; } AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override; /** *

The name of the job run.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the job run.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the job run.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the job run.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the job run.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the job run.

*/ inline StartJobRunRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the job run.

*/ inline StartJobRunRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the job run.

*/ inline StartJobRunRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The virtual cluster ID for which the job run request is submitted.

*/ inline const Aws::String& GetVirtualClusterId() const{ return m_virtualClusterId; } /** *

The virtual cluster ID for which the job run request is submitted.

*/ inline bool VirtualClusterIdHasBeenSet() const { return m_virtualClusterIdHasBeenSet; } /** *

The virtual cluster ID for which the job run request is submitted.

*/ inline void SetVirtualClusterId(const Aws::String& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = value; } /** *

The virtual cluster ID for which the job run request is submitted.

*/ inline void SetVirtualClusterId(Aws::String&& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = std::move(value); } /** *

The virtual cluster ID for which the job run request is submitted.

*/ inline void SetVirtualClusterId(const char* value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId.assign(value); } /** *

The virtual cluster ID for which the job run request is submitted.

*/ inline StartJobRunRequest& WithVirtualClusterId(const Aws::String& value) { SetVirtualClusterId(value); return *this;} /** *

The virtual cluster ID for which the job run request is submitted.

*/ inline StartJobRunRequest& WithVirtualClusterId(Aws::String&& value) { SetVirtualClusterId(std::move(value)); return *this;} /** *

The virtual cluster ID for which the job run request is submitted.

*/ inline StartJobRunRequest& WithVirtualClusterId(const char* value) { SetVirtualClusterId(value); return *this;} /** *

The client idempotency token of the job run request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The client idempotency token of the job run request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The client idempotency token of the job run request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The client idempotency token of the job run request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The client idempotency token of the job run request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The client idempotency token of the job run request.

*/ inline StartJobRunRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The client idempotency token of the job run request.

*/ inline StartJobRunRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The client idempotency token of the job run request.

*/ inline StartJobRunRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The execution role ARN for the job run.

*/ inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; } /** *

The execution role ARN for the job run.

*/ inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; } /** *

The execution role ARN for the job run.

*/ inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; } /** *

The execution role ARN for the job run.

*/ inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); } /** *

The execution role ARN for the job run.

*/ inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); } /** *

The execution role ARN for the job run.

*/ inline StartJobRunRequest& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;} /** *

The execution role ARN for the job run.

*/ inline StartJobRunRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;} /** *

The execution role ARN for the job run.

*/ inline StartJobRunRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;} /** *

The Amazon EMR release version to use for the job run.

*/ inline const Aws::String& GetReleaseLabel() const{ return m_releaseLabel; } /** *

The Amazon EMR release version to use for the job run.

*/ inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; } /** *

The Amazon EMR release version to use for the job run.

*/ inline void SetReleaseLabel(const Aws::String& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = value; } /** *

The Amazon EMR release version to use for the job run.

*/ inline void SetReleaseLabel(Aws::String&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = std::move(value); } /** *

The Amazon EMR release version to use for the job run.

*/ inline void SetReleaseLabel(const char* value) { m_releaseLabelHasBeenSet = true; m_releaseLabel.assign(value); } /** *

The Amazon EMR release version to use for the job run.

*/ inline StartJobRunRequest& WithReleaseLabel(const Aws::String& value) { SetReleaseLabel(value); return *this;} /** *

The Amazon EMR release version to use for the job run.

*/ inline StartJobRunRequest& WithReleaseLabel(Aws::String&& value) { SetReleaseLabel(std::move(value)); return *this;} /** *

The Amazon EMR release version to use for the job run.

*/ inline StartJobRunRequest& WithReleaseLabel(const char* value) { SetReleaseLabel(value); return *this;} /** *

The job driver for the job run.

*/ inline const JobDriver& GetJobDriver() const{ return m_jobDriver; } /** *

The job driver for the job run.

*/ inline bool JobDriverHasBeenSet() const { return m_jobDriverHasBeenSet; } /** *

The job driver for the job run.

*/ inline void SetJobDriver(const JobDriver& value) { m_jobDriverHasBeenSet = true; m_jobDriver = value; } /** *

The job driver for the job run.

*/ inline void SetJobDriver(JobDriver&& value) { m_jobDriverHasBeenSet = true; m_jobDriver = std::move(value); } /** *

The job driver for the job run.

*/ inline StartJobRunRequest& WithJobDriver(const JobDriver& value) { SetJobDriver(value); return *this;} /** *

The job driver for the job run.

*/ inline StartJobRunRequest& WithJobDriver(JobDriver&& value) { SetJobDriver(std::move(value)); return *this;} /** *

The configuration overrides for the job run.

*/ inline const ConfigurationOverrides& GetConfigurationOverrides() const{ return m_configurationOverrides; } /** *

The configuration overrides for the job run.

*/ inline bool ConfigurationOverridesHasBeenSet() const { return m_configurationOverridesHasBeenSet; } /** *

The configuration overrides for the job run.

*/ inline void SetConfigurationOverrides(const ConfigurationOverrides& value) { m_configurationOverridesHasBeenSet = true; m_configurationOverrides = value; } /** *

The configuration overrides for the job run.

*/ inline void SetConfigurationOverrides(ConfigurationOverrides&& value) { m_configurationOverridesHasBeenSet = true; m_configurationOverrides = std::move(value); } /** *

The configuration overrides for the job run.

*/ inline StartJobRunRequest& WithConfigurationOverrides(const ConfigurationOverrides& value) { SetConfigurationOverrides(value); return *this;} /** *

The configuration overrides for the job run.

*/ inline StartJobRunRequest& WithConfigurationOverrides(ConfigurationOverrides&& value) { SetConfigurationOverrides(std::move(value)); return *this;} /** *

The tags assigned to job runs.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags assigned to job runs.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags assigned to job runs.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags assigned to job runs.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags assigned to job runs.

*/ inline StartJobRunRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags assigned to job runs.

*/ inline StartJobRunRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags assigned to job runs.

*/ inline StartJobRunRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags assigned to job runs.

*/ inline StartJobRunRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags assigned to job runs.

*/ inline StartJobRunRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags assigned to job runs.

*/ inline StartJobRunRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags assigned to job runs.

*/ inline StartJobRunRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags assigned to job runs.

*/ inline StartJobRunRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags assigned to job runs.

*/ inline StartJobRunRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The job template ID to be used to start the job run.

*/ inline const Aws::String& GetJobTemplateId() const{ return m_jobTemplateId; } /** *

The job template ID to be used to start the job run.

*/ inline bool JobTemplateIdHasBeenSet() const { return m_jobTemplateIdHasBeenSet; } /** *

The job template ID to be used to start the job run.

*/ inline void SetJobTemplateId(const Aws::String& value) { m_jobTemplateIdHasBeenSet = true; m_jobTemplateId = value; } /** *

The job template ID to be used to start the job run.

*/ inline void SetJobTemplateId(Aws::String&& value) { m_jobTemplateIdHasBeenSet = true; m_jobTemplateId = std::move(value); } /** *

The job template ID to be used to start the job run.

*/ inline void SetJobTemplateId(const char* value) { m_jobTemplateIdHasBeenSet = true; m_jobTemplateId.assign(value); } /** *

The job template ID to be used to start the job run.

*/ inline StartJobRunRequest& WithJobTemplateId(const Aws::String& value) { SetJobTemplateId(value); return *this;} /** *

The job template ID to be used to start the job run.

*/ inline StartJobRunRequest& WithJobTemplateId(Aws::String&& value) { SetJobTemplateId(std::move(value)); return *this;} /** *

The job template ID to be used to start the job run.

*/ inline StartJobRunRequest& WithJobTemplateId(const char* value) { SetJobTemplateId(value); return *this;} /** *

The values of job template parameters to start a job run.

*/ inline const Aws::Map& GetJobTemplateParameters() const{ return m_jobTemplateParameters; } /** *

The values of job template parameters to start a job run.

*/ inline bool JobTemplateParametersHasBeenSet() const { return m_jobTemplateParametersHasBeenSet; } /** *

The values of job template parameters to start a job run.

*/ inline void SetJobTemplateParameters(const Aws::Map& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters = value; } /** *

The values of job template parameters to start a job run.

*/ inline void SetJobTemplateParameters(Aws::Map&& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters = std::move(value); } /** *

The values of job template parameters to start a job run.

*/ inline StartJobRunRequest& WithJobTemplateParameters(const Aws::Map& value) { SetJobTemplateParameters(value); return *this;} /** *

The values of job template parameters to start a job run.

*/ inline StartJobRunRequest& WithJobTemplateParameters(Aws::Map&& value) { SetJobTemplateParameters(std::move(value)); return *this;} /** *

The values of job template parameters to start a job run.

*/ inline StartJobRunRequest& AddJobTemplateParameters(const Aws::String& key, const Aws::String& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(key, value); return *this; } /** *

The values of job template parameters to start a job run.

*/ inline StartJobRunRequest& AddJobTemplateParameters(Aws::String&& key, const Aws::String& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(std::move(key), value); return *this; } /** *

The values of job template parameters to start a job run.

*/ inline StartJobRunRequest& AddJobTemplateParameters(const Aws::String& key, Aws::String&& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(key, std::move(value)); return *this; } /** *

The values of job template parameters to start a job run.

*/ inline StartJobRunRequest& AddJobTemplateParameters(Aws::String&& key, Aws::String&& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

The values of job template parameters to start a job run.

*/ inline StartJobRunRequest& AddJobTemplateParameters(const char* key, Aws::String&& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(key, std::move(value)); return *this; } /** *

The values of job template parameters to start a job run.

*/ inline StartJobRunRequest& AddJobTemplateParameters(Aws::String&& key, const char* value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(std::move(key), value); return *this; } /** *

The values of job template parameters to start a job run.

*/ inline StartJobRunRequest& AddJobTemplateParameters(const char* key, const char* value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(key, value); return *this; } /** *

The retry policy configuration for the job run.

*/ inline const RetryPolicyConfiguration& GetRetryPolicyConfiguration() const{ return m_retryPolicyConfiguration; } /** *

The retry policy configuration for the job run.

*/ inline bool RetryPolicyConfigurationHasBeenSet() const { return m_retryPolicyConfigurationHasBeenSet; } /** *

The retry policy configuration for the job run.

*/ inline void SetRetryPolicyConfiguration(const RetryPolicyConfiguration& value) { m_retryPolicyConfigurationHasBeenSet = true; m_retryPolicyConfiguration = value; } /** *

The retry policy configuration for the job run.

*/ inline void SetRetryPolicyConfiguration(RetryPolicyConfiguration&& value) { m_retryPolicyConfigurationHasBeenSet = true; m_retryPolicyConfiguration = std::move(value); } /** *

The retry policy configuration for the job run.

*/ inline StartJobRunRequest& WithRetryPolicyConfiguration(const RetryPolicyConfiguration& value) { SetRetryPolicyConfiguration(value); return *this;} /** *

The retry policy configuration for the job run.

*/ inline StartJobRunRequest& WithRetryPolicyConfiguration(RetryPolicyConfiguration&& value) { SetRetryPolicyConfiguration(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_virtualClusterId; bool m_virtualClusterIdHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_executionRoleArn; bool m_executionRoleArnHasBeenSet = false; Aws::String m_releaseLabel; bool m_releaseLabelHasBeenSet = false; JobDriver m_jobDriver; bool m_jobDriverHasBeenSet = false; ConfigurationOverrides m_configurationOverrides; bool m_configurationOverridesHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_jobTemplateId; bool m_jobTemplateIdHasBeenSet = false; Aws::Map m_jobTemplateParameters; bool m_jobTemplateParametersHasBeenSet = false; RetryPolicyConfiguration m_retryPolicyConfiguration; bool m_retryPolicyConfigurationHasBeenSet = false; }; } // namespace Model } // namespace EMRContainers } // namespace Aws