Class AccountUpdater

    • Constructor Detail

      • AccountUpdater

        public AccountUpdater()
        Construct a new AccountUpdater.
      • AccountUpdater

        public AccountUpdater​(String pathSid)
        Construct a new AccountUpdater.
        Parameters:
        pathSid - Update by unique Account Sid
    • Method Detail

      • setFriendlyName

        public AccountUpdater setFriendlyName​(String friendlyName)
        Update the human-readable description of this Account.
        Parameters:
        friendlyName - FriendlyName to update
        Returns:
        this
      • setStatus

        public AccountUpdater setStatus​(Account.Status status)
        Alter the status of this account: use `closed` to irreversibly close this account, `suspended` to temporarily suspend it, or `active` to reactivate it..
        Parameters:
        status - Status to update the Account with
        Returns:
        this
      • update

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