/** * 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 namespace Aws { namespace EMRServerless { namespace Model { /** */ class StartJobRunRequest : public EMRServerlessRequest { public: AWS_EMRSERVERLESS_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_EMRSERVERLESS_API Aws::String SerializePayload() const override; /** *

The ID of the application on which to run the job.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The ID of the application on which to run the job.

*/ inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } /** *

The ID of the application on which to run the job.

*/ inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } /** *

The ID of the application on which to run the job.

*/ inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } /** *

The ID of the application on which to run the job.

*/ inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } /** *

The ID of the application on which to run the job.

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

The ID of the application on which to run the job.

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

The ID of the application on which to run the job.

*/ inline StartJobRunRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

The client idempotency token of the job run to start. Its value must be * unique for each request.

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

The client idempotency token of the job run to start. Its value must be * unique for each request.

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

The client idempotency token of the job run to start. Its value must be * unique for each request.

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

The client idempotency token of the job run to start. Its value must be * unique for each request.

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

The client idempotency token of the job run to start. Its value must be * unique for each request.

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

The client idempotency token of the job run to start. Its value must be * unique for each request.

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

The client idempotency token of the job run to start. Its value must be * unique for each request.

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

The client idempotency token of the job run to start. Its value must be * unique for each 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 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 the job run.

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

The tags assigned to the job run.

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

The tags assigned to the job run.

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

The tags assigned to the job run.

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

The tags assigned to the job run.

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

The tags assigned to the job run.

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

The tags assigned to the job run.

*/ 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 the job run.

*/ 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 the job run.

*/ 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 the job run.

*/ 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 the job run.

*/ 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 the job run.

*/ 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 the job run.

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

The maximum duration for the job run to run. If the job run runs beyond this * duration, it will be automatically cancelled.

*/ inline long long GetExecutionTimeoutMinutes() const{ return m_executionTimeoutMinutes; } /** *

The maximum duration for the job run to run. If the job run runs beyond this * duration, it will be automatically cancelled.

*/ inline bool ExecutionTimeoutMinutesHasBeenSet() const { return m_executionTimeoutMinutesHasBeenSet; } /** *

The maximum duration for the job run to run. If the job run runs beyond this * duration, it will be automatically cancelled.

*/ inline void SetExecutionTimeoutMinutes(long long value) { m_executionTimeoutMinutesHasBeenSet = true; m_executionTimeoutMinutes = value; } /** *

The maximum duration for the job run to run. If the job run runs beyond this * duration, it will be automatically cancelled.

*/ inline StartJobRunRequest& WithExecutionTimeoutMinutes(long long value) { SetExecutionTimeoutMinutes(value); return *this;} /** *

The optional job run name. This doesn't have to be unique.

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

The optional job run name. This doesn't have to be unique.

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

The optional job run name. This doesn't have to be unique.

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

The optional job run name. This doesn't have to be unique.

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

The optional job run name. This doesn't have to be unique.

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

The optional job run name. This doesn't have to be unique.

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

The optional job run name. This doesn't have to be unique.

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

The optional job run name. This doesn't have to be unique.

*/ inline StartJobRunRequest& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_executionRoleArn; bool m_executionRoleArnHasBeenSet = false; JobDriver m_jobDriver; bool m_jobDriverHasBeenSet = false; ConfigurationOverrides m_configurationOverrides; bool m_configurationOverridesHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; long long m_executionTimeoutMinutes; bool m_executionTimeoutMinutesHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace EMRServerless } // namespace Aws