name ?? null; if (isset($name)) { return "/_data_stream/$name"; } throw new RuntimeException('Missing parameter for the endpoint indices.create_data_stream'); } public function getParamWhitelist(): array { return [ ]; } public function getMethod(): string { return 'PUT'; } public function setName($name): CreateDataStream { if (isset($name) !== true) { return $this; } $this->name = $name; return $this; } }