Constructor and Description |
---|
DocumentUpdater(String pathServiceSid,
String pathSid)
Construct a new DocumentUpdater.
|
Modifier and Type | Method and Description |
---|---|
DocumentUpdater |
setData(Map<String,Object> data)
A JSON string that represents an arbitrary, schema-less object that the Sync
Document stores.
|
DocumentUpdater |
setIfMatch(String ifMatch)
The If-Match HTTP request header.
|
DocumentUpdater |
setTtl(Integer ttl)
How long, in
seconds, before the Sync Document expires and is deleted (time-to-live)..
|
Document |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public DocumentUpdater setData(Map<String,Object> data)
data
- A JSON string that represents an arbitrary, schema-less object
that the Sync Document storespublic DocumentUpdater setTtl(Integer ttl)
ttl
- How long, in seconds, before the Document resource expires and is
deletedpublic DocumentUpdater setIfMatch(String ifMatch)
ifMatch
- The If-Match HTTP request headerpublic Document update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.