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 Twilio will use when making a request to the CallbackUrl.
|
TriggerUpdater |
setCallbackUrl(String callbackUrl)
Twilio will make a request to this url when the trigger fires..
|
TriggerUpdater |
setCallbackUrl(URI callbackUrl)
Twilio will make a request to this url when the trigger fires..
|
TriggerUpdater |
setFriendlyName(String friendlyName)
A user-specified, human-readable name for the trigger..
|
Trigger |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public TriggerUpdater(String pathSid)
pathSid
- The sidpublic TriggerUpdater setCallbackMethod(HttpMethod callbackMethod)
callbackMethod
- HTTP method to use with callback_urlpublic TriggerUpdater setCallbackUrl(URI callbackUrl)
callbackUrl
- URL Twilio will request when the trigger firespublic TriggerUpdater setCallbackUrl(String callbackUrl)
callbackUrl
- URL Twilio will request when the trigger firespublic TriggerUpdater setFriendlyName(String friendlyName)
friendlyName
- A user-specified, human-readable name for the trigger.public Trigger update(TwilioRestClient client)
Copyright © 2016 Twilio, Inc. All Rights Reserved.