Package com.twilio.rest.sync.v1.service
Class DocumentCreator
- java.lang.Object
-
- com.twilio.base.Creator<Document>
-
- com.twilio.rest.sync.v1.service.DocumentCreator
-
-
Constructor Summary
Constructors Constructor Description DocumentCreator(String pathServiceSid)
Construct a new DocumentCreator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Document
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.DocumentCreator
setData(Map<String,Object> data)
JSON data to be stored in this document.DocumentCreator
setTtl(Integer ttl)
Time-to-live of this Document in seconds, defaults to no expiration.DocumentCreator
setUniqueName(String uniqueName)
Human-readable name for this document.-
Methods inherited from class com.twilio.base.Creator
create, createAsync, createAsync
-
-
-
-
Constructor Detail
-
DocumentCreator
public DocumentCreator(String pathServiceSid)
Construct a new DocumentCreator.- Parameters:
pathServiceSid
- The service_sid
-
-
Method Detail
-
setUniqueName
public DocumentCreator setUniqueName(String uniqueName)
Human-readable name for this document.- Parameters:
uniqueName
- Human-readable name for this document- Returns:
- this
-
setData
public DocumentCreator setData(Map<String,Object> data)
JSON data to be stored in this document.- Parameters:
data
- JSON data to be stored in this document- Returns:
- this
-
setTtl
public DocumentCreator setTtl(Integer ttl)
Time-to-live of this Document in seconds, defaults to no expiration. In the range [1, 31 536 000 (1 year)], or 0 for infinity..- Parameters:
ttl
- Time-to-live of this Document in seconds, defaults to no expiration.- Returns:
- this
-
create
public Document create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
-
-