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

Specifies the ID of an Amazon EMR cluster where the managed scaling policy is * attached.

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

Specifies the ID of an Amazon EMR cluster where the managed scaling policy is * attached.

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

Specifies the ID of an Amazon EMR cluster where the managed scaling policy is * attached.

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

Specifies the ID of an Amazon EMR cluster where the managed scaling policy is * attached.

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

Specifies the ID of an Amazon EMR cluster where the managed scaling policy is * attached.

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

Specifies the ID of an Amazon EMR cluster where the managed scaling policy is * attached.

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

Specifies the ID of an Amazon EMR cluster where the managed scaling policy is * attached.

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

Specifies the ID of an Amazon EMR cluster where the managed scaling policy is * attached.

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

Specifies the constraints for the managed scaling policy.

*/ inline const ManagedScalingPolicy& GetManagedScalingPolicy() const{ return m_managedScalingPolicy; } /** *

Specifies the constraints for the managed scaling policy.

*/ inline bool ManagedScalingPolicyHasBeenSet() const { return m_managedScalingPolicyHasBeenSet; } /** *

Specifies the constraints for the managed scaling policy.

*/ inline void SetManagedScalingPolicy(const ManagedScalingPolicy& value) { m_managedScalingPolicyHasBeenSet = true; m_managedScalingPolicy = value; } /** *

Specifies the constraints for the managed scaling policy.

*/ inline void SetManagedScalingPolicy(ManagedScalingPolicy&& value) { m_managedScalingPolicyHasBeenSet = true; m_managedScalingPolicy = std::move(value); } /** *

Specifies the constraints for the managed scaling policy.

*/ inline PutManagedScalingPolicyRequest& WithManagedScalingPolicy(const ManagedScalingPolicy& value) { SetManagedScalingPolicy(value); return *this;} /** *

Specifies the constraints for the managed scaling policy.

*/ inline PutManagedScalingPolicyRequest& WithManagedScalingPolicy(ManagedScalingPolicy&& value) { SetManagedScalingPolicy(std::move(value)); return *this;} private: Aws::String m_clusterId; bool m_clusterIdHasBeenSet = false; ManagedScalingPolicy m_managedScalingPolicy; bool m_managedScalingPolicyHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws