job_id ?? null; if (isset($job_id)) { return "/_ml/_delete_expired_data/$job_id"; } return "/_ml/_delete_expired_data"; } public function getParamWhitelist(): array { return [ 'requests_per_second', 'timeout' ]; } public function getMethod(): string { return 'DELETE'; } public function setBody($body): DeleteExpiredData { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } public function setJobId($job_id): DeleteExpiredData { if (isset($job_id) !== true) { return $this; } $this->job_id = $job_id; return $this; } }