\Bitrix\Main\Grid\Panel\Snippet\Button public \Bitrix\Main\Grid\Panel\Snippet\Button::setId( string $id = "" );
Method sets button ID and returns object of class Snippet\Button.
Snippet\Button