public class WebhookUpdater extends Updater<Webhook>
Constructor and Description |
---|
WebhookUpdater() |
Modifier and Type | Method and Description |
---|---|
WebhookUpdater |
setPostWebhookRetryCount(Integer postWebhookRetryCount)
The number of times to try the post-event webhook request if the first
attempt fails.
|
WebhookUpdater |
setPostWebhookUrl(String postWebhookUrl)
The absolute URL of the post-event webhook..
|
WebhookUpdater |
setPreWebhookRetryCount(Integer preWebhookRetryCount)
The number of times to try the pre-event webhook request if the first attempt
fails.
|
WebhookUpdater |
setPreWebhookUrl(String preWebhookUrl)
The absolute URL of the pre-event webhook..
|
WebhookUpdater |
setTarget(Webhook.Target target)
The routing target of the webhook.
|
WebhookUpdater |
setWebhookFilters(List<String> webhookFilters)
The list of webhook event triggers that are enabled for the Service..
|
WebhookUpdater |
setWebhookFilters(String webhookFilters)
The list of webhook event triggers that are enabled for the Service..
|
WebhookUpdater |
setWebhookMethod(String webhookMethod)
The HTTP method to use when sending a webhook request..
|
Webhook |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public WebhookUpdater setWebhookMethod(String webhookMethod)
webhookMethod
- The HTTP method to use when sending a webhook requestpublic WebhookUpdater setWebhookFilters(List<String> webhookFilters)
webhookFilters
- The list of webhook event triggers that are enabled
for the Servicepublic WebhookUpdater setWebhookFilters(String webhookFilters)
webhookFilters
- The list of webhook event triggers that are enabled
for the Servicepublic WebhookUpdater setPreWebhookUrl(String preWebhookUrl)
preWebhookUrl
- The absolute URL of the pre-event webhookpublic WebhookUpdater setPostWebhookUrl(String postWebhookUrl)
postWebhookUrl
- The absolute URL of the post-event webhookpublic WebhookUpdater setPreWebhookRetryCount(Integer preWebhookRetryCount)
preWebhookRetryCount
- The number of times to try the pre-event webhook
request if the first attempt failspublic WebhookUpdater setPostWebhookRetryCount(Integer postWebhookRetryCount)
postWebhookRetryCount
- The number of times to try the post-event
webhook request if the first attempt failspublic WebhookUpdater setTarget(Webhook.Target target)
target
- The routing target of the webhookpublic Webhook update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.