That would be some kind of prism. To answer the question more specifically, I would need to know the shape of the bases.
It is a polygonal prism.
A cylinder has parallel discs bases that are congruent in size.
A rectangular prism has congruent bases and parallelograms as lateral surfaces.
They are prisms.
A prism. A triangular prism has two congruent triangles as bases, rectangular prism, pentagonal prism, etc.
It is called a prism.
They are prisms. The bases may be any polygons with three or more sides.
Sounds like a rectangular solid to me, such as an elongated box.
A triangular prism.
A triangular prism or a cuboid as it seems would fit the given description
The figure would be a prism. However, congruent polygons in parallel planes are called bases.