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