An Obata-type characterization of doubly-warped product K\''ahler manifolds