The region consisting of all points in three-dimensional space within $3$ units of line segment $\overline{AB}$ has volume $216 \pi$. What is the length of $\overline{AB}$?

Let's think step by step and output the final answer within \boxed{}.
user