/** * 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 { /** *

Reports progress on replacing instances that are in the Auto Scaling * group.

See Also:

AWS * API Reference

*/ class InstanceRefreshLivePoolProgress { public: AWS_AUTOSCALING_API InstanceRefreshLivePoolProgress(); AWS_AUTOSCALING_API InstanceRefreshLivePoolProgress(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_AUTOSCALING_API InstanceRefreshLivePoolProgress& 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; /** *

The percentage of instances in the Auto Scaling group that have been * replaced. For each instance replacement, Amazon EC2 Auto Scaling tracks the * instance's health status and warm-up time. When the instance's health status * changes to healthy and the specified warm-up time passes, the instance is * considered updated and is added to the percentage complete.

*/ inline int GetPercentageComplete() const{ return m_percentageComplete; } /** *

The percentage of instances in the Auto Scaling group that have been * replaced. For each instance replacement, Amazon EC2 Auto Scaling tracks the * instance's health status and warm-up time. When the instance's health status * changes to healthy and the specified warm-up time passes, the instance is * considered updated and is added to the percentage complete.

*/ inline bool PercentageCompleteHasBeenSet() const { return m_percentageCompleteHasBeenSet; } /** *

The percentage of instances in the Auto Scaling group that have been * replaced. For each instance replacement, Amazon EC2 Auto Scaling tracks the * instance's health status and warm-up time. When the instance's health status * changes to healthy and the specified warm-up time passes, the instance is * considered updated and is added to the percentage complete.

*/ inline void SetPercentageComplete(int value) { m_percentageCompleteHasBeenSet = true; m_percentageComplete = value; } /** *

The percentage of instances in the Auto Scaling group that have been * replaced. For each instance replacement, Amazon EC2 Auto Scaling tracks the * instance's health status and warm-up time. When the instance's health status * changes to healthy and the specified warm-up time passes, the instance is * considered updated and is added to the percentage complete.

*/ inline InstanceRefreshLivePoolProgress& WithPercentageComplete(int value) { SetPercentageComplete(value); return *this;} /** *

The number of instances remaining to update.

*/ inline int GetInstancesToUpdate() const{ return m_instancesToUpdate; } /** *

The number of instances remaining to update.

*/ inline bool InstancesToUpdateHasBeenSet() const { return m_instancesToUpdateHasBeenSet; } /** *

The number of instances remaining to update.

*/ inline void SetInstancesToUpdate(int value) { m_instancesToUpdateHasBeenSet = true; m_instancesToUpdate = value; } /** *

The number of instances remaining to update.

*/ inline InstanceRefreshLivePoolProgress& WithInstancesToUpdate(int value) { SetInstancesToUpdate(value); return *this;} private: int m_percentageComplete; bool m_percentageCompleteHasBeenSet = false; int m_instancesToUpdate; bool m_instancesToUpdateHasBeenSet = false; }; } // namespace Model } // namespace AutoScaling } // namespace Aws