Constructor and Description |
---|
ServiceUpdater(String pathSid)
Construct a new ServiceUpdater.
|
Modifier and Type | Method and Description |
---|---|
ServiceUpdater |
setConsumptionReportInterval(Integer consumptionReportInterval)
DEPRECATED.
|
ServiceUpdater |
setDefaultChannelCreatorRoleSid(String defaultChannelCreatorRoleSid)
The channel role assigned to a channel creator when they join a new channel.
|
ServiceUpdater |
setDefaultChannelRoleSid(String defaultChannelRoleSid)
The channel role assigned to users when they are added to a channel.
|
ServiceUpdater |
setDefaultServiceRoleSid(String defaultServiceRoleSid)
The service role assigned to users when they are added to the service.
|
ServiceUpdater |
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the resource..
|
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 message to send when a media message has no text.
|
ServiceUpdater |
setNotificationsAddedToChannelEnabled(Boolean notificationsAddedToChannelEnabled)
Whether to send a notification when a member is added to a channel.
|
ServiceUpdater |
setNotificationsAddedToChannelSound(String notificationsAddedToChannelSound)
The name of the sound to play when a member is added to a channel and
`notifications.added_to_channel.enabled` is `true`..
|
ServiceUpdater |
setNotificationsAddedToChannelTemplate(String notificationsAddedToChannelTemplate)
The template to use to create the notification text displayed when a member
is added to a channel and `notifications.added_to_channel.enabled` is
`true`..
|
ServiceUpdater |
setNotificationsInvitedToChannelEnabled(Boolean notificationsInvitedToChannelEnabled)
Whether to send a notification when a user is invited to a channel.
|
ServiceUpdater |
setNotificationsInvitedToChannelSound(String notificationsInvitedToChannelSound)
The name of the sound to play when a user is invited to a channel and
`notifications.invited_to_channel.enabled` is `true`..
|
ServiceUpdater |
setNotificationsInvitedToChannelTemplate(String notificationsInvitedToChannelTemplate)
The template to use to create the notification text displayed when a user is
invited to a channel and `notifications.invited_to_channel.enabled` is
`true`..
|
ServiceUpdater |
setNotificationsLogEnabled(Boolean notificationsLogEnabled)
Whether to log notifications.
|
ServiceUpdater |
setNotificationsNewMessageBadgeCountEnabled(Boolean notificationsNewMessageBadgeCountEnabled)
Whether the new message badge is enabled.
|
ServiceUpdater |
setNotificationsNewMessageEnabled(Boolean notificationsNewMessageEnabled)
Whether to send a notification when a new message is added to a channel.
|
ServiceUpdater |
setNotificationsNewMessageSound(String notificationsNewMessageSound)
The name of the sound to play when a new message is added to a channel and
`notifications.new_message.enabled` is `true`..
|
ServiceUpdater |
setNotificationsNewMessageTemplate(String notificationsNewMessageTemplate)
The template to use to create the notification text displayed when a new
message is added to a channel and `notifications.new_message.enabled` is
`true`..
|
ServiceUpdater |
setNotificationsRemovedFromChannelEnabled(Boolean notificationsRemovedFromChannelEnabled)
Whether to send a notification to a user when they are removed from a
channel.
|
ServiceUpdater |
setNotificationsRemovedFromChannelSound(String notificationsRemovedFromChannelSound)
The name of the sound to play to a user when they are removed from a channel
and `notifications.removed_from_channel.enabled` is `true`..
|
ServiceUpdater |
setNotificationsRemovedFromChannelTemplate(String notificationsRemovedFromChannelTemplate)
The template to use to create the notification text displayed to a user when
they are removed from a channel and
`notifications.removed_from_channel.enabled` is `true`..
|
ServiceUpdater |
setPostWebhookRetryCount(Integer postWebhookRetryCount)
The number of times to retry a call to the `post_webhook_url` if the request
times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response.
|
ServiceUpdater |
setPostWebhookUrl(String postWebhookUrl)
The URL for post-event webhooks, which are called by using the
`webhook_method`.
|
ServiceUpdater |
setPostWebhookUrl(URI postWebhookUrl)
The URL for post-event webhooks, which are called by using the
`webhook_method`.
|
ServiceUpdater |
setPreWebhookRetryCount(Integer preWebhookRetryCount)
The number of times to retry a call to the `pre_webhook_url` if the request
times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response.
|
ServiceUpdater |
setPreWebhookUrl(String preWebhookUrl)
The URL for pre-event webhooks, which are called by using the
`webhook_method`.
|
ServiceUpdater |
setPreWebhookUrl(URI preWebhookUrl)
The URL for pre-event webhooks, which are called by using the
`webhook_method`.
|
ServiceUpdater |
setReachabilityEnabled(Boolean reachabilityEnabled)
Whether to enable the Reachability
Indicator for this Service instance.
|
ServiceUpdater |
setReadStatusEnabled(Boolean readStatusEnabled)
Whether to enable the Message
Consumption Horizon feature.
|
ServiceUpdater |
setTypingIndicatorTimeout(Integer typingIndicatorTimeout)
How long in seconds after a `started typing` event until clients should
assume that user is no longer typing, even if no `ended typing` message was
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 HTTP method to use for calls to the `pre_webhook_url` and
`post_webhook_url` webhooks.
|
Service |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public ServiceUpdater(String pathSid)
pathSid
- The SID of the Service resource to updatepublic ServiceUpdater setFriendlyName(String friendlyName)
friendlyName
- A string to describe the resourcepublic ServiceUpdater setDefaultServiceRoleSid(String defaultServiceRoleSid)
defaultServiceRoleSid
- The service role assigned to users when they
are added to the servicepublic ServiceUpdater setDefaultChannelRoleSid(String defaultChannelRoleSid)
defaultChannelRoleSid
- The channel role assigned to users when they
are added to a channelpublic ServiceUpdater setDefaultChannelCreatorRoleSid(String defaultChannelCreatorRoleSid)
defaultChannelCreatorRoleSid
- The channel role assigned to a channel
creator when they join a new channelpublic ServiceUpdater setReadStatusEnabled(Boolean readStatusEnabled)
readStatusEnabled
- Whether to enable the Message Consumption Horizon
featurepublic ServiceUpdater setReachabilityEnabled(Boolean reachabilityEnabled)
reachabilityEnabled
- Whether to enable the Reachability Indicator
feature for this Service instancepublic ServiceUpdater setTypingIndicatorTimeout(Integer typingIndicatorTimeout)
typingIndicatorTimeout
- How long in seconds to wait before assuming
the user is no longer typingpublic ServiceUpdater setConsumptionReportInterval(Integer consumptionReportInterval)
consumptionReportInterval
- DEPRECATEDpublic ServiceUpdater setNotificationsNewMessageEnabled(Boolean notificationsNewMessageEnabled)
notificationsNewMessageEnabled
- Whether to send a notification when a
new message is added to a channelpublic ServiceUpdater setNotificationsNewMessageTemplate(String notificationsNewMessageTemplate)
notificationsNewMessageTemplate
- The template to use to create the
notification text displayed when a new
message is added to a channelpublic ServiceUpdater setNotificationsNewMessageSound(String notificationsNewMessageSound)
notificationsNewMessageSound
- The name of the sound to play when a new
message is added to a channelpublic ServiceUpdater setNotificationsNewMessageBadgeCountEnabled(Boolean notificationsNewMessageBadgeCountEnabled)
notificationsNewMessageBadgeCountEnabled
- Whether the new message
badge is enabledpublic ServiceUpdater setNotificationsAddedToChannelEnabled(Boolean notificationsAddedToChannelEnabled)
notificationsAddedToChannelEnabled
- Whether to send a notification
when a member is added to a channelpublic ServiceUpdater setNotificationsAddedToChannelTemplate(String notificationsAddedToChannelTemplate)
notificationsAddedToChannelTemplate
- The template to use to create the
notification text displayed when a
member is added to a channelpublic ServiceUpdater setNotificationsAddedToChannelSound(String notificationsAddedToChannelSound)
notificationsAddedToChannelSound
- The name of the sound to play when a
member is added to a channelpublic ServiceUpdater setNotificationsRemovedFromChannelEnabled(Boolean notificationsRemovedFromChannelEnabled)
notificationsRemovedFromChannelEnabled
- Whether to send a notification
to a user when they are removed
from a channelpublic ServiceUpdater setNotificationsRemovedFromChannelTemplate(String notificationsRemovedFromChannelTemplate)
notificationsRemovedFromChannelTemplate
- The template to use to create
the notification text
displayed to a user when they
are removedpublic ServiceUpdater setNotificationsRemovedFromChannelSound(String notificationsRemovedFromChannelSound)
notificationsRemovedFromChannelSound
- The name of the sound to play to
a user when they are removed from
a channelpublic ServiceUpdater setNotificationsInvitedToChannelEnabled(Boolean notificationsInvitedToChannelEnabled)
notificationsInvitedToChannelEnabled
- Whether to send a notification
when a user is invited to a
channelpublic ServiceUpdater setNotificationsInvitedToChannelTemplate(String notificationsInvitedToChannelTemplate)
notificationsInvitedToChannelTemplate
- The template to use to create
the notification text displayed
when a user is invited to a
channelpublic ServiceUpdater setNotificationsInvitedToChannelSound(String notificationsInvitedToChannelSound)
notificationsInvitedToChannelSound
- The name of the sound to play when
a user is invited to a channelpublic ServiceUpdater setPreWebhookUrl(URI preWebhookUrl)
preWebhookUrl
- The webhook URL for pre-event webhookspublic ServiceUpdater setPreWebhookUrl(String preWebhookUrl)
preWebhookUrl
- The webhook URL for pre-event webhookspublic ServiceUpdater setPostWebhookUrl(URI postWebhookUrl)
postWebhookUrl
- The URL for post-event webhookspublic ServiceUpdater setPostWebhookUrl(String postWebhookUrl)
postWebhookUrl
- The URL for post-event webhookspublic ServiceUpdater setWebhookMethod(HttpMethod webhookMethod)
webhookMethod
- The HTTP method to use for both PRE and POST webhookspublic ServiceUpdater setWebhookFilters(List<String> webhookFilters)
webhookFilters
- The list of webhook events that are enabled for this
Service instancepublic ServiceUpdater setWebhookFilters(String webhookFilters)
webhookFilters
- The list of webhook events that are enabled for this
Service instancepublic ServiceUpdater setLimitsChannelMembers(Integer limitsChannelMembers)
limitsChannelMembers
- The maximum number of Members that can be added
to Channels within this Servicepublic ServiceUpdater setLimitsUserChannels(Integer limitsUserChannels)
limitsUserChannels
- The maximum number of Channels Users can be a
Member of within this Servicepublic ServiceUpdater setMediaCompatibilityMessage(String mediaCompatibilityMessage)
mediaCompatibilityMessage
- The message to send when a media message
has no textpublic ServiceUpdater setPreWebhookRetryCount(Integer preWebhookRetryCount)
preWebhookRetryCount
- Count of times webhook will be retried in case
of timeout or 429/503/504 HTTP responsespublic ServiceUpdater setPostWebhookRetryCount(Integer postWebhookRetryCount)
postWebhookRetryCount
- The number of times calls to the
`post_webhook_url` will be retriedpublic ServiceUpdater setNotificationsLogEnabled(Boolean notificationsLogEnabled)
notificationsLogEnabled
- Whether to log notificationspublic Service update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.