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