setBucketsPath($bucketsPath); } /** * Set the format for this aggregation. * * @return $this */ public function setFormat(?string $format = null): self { return $this->setParam('format', $format); } }