job_id ?? null; if (isset($job_id)) { return "/_ml/anomaly_detectors/$job_id/_update"; } throw new RuntimeException('Missing parameter for the endpoint ml.update_job'); } public function getParamWhitelist(): array { return []; } public function getMethod(): string { return 'POST'; } public function setBody($body): UpdateJob { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } public function setJobId($job_id): UpdateJob { if (isset($job_id) !== true) { return $this; } $this->job_id = $job_id; return $this; } }