Constructor and Description |
---|
ServiceUpdater(String pathSid)
Construct a new ServiceUpdater.
|
Modifier and Type | Method and Description |
---|---|
ServiceUpdater |
setAlexaSkillId(String alexaSkillId)
The alexa_skill_id.
|
ServiceUpdater |
setApnCredentialSid(String apnCredentialSid)
The SID of the default Credential to be used for APN Bindings.
|
ServiceUpdater |
setDefaultAlexaNotificationProtocolVersion(String defaultAlexaNotificationProtocolVersion)
The default_alexa_notification_protocol_version.
|
ServiceUpdater |
setDefaultApnNotificationProtocolVersion(String defaultApnNotificationProtocolVersion)
The version of the protocol to be used for sending APNS notifications.
|
ServiceUpdater |
setDefaultFcmNotificationProtocolVersion(String defaultFcmNotificationProtocolVersion)
The version of the protocol to be used for sending FCM notifications.
|
ServiceUpdater |
setDefaultGcmNotificationProtocolVersion(String defaultGcmNotificationProtocolVersion)
The version of the protocol to be used for sending GCM notifications.
|
ServiceUpdater |
setFacebookMessengerPageId(String facebookMessengerPageId)
The Page ID to be used to send for Facebook Messenger Bindings.
|
ServiceUpdater |
setFcmCredentialSid(String fcmCredentialSid)
The SID of the default Credential to be used for FCM Bindings.
|
ServiceUpdater |
setFriendlyName(String friendlyName)
Human-readable name for this service instance.
|
ServiceUpdater |
setGcmCredentialSid(String gcmCredentialSid)
The SID of the default Credential to be used for GCM Bindings.
|
ServiceUpdater |
setLogEnabled(Boolean logEnabled)
The log_enabled.
|
ServiceUpdater |
setMessagingServiceSid(String messagingServiceSid)
The SID of the [Messaging
Service](https://www.twilio.com/docs/api/rest/sending-messages#messaging-services) to be used 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 sidpublic ServiceUpdater setFriendlyName(String friendlyName)
friendlyName
- Human-readable name for this service instancepublic ServiceUpdater setApnCredentialSid(String apnCredentialSid)
apnCredentialSid
- The SID of the default Credential to be used for APN
Bindingspublic ServiceUpdater setGcmCredentialSid(String gcmCredentialSid)
gcmCredentialSid
- The SID of the default Credential to be used for GCM
Bindingspublic ServiceUpdater setMessagingServiceSid(String messagingServiceSid)
messagingServiceSid
- The SID of the Messaging Service to be used for
SMS Bindings.public ServiceUpdater setFacebookMessengerPageId(String facebookMessengerPageId)
facebookMessengerPageId
- The Page ID to be used to send for Facebook
Messenger Bindings.public ServiceUpdater setDefaultApnNotificationProtocolVersion(String defaultApnNotificationProtocolVersion)
defaultApnNotificationProtocolVersion
- The version of the protocol to
be used for sending APNS
notifications.public ServiceUpdater setDefaultGcmNotificationProtocolVersion(String defaultGcmNotificationProtocolVersion)
defaultGcmNotificationProtocolVersion
- The version of the protocol to
be used for sending GCM
notifications.public ServiceUpdater setFcmCredentialSid(String fcmCredentialSid)
fcmCredentialSid
- The SID of the default Credential to be used for FCM
Bindingspublic ServiceUpdater setDefaultFcmNotificationProtocolVersion(String defaultFcmNotificationProtocolVersion)
defaultFcmNotificationProtocolVersion
- The version of the protocol to
be used for sending FCM
notifications.public ServiceUpdater setLogEnabled(Boolean logEnabled)
logEnabled
- The log_enabledpublic ServiceUpdater setAlexaSkillId(String alexaSkillId)
alexaSkillId
- The alexa_skill_idpublic ServiceUpdater setDefaultAlexaNotificationProtocolVersion(String defaultAlexaNotificationProtocolVersion)
defaultAlexaNotificationProtocolVersion
- The
default_alexa_notification_protocol_versionpublic Service update(TwilioRestClient client)
Copyright © 2016 Twilio, Inc. All Rights Reserved.