Parser and toString for RestartPolicy