Acting Prime Minister Richard Marles has indicated he does not see recognition of a Palestinian state as encouraging Hamas.