Class PhoneNumberUpdater


  • public class PhoneNumberUpdater
    extends Updater<PhoneNumber>
    PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
    • Constructor Detail

      • PhoneNumberUpdater

        public PhoneNumberUpdater​(String pathServiceSid,
                                  String pathSid)
        Construct a new PhoneNumberUpdater.
        Parameters:
        pathServiceSid - The SID of the parent Service resource of the PhoneNumber resource to update
        pathSid - The unique string that identifies the resource
    • Method Detail

      • setIsReserved

        public PhoneNumberUpdater setIsReserved​(Boolean isReserved)
        Whether the phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information..
        Parameters:
        isReserved - Whether the new phone number should be reserved
        Returns:
        this
      • update

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