Constructor and Description |
---|
ServiceUpdater(String pathSid)
Construct a new ServiceUpdater.
|
Modifier and Type | Method and Description |
---|---|
ServiceUpdater |
setAlexaSkillId(String alexaSkillId)
Deprecated..
|
ServiceUpdater |
setApnCredentialSid(String apnCredentialSid)
The SID of the Credential
to use for APN Bindings..
|
ServiceUpdater |
setDefaultAlexaNotificationProtocolVersion(String defaultAlexaNotificationProtocolVersion)
Deprecated..
|
ServiceUpdater |
setDefaultApnNotificationProtocolVersion(String defaultApnNotificationProtocolVersion)
The protocol version to use for sending APNS notifications.
|
ServiceUpdater |
setDefaultFcmNotificationProtocolVersion(String defaultFcmNotificationProtocolVersion)
The protocol version to use for sending FCM notifications.
|
ServiceUpdater |
setDefaultGcmNotificationProtocolVersion(String defaultGcmNotificationProtocolVersion)
The protocol version to use for sending GCM notifications.
|
ServiceUpdater |
setDeliveryCallbackEnabled(Boolean deliveryCallbackEnabled)
Callback configuration that enables delivery callbacks, default false.
|
ServiceUpdater |
setDeliveryCallbackUrl(String deliveryCallbackUrl)
URL to send delivery status callback..
|
ServiceUpdater |
setFacebookMessengerPageId(String facebookMessengerPageId)
Deprecated..
|
ServiceUpdater |
setFcmCredentialSid(String fcmCredentialSid)
The SID of the Credential
to use for FCM Bindings..
|
ServiceUpdater |
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the resource.
|
ServiceUpdater |
setGcmCredentialSid(String gcmCredentialSid)
The SID of the Credential
to use for GCM Bindings..
|
ServiceUpdater |
setLogEnabled(Boolean logEnabled)
Whether to log notifications.
|
ServiceUpdater |
setMessagingServiceSid(String messagingServiceSid)
The SID of the Messaging
Service to use for SMS Bindings.
|
Service |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public ServiceUpdater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic ServiceUpdater setFriendlyName(String friendlyName)
friendlyName
- A string to describe the resourcepublic ServiceUpdater setApnCredentialSid(String apnCredentialSid)
apnCredentialSid
- The SID of the Credential to use for APN Bindingspublic ServiceUpdater setGcmCredentialSid(String gcmCredentialSid)
gcmCredentialSid
- The SID of the Credential to use for GCM Bindingspublic ServiceUpdater setMessagingServiceSid(String messagingServiceSid)
messagingServiceSid
- The SID of the Messaging Service to use for SMS
Bindingspublic ServiceUpdater setFacebookMessengerPageId(String facebookMessengerPageId)
facebookMessengerPageId
- Deprecatedpublic ServiceUpdater setDefaultApnNotificationProtocolVersion(String defaultApnNotificationProtocolVersion)
defaultApnNotificationProtocolVersion
- The protocol version to use for
sending APNS notificationspublic ServiceUpdater setDefaultGcmNotificationProtocolVersion(String defaultGcmNotificationProtocolVersion)
defaultGcmNotificationProtocolVersion
- The protocol version to use for
sending GCM notificationspublic ServiceUpdater setFcmCredentialSid(String fcmCredentialSid)
fcmCredentialSid
- The SID of the Credential to use for FCM Bindingspublic ServiceUpdater setDefaultFcmNotificationProtocolVersion(String defaultFcmNotificationProtocolVersion)
defaultFcmNotificationProtocolVersion
- The protocol version to use for
sending FCM notificationspublic ServiceUpdater setLogEnabled(Boolean logEnabled)
logEnabled
- Whether to log notificationspublic ServiceUpdater setAlexaSkillId(String alexaSkillId)
alexaSkillId
- Deprecatedpublic ServiceUpdater setDefaultAlexaNotificationProtocolVersion(String defaultAlexaNotificationProtocolVersion)
defaultAlexaNotificationProtocolVersion
- Deprecatedpublic ServiceUpdater setDeliveryCallbackUrl(String deliveryCallbackUrl)
deliveryCallbackUrl
- Webhook URLpublic ServiceUpdater setDeliveryCallbackEnabled(Boolean deliveryCallbackEnabled)
deliveryCallbackEnabled
- Enable delivery callbackspublic Service update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.