public class SyncListItemUpdater extends Updater<SyncListItem>
Constructor and Description |
---|
SyncListItemUpdater(String pathServiceSid,
String pathListSid,
Integer pathIndex)
Construct a new SyncListItemUpdater.
|
Modifier and Type | Method and Description |
---|---|
SyncListItemUpdater |
setCollectionTtl(Integer collectionTtl)
How long, in
seconds, before the List Item's parent Sync List expires (time-to-live)
and is deleted.
|
SyncListItemUpdater |
setData(Map<String,Object> data)
A JSON string that represents an arbitrary, schema-less object that the List
Item stores.
|
SyncListItemUpdater |
setIfMatch(String ifMatch)
If provided, applies this mutation if (and only if) the “revision” field of
this map
item] matches the provided value.
|
SyncListItemUpdater |
setItemTtl(Integer itemTtl)
How long, in
seconds, before the List Item expires (time-to-live) and is deleted..
|
SyncListItemUpdater |
setTtl(Integer ttl)
An alias for `item_ttl`.
|
SyncListItem |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public SyncListItemUpdater(String pathServiceSid, String pathListSid, Integer pathIndex)
pathServiceSid
- The SID of the Sync Service with the Sync List Item
resource to updatepathListSid
- The SID of the Sync List with the Sync List Item resource
to updatepathIndex
- The index of the Sync List Item resource to updatepublic SyncListItemUpdater setData(Map<String,Object> data)
data
- A JSON string that represents an arbitrary, schema-less object
that the List Item storespublic SyncListItemUpdater setTtl(Integer ttl)
ttl
- An alias for item_ttlpublic SyncListItemUpdater setItemTtl(Integer itemTtl)
itemTtl
- How long, in seconds, before the List Item expirespublic SyncListItemUpdater setCollectionTtl(Integer collectionTtl)
collectionTtl
- How long, in seconds, before the List Item's parent
Sync List expirespublic SyncListItemUpdater setIfMatch(String ifMatch)
ifMatch
- The If-Match HTTP request headerpublic SyncListItem update(TwilioRestClient client)
update
in class Updater<SyncListItem>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.