Constructor and Description |
---|
ServiceUpdater(String pathSid)
Construct a new ServiceUpdater.
|
Modifier and Type | Method and Description |
---|---|
ServiceUpdater |
setConsumptionReportInterval(Integer consumptionReportInterval)
The consumption_report_interval.
|
ServiceUpdater |
setDefaultChannelCreatorRoleSid(String defaultChannelCreatorRoleSid)
Channel role assigned to creator of channel when joining for first time.
|
ServiceUpdater |
setDefaultChannelRoleSid(String defaultChannelRoleSid)
Channel role assigned on channel join (see
[Roles](https://www.twilio.com/docs/chat/api/roles) data model for the
details).
|
ServiceUpdater |
setDefaultServiceRoleSid(String defaultServiceRoleSid)
The default_service_role_sid.
|
ServiceUpdater |
setFriendlyName(String friendlyName)
Human-readable name for this service instance.
|
ServiceUpdater |
setLimitsChannelMembers(Integer limitsChannelMembers)
The maximum number of Members that can be added to Channels within this
Service.
|
ServiceUpdater |
setLimitsUserChannels(Integer limitsUserChannels)
The maximum number of Channels Users can be a Member of within this Service.
|
ServiceUpdater |
setMediaCompatibilityMessage(String mediaCompatibilityMessage)
The media.compatibility_message.
|
ServiceUpdater |
setNotificationsAddedToChannelEnabled(Boolean notificationsAddedToChannelEnabled)
The notifications.added_to_channel.enabled.
|
ServiceUpdater |
setNotificationsAddedToChannelSound(String notificationsAddedToChannelSound)
The notifications.added_to_channel.sound.
|
ServiceUpdater |
setNotificationsAddedToChannelTemplate(String notificationsAddedToChannelTemplate)
The notifications.added_to_channel.template.
|
ServiceUpdater |
setNotificationsInvitedToChannelEnabled(Boolean notificationsInvitedToChannelEnabled)
The notifications.invited_to_channel.enabled.
|
ServiceUpdater |
setNotificationsInvitedToChannelSound(String notificationsInvitedToChannelSound)
The notifications.invited_to_channel.sound.
|
ServiceUpdater |
setNotificationsInvitedToChannelTemplate(String notificationsInvitedToChannelTemplate)
The notifications.invited_to_channel.template.
|
ServiceUpdater |
setNotificationsLogEnabled(Boolean notificationsLogEnabled)
The notifications.log_enabled.
|
ServiceUpdater |
setNotificationsNewMessageBadgeCountEnabled(Boolean notificationsNewMessageBadgeCountEnabled)
The notifications.new_message.badge_count_enabled.
|
ServiceUpdater |
setNotificationsNewMessageEnabled(Boolean notificationsNewMessageEnabled)
The notifications.new_message.enabled.
|
ServiceUpdater |
setNotificationsNewMessageSound(String notificationsNewMessageSound)
The notifications.new_message.sound.
|
ServiceUpdater |
setNotificationsNewMessageTemplate(String notificationsNewMessageTemplate)
The notifications.new_message.template.
|
ServiceUpdater |
setNotificationsRemovedFromChannelEnabled(Boolean notificationsRemovedFromChannelEnabled)
The notifications.removed_from_channel.enabled.
|
ServiceUpdater |
setNotificationsRemovedFromChannelSound(String notificationsRemovedFromChannelSound)
The notifications.removed_from_channel.sound.
|
ServiceUpdater |
setNotificationsRemovedFromChannelTemplate(String notificationsRemovedFromChannelTemplate)
The notifications.removed_from_channel.template.
|
ServiceUpdater |
setPostWebhookRetryCount(Integer postWebhookRetryCount)
Count of times webhook will be retried in case of timeout (5 seconds) or
429/503/504 HTTP responses.
|
ServiceUpdater |
setPostWebhookUrl(String postWebhookUrl)
The webhook URL for POST-Event webhooks.
|
ServiceUpdater |
setPostWebhookUrl(URI postWebhookUrl)
The webhook URL for POST-Event webhooks.
|
ServiceUpdater |
setPreWebhookRetryCount(Integer preWebhookRetryCount)
Count of times webhook will be retried in case of timeout (5 seconds) or
429/503/504 HTTP responses.
|
ServiceUpdater |
setPreWebhookUrl(String preWebhookUrl)
The webhook URL for PRE-Event webhooks.
|
ServiceUpdater |
setPreWebhookUrl(URI preWebhookUrl)
The webhook URL for PRE-Event webhooks.
|
ServiceUpdater |
setReachabilityEnabled(Boolean reachabilityEnabled)
`true` if the reachability feature should be enabled.
|
ServiceUpdater |
setReadStatusEnabled(Boolean readStatusEnabled)
`true` if the member read status feature is enabled, `false` if not.
|
ServiceUpdater |
setTypingIndicatorTimeout(Integer typingIndicatorTimeout)
The duration in seconds indicating the timeout after "started typing" event
when client should assume that user is not typing anymore even if no "ended
typing" message received.
|
ServiceUpdater |
setWebhookFilters(List<String> webhookFilters)
The list of WebHook events that are enabled for this Service instance.
|
ServiceUpdater |
setWebhookFilters(String webhookFilters)
The list of WebHook events that are enabled for this Service instance.
|
ServiceUpdater |
setWebhookMethod(HttpMethod webhookMethod)
The webhook request format to use.
|
Service |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public ServiceUpdater(String pathSid)
pathSid
- The sidpublic ServiceUpdater setFriendlyName(String friendlyName)
friendlyName
- Human-readable name for this service instancepublic ServiceUpdater setDefaultServiceRoleSid(String defaultServiceRoleSid)
defaultServiceRoleSid
- The default_service_role_sidpublic ServiceUpdater setDefaultChannelRoleSid(String defaultChannelRoleSid)
defaultChannelRoleSid
- Channel role assigned on channel joinpublic ServiceUpdater setDefaultChannelCreatorRoleSid(String defaultChannelCreatorRoleSid)
defaultChannelCreatorRoleSid
- Channel role assigned to creator of
channel when joining for first timepublic ServiceUpdater setReadStatusEnabled(Boolean readStatusEnabled)
readStatusEnabled
- true if the member read status feature is enabled,
false if not.public ServiceUpdater setReachabilityEnabled(Boolean reachabilityEnabled)
reachabilityEnabled
- true if the reachability feature should be
enabled.public ServiceUpdater setTypingIndicatorTimeout(Integer typingIndicatorTimeout)
typingIndicatorTimeout
- The duration in seconds indicating the timeout
after "started typing" event when client should
assume that user is not typing anymore even if
no "ended typing" message receivedpublic ServiceUpdater setConsumptionReportInterval(Integer consumptionReportInterval)
consumptionReportInterval
- The consumption_report_intervalpublic ServiceUpdater setNotificationsNewMessageEnabled(Boolean notificationsNewMessageEnabled)
notificationsNewMessageEnabled
- The notifications.new_message.enabledpublic ServiceUpdater setNotificationsNewMessageTemplate(String notificationsNewMessageTemplate)
notificationsNewMessageTemplate
- The notifications.new_message.templatepublic ServiceUpdater setNotificationsNewMessageSound(String notificationsNewMessageSound)
notificationsNewMessageSound
- The notifications.new_message.soundpublic ServiceUpdater setNotificationsNewMessageBadgeCountEnabled(Boolean notificationsNewMessageBadgeCountEnabled)
notificationsNewMessageBadgeCountEnabled
- The
notifications.new_message.badge_count_enabledpublic ServiceUpdater setNotificationsAddedToChannelEnabled(Boolean notificationsAddedToChannelEnabled)
notificationsAddedToChannelEnabled
- The
notifications.added_to_channel.enabledpublic ServiceUpdater setNotificationsAddedToChannelTemplate(String notificationsAddedToChannelTemplate)
notificationsAddedToChannelTemplate
- The
notifications.added_to_channel.templatepublic ServiceUpdater setNotificationsAddedToChannelSound(String notificationsAddedToChannelSound)
notificationsAddedToChannelSound
- The
notifications.added_to_channel.soundpublic ServiceUpdater setNotificationsRemovedFromChannelEnabled(Boolean notificationsRemovedFromChannelEnabled)
notificationsRemovedFromChannelEnabled
- The
notifications.removed_from_channel.enabledpublic ServiceUpdater setNotificationsRemovedFromChannelTemplate(String notificationsRemovedFromChannelTemplate)
notificationsRemovedFromChannelTemplate
- The
notifications.removed_from_channel.templatepublic ServiceUpdater setNotificationsRemovedFromChannelSound(String notificationsRemovedFromChannelSound)
notificationsRemovedFromChannelSound
- The
notifications.removed_from_channel.soundpublic ServiceUpdater setNotificationsInvitedToChannelEnabled(Boolean notificationsInvitedToChannelEnabled)
notificationsInvitedToChannelEnabled
- The
notifications.invited_to_channel.enabledpublic ServiceUpdater setNotificationsInvitedToChannelTemplate(String notificationsInvitedToChannelTemplate)
notificationsInvitedToChannelTemplate
- The
notifications.invited_to_channel.templatepublic ServiceUpdater setNotificationsInvitedToChannelSound(String notificationsInvitedToChannelSound)
notificationsInvitedToChannelSound
- The
notifications.invited_to_channel.soundpublic ServiceUpdater setPreWebhookUrl(URI preWebhookUrl)
preWebhookUrl
- The webhook URL for PRE-Event webhooks.public ServiceUpdater setPreWebhookUrl(String preWebhookUrl)
preWebhookUrl
- The webhook URL for PRE-Event webhooks.public ServiceUpdater setPostWebhookUrl(URI postWebhookUrl)
postWebhookUrl
- The webhook URL for POST-Event webhooks.public ServiceUpdater setPostWebhookUrl(String postWebhookUrl)
postWebhookUrl
- The webhook URL for POST-Event webhooks.public ServiceUpdater setWebhookMethod(HttpMethod webhookMethod)
webhookMethod
- The webhook request format to use.public ServiceUpdater setWebhookFilters(List<String> webhookFilters)
webhookFilters
- The list of WebHook events that are enabled for this
Service instance.public ServiceUpdater setWebhookFilters(String webhookFilters)
webhookFilters
- The list of WebHook events that are enabled for this
Service instance.public ServiceUpdater setLimitsChannelMembers(Integer limitsChannelMembers)
limitsChannelMembers
- The maximum number of Members that can be added
to Channels within this Service.public ServiceUpdater setLimitsUserChannels(Integer limitsUserChannels)
limitsUserChannels
- The maximum number of Channels Users can be a
Member of within this Service.public ServiceUpdater setMediaCompatibilityMessage(String mediaCompatibilityMessage)
mediaCompatibilityMessage
- The media.compatibility_messagepublic ServiceUpdater setPreWebhookRetryCount(Integer preWebhookRetryCount)
preWebhookRetryCount
- Count of times webhook will be retried in case
of timeout or 429/503/504 HTTP responses.public ServiceUpdater setPostWebhookRetryCount(Integer postWebhookRetryCount)
postWebhookRetryCount
- Count of times webhook will be retried in case
of timeout or 429/503/504 HTTP responses.public ServiceUpdater setNotificationsLogEnabled(Boolean notificationsLogEnabled)
notificationsLogEnabled
- The notifications.log_enabledpublic Service update(TwilioRestClient client)
Copyright © 2016 Twilio, Inc. All Rights Reserved.