public class PhoneNumberCreator extends Creator<PhoneNumber>
Constructor and Description |
---|
PhoneNumberCreator(String pathServiceSid)
Construct a new PhoneNumberCreator.
|
Modifier and Type | Method and Description |
---|---|
PhoneNumber |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
PhoneNumberCreator |
setIsReserved(Boolean isReserved)
Whether the new phone number should be reserved and not be assigned to a
participant using proxy pool logic.
|
PhoneNumberCreator |
setPhoneNumber(PhoneNumber phoneNumber)
The phone number in E.164 format.
|
PhoneNumberCreator |
setPhoneNumber(String phoneNumber)
The phone number in E.164 format.
|
PhoneNumberCreator |
setSid(String sid)
The SID of a Twilio IncomingPhoneNumber
resource that represents the Twilio Number you would like to assign to your
Proxy Service..
|
create, createAsync, createAsync
public PhoneNumberCreator(String pathServiceSid)
pathServiceSid
- The SID of the resource's parent Servicepublic PhoneNumberCreator setSid(String sid)
sid
- The SID of a Twilio IncomingPhoneNumber resourcepublic PhoneNumberCreator setPhoneNumber(PhoneNumber phoneNumber)
phoneNumber
- The phone number in E.164 formatpublic PhoneNumberCreator setPhoneNumber(String phoneNumber)
phoneNumber
- The phone number in E.164 formatpublic PhoneNumberCreator setIsReserved(Boolean isReserved)
isReserved
- Whether the new phone number should be reservedpublic PhoneNumber create(TwilioRestClient client)
create
in class Creator<PhoneNumber>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.