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

Represents the progress of an online resharding operation.

See * Also:

AWS * API Reference

*/ class SlotMigration { public: AWS_MEMORYDB_API SlotMigration(); AWS_MEMORYDB_API SlotMigration(Aws::Utils::Json::JsonView jsonValue); AWS_MEMORYDB_API SlotMigration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEMORYDB_API Aws::Utils::Json::JsonValue Jsonize() 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 MemoryDB } // namespace Aws