A ball valve has a perforated ball inside that pivots when the handle in turned. When the handle is inline with the pipes, the the ball turns revealing a hole that allows water to flow through. When the handle is pivoted 90-degrees the ball turns providing a solid wall that prevents water from flowing through.
Ball valves are reliable and durable making them a recommended choice for rainwater tanks.