Package com.twilio.rest.proxy.v1.service
Class PhoneNumberUpdater
- java.lang.Object
-
- com.twilio.base.Updater<PhoneNumber>
-
- com.twilio.rest.proxy.v1.service.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 Summary
Constructors Constructor Description PhoneNumberUpdater(String pathServiceSid, String pathSid)
Construct a new PhoneNumberUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PhoneNumberUpdater
setIsReserved(Boolean isReserved)
Whether the phone number should be reserved and not be assigned to a participant using proxy pool logic.PhoneNumber
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
-
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 classUpdater<PhoneNumber>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- Updated PhoneNumber
-
-