/** * 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 CancelSteps operation.

See * Also:

AWS * API Reference

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

The ClusterID for the specified steps that will be canceled. Use * RunJobFlow and ListClusters to get ClusterIDs.

*/ inline const Aws::String& GetClusterId() const{ return m_clusterId; } /** *

The ClusterID for the specified steps that will be canceled. Use * RunJobFlow and ListClusters to get ClusterIDs.

*/ inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; } /** *

The ClusterID for the specified steps that will be canceled. Use * RunJobFlow and ListClusters to get ClusterIDs.

*/ inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; } /** *

The ClusterID for the specified steps that will be canceled. Use * RunJobFlow and ListClusters to get ClusterIDs.

*/ inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); } /** *

The ClusterID for the specified steps that will be canceled. Use * RunJobFlow and ListClusters to get ClusterIDs.

*/ inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); } /** *

The ClusterID for the specified steps that will be canceled. Use * RunJobFlow and ListClusters to get ClusterIDs.

*/ inline CancelStepsRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;} /** *

The ClusterID for the specified steps that will be canceled. Use * RunJobFlow and ListClusters to get ClusterIDs.

*/ inline CancelStepsRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;} /** *

The ClusterID for the specified steps that will be canceled. Use * RunJobFlow and ListClusters to get ClusterIDs.

*/ inline CancelStepsRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;} /** *

The list of StepIDs to cancel. Use ListSteps to get steps * and their states for the specified cluster.

*/ inline const Aws::Vector& GetStepIds() const{ return m_stepIds; } /** *

The list of StepIDs to cancel. Use ListSteps to get steps * and their states for the specified cluster.

*/ inline bool StepIdsHasBeenSet() const { return m_stepIdsHasBeenSet; } /** *

The list of StepIDs to cancel. Use ListSteps to get steps * and their states for the specified cluster.

*/ inline void SetStepIds(const Aws::Vector& value) { m_stepIdsHasBeenSet = true; m_stepIds = value; } /** *

The list of StepIDs to cancel. Use ListSteps to get steps * and their states for the specified cluster.

*/ inline void SetStepIds(Aws::Vector&& value) { m_stepIdsHasBeenSet = true; m_stepIds = std::move(value); } /** *

The list of StepIDs to cancel. Use ListSteps to get steps * and their states for the specified cluster.

*/ inline CancelStepsRequest& WithStepIds(const Aws::Vector& value) { SetStepIds(value); return *this;} /** *

The list of StepIDs to cancel. Use ListSteps to get steps * and their states for the specified cluster.

*/ inline CancelStepsRequest& WithStepIds(Aws::Vector&& value) { SetStepIds(std::move(value)); return *this;} /** *

The list of StepIDs to cancel. Use ListSteps to get steps * and their states for the specified cluster.

*/ inline CancelStepsRequest& AddStepIds(const Aws::String& value) { m_stepIdsHasBeenSet = true; m_stepIds.push_back(value); return *this; } /** *

The list of StepIDs to cancel. Use ListSteps to get steps * and their states for the specified cluster.

*/ inline CancelStepsRequest& AddStepIds(Aws::String&& value) { m_stepIdsHasBeenSet = true; m_stepIds.push_back(std::move(value)); return *this; } /** *

The list of StepIDs to cancel. Use ListSteps to get steps * and their states for the specified cluster.

*/ inline CancelStepsRequest& AddStepIds(const char* value) { m_stepIdsHasBeenSet = true; m_stepIds.push_back(value); return *this; } /** *

The option to choose to cancel RUNNING steps. By default, the * value is SEND_INTERRUPT.

*/ inline const StepCancellationOption& GetStepCancellationOption() const{ return m_stepCancellationOption; } /** *

The option to choose to cancel RUNNING steps. By default, the * value is SEND_INTERRUPT.

*/ inline bool StepCancellationOptionHasBeenSet() const { return m_stepCancellationOptionHasBeenSet; } /** *

The option to choose to cancel RUNNING steps. By default, the * value is SEND_INTERRUPT.

*/ inline void SetStepCancellationOption(const StepCancellationOption& value) { m_stepCancellationOptionHasBeenSet = true; m_stepCancellationOption = value; } /** *

The option to choose to cancel RUNNING steps. By default, the * value is SEND_INTERRUPT.

*/ inline void SetStepCancellationOption(StepCancellationOption&& value) { m_stepCancellationOptionHasBeenSet = true; m_stepCancellationOption = std::move(value); } /** *

The option to choose to cancel RUNNING steps. By default, the * value is SEND_INTERRUPT.

*/ inline CancelStepsRequest& WithStepCancellationOption(const StepCancellationOption& value) { SetStepCancellationOption(value); return *this;} /** *

The option to choose to cancel RUNNING steps. By default, the * value is SEND_INTERRUPT.

*/ inline CancelStepsRequest& WithStepCancellationOption(StepCancellationOption&& value) { SetStepCancellationOption(std::move(value)); return *this;} private: Aws::String m_clusterId; bool m_clusterIdHasBeenSet = false; Aws::Vector m_stepIds; bool m_stepIdsHasBeenSet = false; StepCancellationOption m_stepCancellationOption; bool m_stepCancellationOptionHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws