/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace EMR { namespace Model { /** */ class ModifyClusterRequest : public EMRRequest { public: AWS_EMR_API ModifyClusterRequest(); // 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 "ModifyCluster"; } AWS_EMR_API Aws::String SerializePayload() const override; AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique identifier of the cluster.

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

The unique identifier of the cluster.

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

The unique identifier of the cluster.

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

The unique identifier of the cluster.

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

The unique identifier of the cluster.

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

The unique identifier of the cluster.

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

The unique identifier of the cluster.

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

The unique identifier of the cluster.

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

The number of steps that can be executed concurrently. You can specify a * minimum of 1 step and a maximum of 256 steps. We recommend that you do not * change this parameter while steps are running or the * ActionOnFailure setting may not behave as expected. For more * information see Step$ActionOnFailure.

*/ inline int GetStepConcurrencyLevel() const{ return m_stepConcurrencyLevel; } /** *

The number of steps that can be executed concurrently. You can specify a * minimum of 1 step and a maximum of 256 steps. We recommend that you do not * change this parameter while steps are running or the * ActionOnFailure setting may not behave as expected. For more * information see Step$ActionOnFailure.

*/ inline bool StepConcurrencyLevelHasBeenSet() const { return m_stepConcurrencyLevelHasBeenSet; } /** *

The number of steps that can be executed concurrently. You can specify a * minimum of 1 step and a maximum of 256 steps. We recommend that you do not * change this parameter while steps are running or the * ActionOnFailure setting may not behave as expected. For more * information see Step$ActionOnFailure.

*/ inline void SetStepConcurrencyLevel(int value) { m_stepConcurrencyLevelHasBeenSet = true; m_stepConcurrencyLevel = value; } /** *

The number of steps that can be executed concurrently. You can specify a * minimum of 1 step and a maximum of 256 steps. We recommend that you do not * change this parameter while steps are running or the * ActionOnFailure setting may not behave as expected. For more * information see Step$ActionOnFailure.

*/ inline ModifyClusterRequest& WithStepConcurrencyLevel(int value) { SetStepConcurrencyLevel(value); return *this;} private: Aws::String m_clusterId; bool m_clusterIdHasBeenSet = false; int m_stepConcurrencyLevel; bool m_stepConcurrencyLevelHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws