set Item With Ttl
abstract suspend fun setItemWithTtl(itemIndex: Long, itemData: <Error class: unknown class>, ttl: <Error class: unknown class>): SyncList.Item
Set Item in the SyncList.
Return
Item which has been set.
Parameters
item Index
Index of the item to set.
item Data
Item data to set as a JsonObject.
ttl
Time to live from now or Duration.INFINITE to indicate no expiry.
Throws
Twilio Exception
When error occurred while setting the Item.