/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElastiCache { namespace Model { /** *

The status of an online resharding operation.

See Also:

AWS * API Reference

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

Represents the progress of an online resharding operation.

*/ inline const SlotMigration& GetSlotMigration() const{ return m_slotMigration; } /** *

Represents the progress of an online resharding operation.

*/ inline bool SlotMigrationHasBeenSet() const { return m_slotMigrationHasBeenSet; } /** *

Represents the progress of an online resharding operation.

*/ inline void SetSlotMigration(const SlotMigration& value) { m_slotMigrationHasBeenSet = true; m_slotMigration = value; } /** *

Represents the progress of an online resharding operation.

*/ inline void SetSlotMigration(SlotMigration&& value) { m_slotMigrationHasBeenSet = true; m_slotMigration = std::move(value); } /** *

Represents the progress of an online resharding operation.

*/ inline ReshardingStatus& WithSlotMigration(const SlotMigration& value) { SetSlotMigration(value); return *this;} /** *

Represents the progress of an online resharding operation.

*/ inline ReshardingStatus& WithSlotMigration(SlotMigration&& value) { SetSlotMigration(std::move(value)); return *this;} private: SlotMigration m_slotMigration; bool m_slotMigrationHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws