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