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