The device which is being used in the lines represented above is definitely personification. The word ''thirsty'' usually describes the state of alive beings, so water there obtains a human meaning which is common for personification characteristics.