/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECS { namespace Model { /** *

The details of the Auto Scaling group capacity provider to * update.

See Also:

AWS * API Reference

*/ class AutoScalingGroupProviderUpdate { public: AWS_ECS_API AutoScalingGroupProviderUpdate(); AWS_ECS_API AutoScalingGroupProviderUpdate(Aws::Utils::Json::JsonView jsonValue); AWS_ECS_API AutoScalingGroupProviderUpdate& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The managed scaling settings for the Auto Scaling group capacity * provider.

*/ inline const ManagedScaling& GetManagedScaling() const{ return m_managedScaling; } /** *

The managed scaling settings for the Auto Scaling group capacity * provider.

*/ inline bool ManagedScalingHasBeenSet() const { return m_managedScalingHasBeenSet; } /** *

The managed scaling settings for the Auto Scaling group capacity * provider.

*/ inline void SetManagedScaling(const ManagedScaling& value) { m_managedScalingHasBeenSet = true; m_managedScaling = value; } /** *

The managed scaling settings for the Auto Scaling group capacity * provider.

*/ inline void SetManagedScaling(ManagedScaling&& value) { m_managedScalingHasBeenSet = true; m_managedScaling = std::move(value); } /** *

The managed scaling settings for the Auto Scaling group capacity * provider.

*/ inline AutoScalingGroupProviderUpdate& WithManagedScaling(const ManagedScaling& value) { SetManagedScaling(value); return *this;} /** *

The managed scaling settings for the Auto Scaling group capacity * provider.

*/ inline AutoScalingGroupProviderUpdate& WithManagedScaling(ManagedScaling&& value) { SetManagedScaling(std::move(value)); return *this;} /** *

The managed termination protection setting to use for the Auto Scaling group * capacity provider. This determines whether the Auto Scaling group has managed * termination protection.

When using managed termination * protection, managed scaling must also be used otherwise managed termination * protection doesn't work.

When managed termination protection * is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling group * that contain tasks from being terminated during a scale-in action. The Auto * Scaling group and each instance in the Auto Scaling group must have instance * protection from scale-in actions on. For more information, see Instance * Protection in the Auto Scaling User Guide.

When managed * termination protection is off, your Amazon EC2 instances aren't protected from * termination when the Auto Scaling group scales in.

*/ inline const ManagedTerminationProtection& GetManagedTerminationProtection() const{ return m_managedTerminationProtection; } /** *

The managed termination protection setting to use for the Auto Scaling group * capacity provider. This determines whether the Auto Scaling group has managed * termination protection.

When using managed termination * protection, managed scaling must also be used otherwise managed termination * protection doesn't work.

When managed termination protection * is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling group * that contain tasks from being terminated during a scale-in action. The Auto * Scaling group and each instance in the Auto Scaling group must have instance * protection from scale-in actions on. For more information, see Instance * Protection in the Auto Scaling User Guide.

When managed * termination protection is off, your Amazon EC2 instances aren't protected from * termination when the Auto Scaling group scales in.

*/ inline bool ManagedTerminationProtectionHasBeenSet() const { return m_managedTerminationProtectionHasBeenSet; } /** *

The managed termination protection setting to use for the Auto Scaling group * capacity provider. This determines whether the Auto Scaling group has managed * termination protection.

When using managed termination * protection, managed scaling must also be used otherwise managed termination * protection doesn't work.

When managed termination protection * is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling group * that contain tasks from being terminated during a scale-in action. The Auto * Scaling group and each instance in the Auto Scaling group must have instance * protection from scale-in actions on. For more information, see Instance * Protection in the Auto Scaling User Guide.

When managed * termination protection is off, your Amazon EC2 instances aren't protected from * termination when the Auto Scaling group scales in.

*/ inline void SetManagedTerminationProtection(const ManagedTerminationProtection& value) { m_managedTerminationProtectionHasBeenSet = true; m_managedTerminationProtection = value; } /** *

The managed termination protection setting to use for the Auto Scaling group * capacity provider. This determines whether the Auto Scaling group has managed * termination protection.

When using managed termination * protection, managed scaling must also be used otherwise managed termination * protection doesn't work.

When managed termination protection * is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling group * that contain tasks from being terminated during a scale-in action. The Auto * Scaling group and each instance in the Auto Scaling group must have instance * protection from scale-in actions on. For more information, see Instance * Protection in the Auto Scaling User Guide.

When managed * termination protection is off, your Amazon EC2 instances aren't protected from * termination when the Auto Scaling group scales in.

*/ inline void SetManagedTerminationProtection(ManagedTerminationProtection&& value) { m_managedTerminationProtectionHasBeenSet = true; m_managedTerminationProtection = std::move(value); } /** *

The managed termination protection setting to use for the Auto Scaling group * capacity provider. This determines whether the Auto Scaling group has managed * termination protection.

When using managed termination * protection, managed scaling must also be used otherwise managed termination * protection doesn't work.

When managed termination protection * is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling group * that contain tasks from being terminated during a scale-in action. The Auto * Scaling group and each instance in the Auto Scaling group must have instance * protection from scale-in actions on. For more information, see Instance * Protection in the Auto Scaling User Guide.

When managed * termination protection is off, your Amazon EC2 instances aren't protected from * termination when the Auto Scaling group scales in.

*/ inline AutoScalingGroupProviderUpdate& WithManagedTerminationProtection(const ManagedTerminationProtection& value) { SetManagedTerminationProtection(value); return *this;} /** *

The managed termination protection setting to use for the Auto Scaling group * capacity provider. This determines whether the Auto Scaling group has managed * termination protection.

When using managed termination * protection, managed scaling must also be used otherwise managed termination * protection doesn't work.

When managed termination protection * is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling group * that contain tasks from being terminated during a scale-in action. The Auto * Scaling group and each instance in the Auto Scaling group must have instance * protection from scale-in actions on. For more information, see Instance * Protection in the Auto Scaling User Guide.

When managed * termination protection is off, your Amazon EC2 instances aren't protected from * termination when the Auto Scaling group scales in.

*/ inline AutoScalingGroupProviderUpdate& WithManagedTerminationProtection(ManagedTerminationProtection&& value) { SetManagedTerminationProtection(std::move(value)); return *this;} private: ManagedScaling m_managedScaling; bool m_managedScalingHasBeenSet = false; ManagedTerminationProtection m_managedTerminationProtection; bool m_managedTerminationProtectionHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws