policy ?? null; if (isset($policy)) { return "/_ilm/policy/$policy"; } throw new RuntimeException('Missing parameter for the endpoint ilm.put_lifecycle'); } public function getParamWhitelist(): array { return [ ]; } public function getMethod(): string { return 'PUT'; } public function setBody($body): PutLifecycle { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } public function setPolicy($policy): PutLifecycle { if (isset($policy) !== true) { return $this; } $this->policy = $policy; return $this; } }