/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace AutoScaling { namespace Model { /** *

Describes an instance reuse policy for a warm pool.

For more * information, see Warm * pools for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User * Guide.

See Also:

AWS * API Reference

*/ class InstanceReusePolicy { public: AWS_AUTOSCALING_API InstanceReusePolicy(); AWS_AUTOSCALING_API InstanceReusePolicy(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_AUTOSCALING_API InstanceReusePolicy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Specifies whether instances in the Auto Scaling group can be returned to the * warm pool on scale in.

*/ inline bool GetReuseOnScaleIn() const{ return m_reuseOnScaleIn; } /** *

Specifies whether instances in the Auto Scaling group can be returned to the * warm pool on scale in.

*/ inline bool ReuseOnScaleInHasBeenSet() const { return m_reuseOnScaleInHasBeenSet; } /** *

Specifies whether instances in the Auto Scaling group can be returned to the * warm pool on scale in.

*/ inline void SetReuseOnScaleIn(bool value) { m_reuseOnScaleInHasBeenSet = true; m_reuseOnScaleIn = value; } /** *

Specifies whether instances in the Auto Scaling group can be returned to the * warm pool on scale in.

*/ inline InstanceReusePolicy& WithReuseOnScaleIn(bool value) { SetReuseOnScaleIn(value); return *this;} private: bool m_reuseOnScaleIn; bool m_reuseOnScaleInHasBeenSet = false; }; } // namespace Model } // namespace AutoScaling } // namespace Aws