Class KeyUpdater

    • Constructor Detail

      • KeyUpdater

        public KeyUpdater​(String pathSid)
        Construct a new KeyUpdater.
        Parameters:
        pathSid - The unique string that identifies the resource
      • KeyUpdater

        public KeyUpdater​(String pathAccountSid,
                          String pathSid)
        Construct a new KeyUpdater.
        Parameters:
        pathAccountSid - The SID of the Account that created the resources to update
        pathSid - The unique string that identifies the resource
    • Method Detail

      • setFriendlyName

        public KeyUpdater 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
      • update

        public Key update​(TwilioRestClient client)
        Make the request to the Twilio API to perform the update.
        Specified by:
        update in class Updater<Key>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Updated Key