Class ChannelUpdater

    • Constructor Detail

      • ChannelUpdater

        public ChannelUpdater​(String pathServiceSid,
                              String pathSid)
        Construct a new ChannelUpdater.
        Parameters:
        pathServiceSid - The SID of the Service to update the resource from
        pathSid - The unique string that identifies the resource
    • 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.
        Specified by:
        update in class Updater<Channel>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Updated Channel