Class ServiceUpdater


  • public class ServiceUpdater
    extends Updater<Service>
    PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
    • 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.
        Specified by:
        update in class Updater<Service>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Updated Service