Constructor and Description |
---|
ServiceUpdater(String sid)
Construct a new ServiceUpdater.
|
Modifier and Type | Method and Description |
---|---|
Service |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
ServiceUpdater |
setConsumptionReportInterval(Integer consumptionReportInterval)
The consumption_report_interval.
|
ServiceUpdater |
setDefaultChannelCreatorRoleSid(String defaultChannelCreatorRoleSid)
The default_channel_creator_role_sid.
|
ServiceUpdater |
setDefaultChannelRoleSid(String defaultChannelRoleSid)
The default_channel_role_sid.
|
ServiceUpdater |
setDefaultServiceRoleSid(String defaultServiceRoleSid)
The default_service_role_sid.
|
ServiceUpdater |
setFriendlyName(String friendlyName)
The friendly_name.
|
ServiceUpdater |
setReadStatusEnabled(Boolean readStatusEnabled)
The read_status_enabled.
|
ServiceUpdater |
setTypingIndicatorTimeout(Integer typingIndicatorTimeout)
The typing_indicator_timeout.
|
ServiceUpdater |
setWebhooks(Map<String,Object> webhooks)
The webhooks.
|
public ServiceUpdater(String sid)
sid
- The sidpublic ServiceUpdater setFriendlyName(String friendlyName)
friendlyName
- The friendly_namepublic ServiceUpdater setDefaultServiceRoleSid(String defaultServiceRoleSid)
defaultServiceRoleSid
- The default_service_role_sidpublic ServiceUpdater setDefaultChannelRoleSid(String defaultChannelRoleSid)
defaultChannelRoleSid
- The default_channel_role_sidpublic ServiceUpdater setDefaultChannelCreatorRoleSid(String defaultChannelCreatorRoleSid)
defaultChannelCreatorRoleSid
- The default_channel_creator_role_sidpublic ServiceUpdater setReadStatusEnabled(Boolean readStatusEnabled)
readStatusEnabled
- The read_status_enabledpublic ServiceUpdater setTypingIndicatorTimeout(Integer typingIndicatorTimeout)
typingIndicatorTimeout
- The typing_indicator_timeoutpublic ServiceUpdater setConsumptionReportInterval(Integer consumptionReportInterval)
consumptionReportInterval
- The consumption_report_intervalpublic ServiceUpdater setWebhooks(Map<String,Object> webhooks)
webhooks
- The webhookspublic Service execute(TwilioRestClient client)
Copyright © 2011 Twilio, Inc. All Rights Reserved.