/** * 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 AutoScaling { namespace Model { /** */ class SetDesiredCapacityRequest : public AutoScalingRequest { public: AWS_AUTOSCALING_API SetDesiredCapacityRequest(); // 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 "SetDesiredCapacity"; } AWS_AUTOSCALING_API Aws::String SerializePayload() const override; protected: AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the Auto Scaling group.

*/ inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; } /** *

The name of the Auto Scaling group.

*/ inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); } /** *

The name of the Auto Scaling group.

*/ inline SetDesiredCapacityRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;} /** *

The name of the Auto Scaling group.

*/ inline SetDesiredCapacityRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;} /** *

The name of the Auto Scaling group.

*/ inline SetDesiredCapacityRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;} /** *

The desired capacity is the initial capacity of the Auto Scaling group after * this operation completes and the capacity it attempts to maintain.

*/ inline int GetDesiredCapacity() const{ return m_desiredCapacity; } /** *

The desired capacity is the initial capacity of the Auto Scaling group after * this operation completes and the capacity it attempts to maintain.

*/ inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; } /** *

The desired capacity is the initial capacity of the Auto Scaling group after * this operation completes and the capacity it attempts to maintain.

*/ inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; } /** *

The desired capacity is the initial capacity of the Auto Scaling group after * this operation completes and the capacity it attempts to maintain.

*/ inline SetDesiredCapacityRequest& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;} /** *

Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to * complete before initiating a scaling activity to set your Auto Scaling group to * its new capacity. By default, Amazon EC2 Auto Scaling does not honor the * cooldown period during manual scaling activities.

*/ inline bool GetHonorCooldown() const{ return m_honorCooldown; } /** *

Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to * complete before initiating a scaling activity to set your Auto Scaling group to * its new capacity. By default, Amazon EC2 Auto Scaling does not honor the * cooldown period during manual scaling activities.

*/ inline bool HonorCooldownHasBeenSet() const { return m_honorCooldownHasBeenSet; } /** *

Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to * complete before initiating a scaling activity to set your Auto Scaling group to * its new capacity. By default, Amazon EC2 Auto Scaling does not honor the * cooldown period during manual scaling activities.

*/ inline void SetHonorCooldown(bool value) { m_honorCooldownHasBeenSet = true; m_honorCooldown = value; } /** *

Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to * complete before initiating a scaling activity to set your Auto Scaling group to * its new capacity. By default, Amazon EC2 Auto Scaling does not honor the * cooldown period during manual scaling activities.

*/ inline SetDesiredCapacityRequest& WithHonorCooldown(bool value) { SetHonorCooldown(value); return *this;} private: Aws::String m_autoScalingGroupName; bool m_autoScalingGroupNameHasBeenSet = false; int m_desiredCapacity; bool m_desiredCapacityHasBeenSet = false; bool m_honorCooldown; bool m_honorCooldownHasBeenSet = false; }; } // namespace Model } // namespace AutoScaling } // namespace Aws