/** * 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 AWS_EMR_API AddJobFlowStepsRequest : public EMRRequest { public: 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::String SerializePayload() const override; 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; } private: Aws::String m_jobFlowId; bool m_jobFlowIdHasBeenSet; Aws::Vector m_steps; bool m_stepsHasBeenSet; }; } // namespace Model } // namespace EMR } // namespace Aws