/** * 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 ElastiCache { namespace Model { /** *

Represents the progress of an online resharding operation.

See * Also:

AWS * API Reference

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

The percentage of the slot migration that is complete.

*/ inline double GetProgressPercentage() const{ return m_progressPercentage; } /** *

The percentage of the slot migration that is complete.

*/ inline bool ProgressPercentageHasBeenSet() const { return m_progressPercentageHasBeenSet; } /** *

The percentage of the slot migration that is complete.

*/ inline void SetProgressPercentage(double value) { m_progressPercentageHasBeenSet = true; m_progressPercentage = value; } /** *

The percentage of the slot migration that is complete.

*/ inline SlotMigration& WithProgressPercentage(double value) { SetProgressPercentage(value); return *this;} private: double m_progressPercentage; bool m_progressPercentageHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws