id ?? null; if (isset($id)) { return "/_logstash/pipeline/$id"; } throw new RuntimeException('Missing parameter for the endpoint logstash.put_pipeline'); } public function getParamWhitelist(): array { return [ ]; } public function getMethod(): string { return 'PUT'; } public function setBody($body): PutPipeline { if (isset($body) !== true) { return $this; } $this->body = $body; return $this; } }