The vaccination requirement of section 14-51 relative to inoculation (vaccination) of dogs/cats shall not apply to any dog/cats belonging to a nonresident of the County/City kept within the County/City for not longer than 30 days, providing that the dog/cats shall, at all times while within the County/City, be kept confined within a building, enclosure, or vehicle or be under the restraint of the owner.