Constructor and Description |
---|
ChannelUpdater(String pathServiceSid,
String pathSid)
Construct a new ChannelUpdater.
|
Modifier and Type | Method and Description |
---|---|
ChannelUpdater |
setMessagingServiceSid(String messagingServiceSid)
The unique ID of the Messaging Service
this channel belongs to..
|
ChannelUpdater |
setType(Channel.ChannelType type)
TThe Type for this Channel to migrate to.
|
ChannelUpdater |
setXTwilioWebhookEnabled(Channel.WebhookEnabledType xTwilioWebhookEnabled)
The X-Twilio-Webhook-Enabled HTTP request header.
|
Channel |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public ChannelUpdater setType(Channel.ChannelType type)
type
- The Type for this Channel to migrate to.public ChannelUpdater setMessagingServiceSid(String messagingServiceSid)
messagingServiceSid
- The unique ID of the Messaging Service this
channel belongs to.public ChannelUpdater setXTwilioWebhookEnabled(Channel.WebhookEnabledType xTwilioWebhookEnabled)
xTwilioWebhookEnabled
- The X-Twilio-Webhook-Enabled HTTP request headerpublic Channel update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.