job_id ?? null; if (isset($job_id)) { return "/_ml/anomaly_detectors/$job_id"; } return "/_ml/anomaly_detectors"; } public function getParamWhitelist(): array { return [ 'allow_no_match', 'allow_no_jobs', 'exclude_generated' ]; } public function getMethod(): string { return 'GET'; } public function setJobId($job_id): GetJobs { if (isset($job_id) !== true) { return $this; } $this->job_id = $job_id; return $this; } }