package Ġscope functions Ċ Ċ import Ġdomain . Payload Builder Ċ import Ġdomain . process Ċ Ċ /** Ċ Ġ* ĠWe Ġare Ġcreating Ġan Ġobject , Ġlike Ġa Ġbuilder Ġand Ġthen Ġwe Ġare Ġcalling Ċ Ġ* Ġmany Ġmethods Ġon Ġthat Ġobject . ĠWe Ġalways Ġrepeat Ġthe Ġobject Ġreference Ġto Ġcall Ġthe Ċ Ġ* Ġmethods Ġupon . ĠIs Ġthere Ġa Ġbetter Ġway Ġin ĠKotlin Ġto Ġdo Ġthis ? Ċ Ġ*/ Ċ Ċ val Ġpayload Builder Ġ= ĠPayload Builder () Ċ payload Builder . with Id (" id ") Ċ payload Builder . with Random (" 1 2 3 4 ") Ċ payload Builder . with Test (" test ") Ċ payload Builder . with Update (" update ") Ċ payload Builder . with Text (" Hello ") Ċ Ċ process ( payload Builder . build ()) Ċ