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

A request to configure the number of replicas in a shard

See * Also:

AWS * API Reference

*/ class ReplicaConfigurationRequest { public: AWS_MEMORYDB_API ReplicaConfigurationRequest(); AWS_MEMORYDB_API ReplicaConfigurationRequest(Aws::Utils::Json::JsonView jsonValue); AWS_MEMORYDB_API ReplicaConfigurationRequest& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEMORYDB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of replicas to scale up or down to

*/ inline int GetReplicaCount() const{ return m_replicaCount; } /** *

The number of replicas to scale up or down to

*/ inline bool ReplicaCountHasBeenSet() const { return m_replicaCountHasBeenSet; } /** *

The number of replicas to scale up or down to

*/ inline void SetReplicaCount(int value) { m_replicaCountHasBeenSet = true; m_replicaCount = value; } /** *

The number of replicas to scale up or down to

*/ inline ReplicaConfigurationRequest& WithReplicaCount(int value) { SetReplicaCount(value); return *this;} private: int m_replicaCount; bool m_replicaCountHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws