public CreateClusterRequest withNumReplicasPerShard(Integer numReplicasPerShard) {
        setNumReplicasPerShard(numReplicasPerShard);
        return this;
    }
<p>
The number of replicas to apply to each shard. The default value is 1. The maximum is 5.
</p>

@param numReplicasPerShard
       The number of replicas to apply to each shard. The default value is 1. The maximum is 5.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-memorydb/src/main/java/com/amazonaws/services/memorydb/model/CreateClusterRequest.java