/** * 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 sharding properties of a cluster

See * Also:

AWS * API Reference

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

The number of shards in the cluster

*/ inline int GetShardCount() const{ return m_shardCount; } /** *

The number of shards in the cluster

*/ inline bool ShardCountHasBeenSet() const { return m_shardCountHasBeenSet; } /** *

The number of shards in the cluster

*/ inline void SetShardCount(int value) { m_shardCountHasBeenSet = true; m_shardCount = value; } /** *

The number of shards in the cluster

*/ inline ShardConfigurationRequest& WithShardCount(int value) { SetShardCount(value); return *this;} private: int m_shardCount; bool m_shardCountHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws