Package com.twilio.rest.sync.v1
Class ServiceUpdater
- java.lang.Object
-
- com.twilio.base.Updater<Service>
-
- com.twilio.rest.sync.v1.ServiceUpdater
-
-
Constructor Summary
Constructors Constructor Description ServiceUpdater(String pathSid)
Construct a new ServiceUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceUpdater
setAclEnabled(Boolean aclEnabled)
Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/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.-
Methods inherited from class com.twilio.base.Updater
update, updateAsync, updateAsync
-
-
-
-
Constructor Detail
-
ServiceUpdater
public ServiceUpdater(String pathSid)
Construct a new ServiceUpdater.- Parameters:
pathSid
- The SID of the Service resource to update
-
-
Method Detail
-
setWebhookUrl
public ServiceUpdater setWebhookUrl(URI webhookUrl)
The URL we should call when Sync objects are manipulated..- Parameters:
webhookUrl
- The URL we should call when Sync objects are manipulated- Returns:
- this
-
setWebhookUrl
public ServiceUpdater setWebhookUrl(String webhookUrl)
The URL we should call when Sync objects are manipulated..- Parameters:
webhookUrl
- The URL we should call when Sync objects are manipulated- Returns:
- this
-
setFriendlyName
public ServiceUpdater setFriendlyName(String friendlyName)
A string that you assign to describe the resource..- Parameters:
friendlyName
- A string that you assign to describe the resource- Returns:
- this
-
setReachabilityWebhooksEnabled
public ServiceUpdater setReachabilityWebhooksEnabled(Boolean reachabilityWebhooksEnabled)
Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`..- Parameters:
reachabilityWebhooksEnabled
- Whether the service instance should call webhook_url when client endpoints connect to Sync- Returns:
- this
-
setAclEnabled
public ServiceUpdater setAclEnabled(Boolean aclEnabled)
Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/permissions) resource..- Parameters:
aclEnabled
- Whether token identities in the Service must be granted access to Sync objects by using the Permissions resource- Returns:
- this
-
setReachabilityDebouncingEnabled
public ServiceUpdater setReachabilityDebouncingEnabled(Boolean reachabilityDebouncingEnabled)
Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event..- Parameters:
reachabilityDebouncingEnabled
- Whether every endpoint_disconnected event occurs after a configurable delay- Returns:
- this
-
setReachabilityDebouncingWindow
public ServiceUpdater setReachabilityDebouncingWindow(Integer reachabilityDebouncingWindow)
The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`. Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the webhook is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the webhook from being called..- Parameters:
reachabilityDebouncingWindow
- The reachability event delay in milliseconds- Returns:
- this
-
setWebhooksFromRestEnabled
public ServiceUpdater setWebhooksFromRestEnabled(Boolean webhooksFromRestEnabled)
Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`..- Parameters:
webhooksFromRestEnabled
- Whether the Service instance should call webhook_url when the REST API is used to update Sync objects- Returns:
- this
-
update
public Service update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
-
-