/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace EMR { namespace Model { /** *

The input argument to the AddJobFlowSteps operation.

See * Also:

AWS * API Reference

*/ class AddJobFlowStepsRequest : public EMRRequest { public: AWS_EMR_API AddJobFlowStepsRequest(); // 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 "AddJobFlowSteps"; } AWS_EMR_API Aws::String SerializePayload() const override; AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A string that uniquely identifies the job flow. This identifier is returned * by RunJobFlow and can also be obtained from ListClusters.

*/ inline const Aws::String& GetJobFlowId() const{ return m_jobFlowId; } /** *

A string that uniquely identifies the job flow. This identifier is returned * by RunJobFlow and can also be obtained from ListClusters.

*/ inline bool JobFlowIdHasBeenSet() const { return m_jobFlowIdHasBeenSet; } /** *

A string that uniquely identifies the job flow. This identifier is returned * by RunJobFlow and can also be obtained from ListClusters.

*/ inline void SetJobFlowId(const Aws::String& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = value; } /** *

A string that uniquely identifies the job flow. This identifier is returned * by RunJobFlow and can also be obtained from ListClusters.

*/ inline void SetJobFlowId(Aws::String&& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = std::move(value); } /** *

A string that uniquely identifies the job flow. This identifier is returned * by RunJobFlow and can also be obtained from ListClusters.

*/ inline void SetJobFlowId(const char* value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId.assign(value); } /** *

A string that uniquely identifies the job flow. This identifier is returned * by RunJobFlow and can also be obtained from ListClusters.

*/ inline AddJobFlowStepsRequest& WithJobFlowId(const Aws::String& value) { SetJobFlowId(value); return *this;} /** *

A string that uniquely identifies the job flow. This identifier is returned * by RunJobFlow and can also be obtained from ListClusters.

*/ inline AddJobFlowStepsRequest& WithJobFlowId(Aws::String&& value) { SetJobFlowId(std::move(value)); return *this;} /** *

A string that uniquely identifies the job flow. This identifier is returned * by RunJobFlow and can also be obtained from ListClusters.

*/ inline AddJobFlowStepsRequest& WithJobFlowId(const char* value) { SetJobFlowId(value); return *this;} /** *

A list of StepConfig to be executed by the job flow.

*/ inline const Aws::Vector& GetSteps() const{ return m_steps; } /** *

A list of StepConfig to be executed by the job flow.

*/ inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; } /** *

A list of StepConfig to be executed by the job flow.

*/ inline void SetSteps(const Aws::Vector& value) { m_stepsHasBeenSet = true; m_steps = value; } /** *

A list of StepConfig to be executed by the job flow.

*/ inline void SetSteps(Aws::Vector&& value) { m_stepsHasBeenSet = true; m_steps = std::move(value); } /** *

A list of StepConfig to be executed by the job flow.

*/ inline AddJobFlowStepsRequest& WithSteps(const Aws::Vector& value) { SetSteps(value); return *this;} /** *

A list of StepConfig to be executed by the job flow.

*/ inline AddJobFlowStepsRequest& WithSteps(Aws::Vector&& value) { SetSteps(std::move(value)); return *this;} /** *

A list of StepConfig to be executed by the job flow.

*/ inline AddJobFlowStepsRequest& AddSteps(const StepConfig& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; } /** *

A list of StepConfig to be executed by the job flow.

*/ inline AddJobFlowStepsRequest& AddSteps(StepConfig&& value) { m_stepsHasBeenSet = true; m_steps.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. * The runtime role can be a cross-account IAM role. The runtime role ARN is a * combination of account ID, role name, and role type using the following format: * arn:partition:service:region:account:resource.

For example, * arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted * runtime role ARN.

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

The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. * The runtime role can be a cross-account IAM role. The runtime role ARN is a * combination of account ID, role name, and role type using the following format: * arn:partition:service:region:account:resource.

For example, * arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted * runtime role ARN.

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

The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. * The runtime role can be a cross-account IAM role. The runtime role ARN is a * combination of account ID, role name, and role type using the following format: * arn:partition:service:region:account:resource.

For example, * arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted * runtime role ARN.

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

The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. * The runtime role can be a cross-account IAM role. The runtime role ARN is a * combination of account ID, role name, and role type using the following format: * arn:partition:service:region:account:resource.

For example, * arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted * runtime role ARN.

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

The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. * The runtime role can be a cross-account IAM role. The runtime role ARN is a * combination of account ID, role name, and role type using the following format: * arn:partition:service:region:account:resource.

For example, * arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted * runtime role ARN.

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

The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. * The runtime role can be a cross-account IAM role. The runtime role ARN is a * combination of account ID, role name, and role type using the following format: * arn:partition:service:region:account:resource.

For example, * arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted * runtime role ARN.

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

The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. * The runtime role can be a cross-account IAM role. The runtime role ARN is a * combination of account ID, role name, and role type using the following format: * arn:partition:service:region:account:resource.

For example, * arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted * runtime role ARN.

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

The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. * The runtime role can be a cross-account IAM role. The runtime role ARN is a * combination of account ID, role name, and role type using the following format: * arn:partition:service:region:account:resource.

For example, * arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted * runtime role ARN.

*/ inline AddJobFlowStepsRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;} private: Aws::String m_jobFlowId; bool m_jobFlowIdHasBeenSet = false; Aws::Vector m_steps; bool m_stepsHasBeenSet = false; Aws::String m_executionRoleArn; bool m_executionRoleArnHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws