Constructor and Description |
---|
ServiceUpdater(String pathSid)
Construct a new ServiceUpdater.
|
Modifier and Type | Method and Description |
---|---|
ServiceUpdater |
setAclEnabled(Boolean aclEnabled)
Whether token identities in the Service must be granted access to Sync
objects by using the Permissions
resource..
|
ServiceUpdater |
setFriendlyName(String friendlyName)
A string that you assign to describe the resource..
|
ServiceUpdater |
setReachabilityDebouncingEnabled(Boolean reachabilityDebouncingEnabled)
Whether every `endpoint_disconnected` event should occur after a configurable
delay.
|
ServiceUpdater |
setReachabilityDebouncingWindow(Integer reachabilityDebouncingWindow)
The reachability event delay in milliseconds if
`reachability_debouncing_enabled` = `true`.
|
ServiceUpdater |
setReachabilityWebhooksEnabled(Boolean reachabilityWebhooksEnabled)
Whether the service instance should call `webhook_url` when client endpoints
connect to Sync.
|
ServiceUpdater |
setWebhooksFromRestEnabled(Boolean webhooksFromRestEnabled)
Whether the Service instance should call `webhook_url` when the REST API is
used to update Sync objects.
|
ServiceUpdater |
setWebhookUrl(String webhookUrl)
The URL we should call when Sync objects are manipulated..
|
ServiceUpdater |
setWebhookUrl(URI webhookUrl)
The URL we should call when Sync objects are manipulated..
|
Service |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public ServiceUpdater(String pathSid)
pathSid
- The SID of the Service resource to updatepublic ServiceUpdater setWebhookUrl(URI webhookUrl)
webhookUrl
- The URL we should call when Sync objects are manipulatedpublic ServiceUpdater setWebhookUrl(String webhookUrl)
webhookUrl
- The URL we should call when Sync objects are manipulatedpublic ServiceUpdater setFriendlyName(String friendlyName)
friendlyName
- A string that you assign to describe the resourcepublic ServiceUpdater setReachabilityWebhooksEnabled(Boolean reachabilityWebhooksEnabled)
reachabilityWebhooksEnabled
- Whether the service instance should call
webhook_url when client endpoints connect
to Syncpublic ServiceUpdater setAclEnabled(Boolean aclEnabled)
aclEnabled
- Whether token identities in the Service must be granted
access to Sync objects by using the Permissions resourcepublic ServiceUpdater setReachabilityDebouncingEnabled(Boolean reachabilityDebouncingEnabled)
reachabilityDebouncingEnabled
- Whether every endpoint_disconnected
event occurs after a configurable delaypublic ServiceUpdater setReachabilityDebouncingWindow(Integer reachabilityDebouncingWindow)
reachabilityDebouncingWindow
- The reachability event delay in
millisecondspublic ServiceUpdater setWebhooksFromRestEnabled(Boolean webhooksFromRestEnabled)
webhooksFromRestEnabled
- Whether the Service instance should call
webhook_url when the REST API is used to
update Sync objectspublic Service update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.