/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The details of the Auto Scaling group capacity provider to
* update.See Also:
AWS
* API Reference
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