name ?? null; if (isset($name)) { return "/_enrich/policy/$name/_execute"; } throw new RuntimeException('Missing parameter for the endpoint enrich.execute_policy'); } public function getParamWhitelist(): array { return [ 'wait_for_completion' ]; } public function getMethod(): string { return 'PUT'; } public function setName($name): ExecutePolicy { if (isset($name) !== true) { return $this; } $this->name = $name; return $this; } }