Constructor and Description |
---|
TriggerUpdater(String pathSid)
Construct a new TriggerUpdater.
|
TriggerUpdater(String pathAccountSid,
String pathSid)
Construct a new TriggerUpdater.
|
Modifier and Type | Method and Description |
---|---|
TriggerUpdater |
setCallbackMethod(HttpMethod callbackMethod)
The HTTP method we should use to call `callback_url`.
|
TriggerUpdater |
setCallbackUrl(String callbackUrl)
The URL we should call using `callback_method` when the trigger fires..
|
TriggerUpdater |
setCallbackUrl(URI callbackUrl)
The URL we should call using `callback_method` when the trigger fires..
|
TriggerUpdater |
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the resource.
|
Trigger |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public TriggerUpdater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic TriggerUpdater setCallbackMethod(HttpMethod callbackMethod)
callbackMethod
- The HTTP method to use to call callback_urlpublic TriggerUpdater setCallbackUrl(URI callbackUrl)
callbackUrl
- The URL we call when the trigger firespublic TriggerUpdater setCallbackUrl(String callbackUrl)
callbackUrl
- The URL we call when the trigger firespublic TriggerUpdater setFriendlyName(String friendlyName)
friendlyName
- A string to describe the resourcepublic Trigger update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.