The bound-state solution of the generalized inhomogeneous Hirota equation