As there are some tenant/ landlord legalities that come into play here, that are not in the purview of the FBC, the location as described would meet the requirements of 501.4.
Per the section of the code - 501.4 Location. Water heaters and storage tanks shall be located and connected so as to provide access for observation, maintenance, servicing and replacement. I would say yes the location is acceptable.