public function setRestartPolicy(RestartPolicy $restartPolicy = null) { $this->restartPolicy = $restartPolicy; return $this; }