Package com.twilio.rest.chat.v1.service
Class ChannelUpdater
- java.lang.Object
-
- com.twilio.base.Updater<Channel>
-
- com.twilio.rest.chat.v1.service.ChannelUpdater
-
-
Constructor Summary
Constructors Constructor Description ChannelUpdater(String pathServiceSid, String pathSid)
Construct a new ChannelUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelUpdater
setAttributes(String attributes)
A valid JSON string that contains application-specific data..ChannelUpdater
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the resource.ChannelUpdater
setUniqueName(String uniqueName)
An application-defined string that uniquely identifies the resource.Channel
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.-
Methods inherited from class com.twilio.base.Updater
update, updateAsync, updateAsync
-
-
-
-
Method Detail
-
setFriendlyName
public ChannelUpdater setFriendlyName(String friendlyName)
A descriptive string that you create to describe the resource. It can be up to 64 characters long..- Parameters:
friendlyName
- A string to describe the resource- Returns:
- this
-
setUniqueName
public ChannelUpdater setUniqueName(String uniqueName)
An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service..- Parameters:
uniqueName
- An application-defined string that uniquely identifies the resource- Returns:
- this
-
setAttributes
public ChannelUpdater setAttributes(String attributes)
A valid JSON string that contains application-specific data..- Parameters:
attributes
- A valid JSON string that contains application-specific data- Returns:
- this
-
update
public Channel update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
-
-