Class SyncListItemUpdater


  • public class SyncListItemUpdater
    extends Updater<SyncListItem>
    PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
    • Constructor Detail

      • SyncListItemUpdater

        public SyncListItemUpdater​(String pathServiceSid,
                                   String pathListSid,
                                   Integer pathIndex)
        Construct a new SyncListItemUpdater.
        Parameters:
        pathServiceSid - The SID of the Sync Service with the Sync List Item resource to update
        pathListSid - The SID of the Sync List with the Sync List Item resource to update
        pathIndex - The index of the Sync List Item resource to update
    • Method Detail

      • setData

        public SyncListItemUpdater setData​(Map<String,​Object> data)
        A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length..
        Parameters:
        data - A JSON string that represents an arbitrary, schema-less object that the List Item stores
        Returns:
        this
      • setTtl

        public SyncListItemUpdater setTtl​(Integer ttl)
        An alias for `item_ttl`. If both parameters are provided, this value is ignored..
        Parameters:
        ttl - An alias for item_ttl
        Returns:
        this
      • setItemTtl

        public SyncListItemUpdater setItemTtl​(Integer itemTtl)
        How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item might not be deleted immediately after it expires..
        Parameters:
        itemTtl - How long, in seconds, before the List Item expires
        Returns:
        this
      • setCollectionTtl

        public SyncListItemUpdater setCollectionTtl​(Integer collectionTtl)
        How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List might not be deleted immediately after it expires..
        Parameters:
        collectionTtl - How long, in seconds, before the List Item's parent Sync List expires
        Returns:
        this
      • update

        public SyncListItem update​(TwilioRestClient client)
        Make the request to the Twilio API to perform the update.
        Specified by:
        update in class Updater<SyncListItem>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Updated SyncListItem