Class TriggerUpdater
- java.lang.Object
-
- com.twilio.base.Updater<Trigger>
-
- com.twilio.rest.api.v2010.account.usage.TriggerUpdater
-
-
Constructor Summary
Constructors Constructor Description TriggerUpdater(String pathSid)
Construct a new TriggerUpdater.TriggerUpdater(String pathAccountSid, String pathSid)
Construct a new TriggerUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.twilio.base.Updater
update, updateAsync, updateAsync
-
-
-
-
Constructor Detail
-
TriggerUpdater
public TriggerUpdater(String pathSid)
Construct a new TriggerUpdater.- Parameters:
pathSid
- The unique string that identifies the resource
-
-
Method Detail
-
setCallbackMethod
public TriggerUpdater setCallbackMethod(HttpMethod callbackMethod)
The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`..- Parameters:
callbackMethod
- The HTTP method to use to call callback_url- Returns:
- this
-
setCallbackUrl
public TriggerUpdater setCallbackUrl(URI callbackUrl)
The URL we should call using `callback_method` when the trigger fires..- Parameters:
callbackUrl
- The URL we call when the trigger fires- Returns:
- this
-
setCallbackUrl
public TriggerUpdater setCallbackUrl(String callbackUrl)
The URL we should call using `callback_method` when the trigger fires..- Parameters:
callbackUrl
- The URL we call when the trigger fires- Returns:
- this
-
setFriendlyName
public TriggerUpdater setFriendlyName(String friendlyName)
A descriptive string that you create to describe the resource. It can be up to 64 characters long..- Parameters:
friendlyName
- A string to describe the resource- Returns:
- this
-
update
public Trigger update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
-
-