public class ExportConfigurationUpdater extends Updater<ExportConfiguration>
Constructor and Description |
---|
ExportConfigurationUpdater(String pathResourceType)
Construct a new ExportConfigurationUpdater.
|
Modifier and Type | Method and Description |
---|---|
ExportConfigurationUpdater |
setEnabled(Boolean enabled)
If true, Twilio will automatically generate every day's file when the day is
over..
|
ExportConfigurationUpdater |
setWebhookMethod(String webhookMethod)
Sets whether Twilio should call a webhook URL when the automatic generation
is complete, using GET or POST.
|
ExportConfigurationUpdater |
setWebhookUrl(String webhookUrl)
Stores the URL destination for the method specified in webhook_method..
|
ExportConfigurationUpdater |
setWebhookUrl(URI webhookUrl)
Stores the URL destination for the method specified in webhook_method..
|
ExportConfiguration |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public ExportConfigurationUpdater(String pathResourceType)
pathResourceType
- The type of communication – Messages, Calls,
Conferences, and Participantspublic ExportConfigurationUpdater setEnabled(Boolean enabled)
enabled
- Whether files are automatically generatedpublic ExportConfigurationUpdater setWebhookUrl(URI webhookUrl)
webhookUrl
- URL targeted at exportpublic ExportConfigurationUpdater setWebhookUrl(String webhookUrl)
webhookUrl
- URL targeted at exportpublic ExportConfigurationUpdater setWebhookMethod(String webhookMethod)
webhookMethod
- Whether to GET or POST to the webhook urlpublic ExportConfiguration update(TwilioRestClient client)
update
in class Updater<ExportConfiguration>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.