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