Class WebhookUpdater


  • public class WebhookUpdater
    extends Updater<Webhook>
    PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
    • Constructor Detail

      • WebhookUpdater

        public WebhookUpdater​(String pathConversationSid,
                              String pathSid)
        Construct a new WebhookUpdater.
        Parameters:
        pathConversationSid - The unique id of the Conversation for this webhook.
        pathSid - A 34 character string that uniquely identifies this resource.
    • Method Detail

      • setConfigurationUrl

        public WebhookUpdater setConfigurationUrl​(String configurationUrl)
        The absolute url the webhook request should be sent to..
        Parameters:
        configurationUrl - The absolute url the webhook request should be sent to.
        Returns:
        this
      • setConfigurationMethod

        public WebhookUpdater setConfigurationMethod​(Webhook.Method configurationMethod)
        The HTTP method to be used when sending a webhook request..
        Parameters:
        configurationMethod - The HTTP method to be used when sending a webhook request.
        Returns:
        this
      • setConfigurationFilters

        public WebhookUpdater setConfigurationFilters​(List<String> configurationFilters)
        The list of events, firing webhook event for this Conversation..
        Parameters:
        configurationFilters - The list of events, firing webhook event for this Conversation.
        Returns:
        this
      • setConfigurationFilters

        public WebhookUpdater setConfigurationFilters​(String configurationFilters)
        The list of events, firing webhook event for this Conversation..
        Parameters:
        configurationFilters - The list of events, firing webhook event for this Conversation.
        Returns:
        this
      • setConfigurationTriggers

        public WebhookUpdater setConfigurationTriggers​(List<String> configurationTriggers)
        The list of keywords, firing webhook event for this Conversation..
        Parameters:
        configurationTriggers - The list of keywords, firing webhook event for this Conversation.
        Returns:
        this
      • setConfigurationTriggers

        public WebhookUpdater setConfigurationTriggers​(String configurationTriggers)
        The list of keywords, firing webhook event for this Conversation..
        Parameters:
        configurationTriggers - The list of keywords, firing webhook event for this Conversation.
        Returns:
        this
      • setConfigurationFlowSid

        public WebhookUpdater setConfigurationFlowSid​(String configurationFlowSid)
        The studio flow sid, where the webhook should be sent to..
        Parameters:
        configurationFlowSid - The studio flow sid, where the webhook should be sent to.
        Returns:
        this
      • update

        public Webhook update​(TwilioRestClient client)
        Make the request to the Twilio API to perform the update.
        Specified by:
        update in class Updater<Webhook>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Updated Webhook