Class DependentHostedNumberOrderReader
- java.lang.Object
-
- com.twilio.base.Reader<DependentHostedNumberOrder>
-
- com.twilio.rest.preview.hostedNumbers.authorizationdocument.DependentHostedNumberOrderReader
-
public class DependentHostedNumberOrderReader extends Reader<DependentHostedNumberOrder>
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
-
-
Constructor Summary
Constructors Constructor Description DependentHostedNumberOrderReader(String pathSigningDocumentSid)
Construct a new DependentHostedNumberOrderReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<DependentHostedNumberOrder>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<DependentHostedNumberOrder>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<DependentHostedNumberOrder>
nextPage(Page<DependentHostedNumberOrder> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<DependentHostedNumberOrder>
previousPage(Page<DependentHostedNumberOrder> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<DependentHostedNumberOrder>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.DependentHostedNumberOrderReader
setFriendlyName(String friendlyName)
A human readable description of this resource, up to 64 characters..DependentHostedNumberOrderReader
setIncomingPhoneNumberSid(String incomingPhoneNumberSid)
A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder..DependentHostedNumberOrderReader
setPhoneNumber(PhoneNumber phoneNumber)
An E164 formatted phone number hosted by this HostedNumberOrder..DependentHostedNumberOrderReader
setPhoneNumber(String phoneNumber)
An E164 formatted phone number hosted by this HostedNumberOrder..DependentHostedNumberOrderReader
setStatus(DependentHostedNumberOrder.Status status)
Status of an instance resource.DependentHostedNumberOrderReader
setUniqueName(String uniqueName)
Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID..
-
-
-
Constructor Detail
-
DependentHostedNumberOrderReader
public DependentHostedNumberOrderReader(String pathSigningDocumentSid)
Construct a new DependentHostedNumberOrderReader.- Parameters:
pathSigningDocumentSid
- The signing_document_sid
-
-
Method Detail
-
setStatus
public DependentHostedNumberOrderReader setStatus(DependentHostedNumberOrder.Status status)
Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses..- Parameters:
status
- The Status of this HostedNumberOrder.- Returns:
- this
-
setPhoneNumber
public DependentHostedNumberOrderReader setPhoneNumber(PhoneNumber phoneNumber)
An E164 formatted phone number hosted by this HostedNumberOrder..- Parameters:
phoneNumber
- An E164 formatted phone number.- Returns:
- this
-
setPhoneNumber
public DependentHostedNumberOrderReader setPhoneNumber(String phoneNumber)
An E164 formatted phone number hosted by this HostedNumberOrder..- Parameters:
phoneNumber
- An E164 formatted phone number.- Returns:
- this
-
setIncomingPhoneNumberSid
public DependentHostedNumberOrderReader setIncomingPhoneNumberSid(String incomingPhoneNumberSid)
A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder..- Parameters:
incomingPhoneNumberSid
- IncomingPhoneNumber sid.- Returns:
- this
-
setFriendlyName
public DependentHostedNumberOrderReader setFriendlyName(String friendlyName)
A human readable description of this resource, up to 64 characters..- Parameters:
friendlyName
- A human readable description of this resource.- Returns:
- this
-
setUniqueName
public DependentHostedNumberOrderReader setUniqueName(String uniqueName)
Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID..- Parameters:
uniqueName
- A unique, developer assigned name of this HostedNumberOrder.- Returns:
- this
-
read
public ResourceSet<DependentHostedNumberOrder> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
read
in classReader<DependentHostedNumberOrder>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- DependentHostedNumberOrder ResourceSet
-
firstPage
public Page<DependentHostedNumberOrder> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
firstPage
in classReader<DependentHostedNumberOrder>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- DependentHostedNumberOrder ResourceSet
-
getPage
public Page<DependentHostedNumberOrder> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.- Specified by:
getPage
in classReader<DependentHostedNumberOrder>
- Parameters:
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the request- Returns:
- DependentHostedNumberOrder ResourceSet
-
nextPage
public Page<DependentHostedNumberOrder> nextPage(Page<DependentHostedNumberOrder> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.- Specified by:
nextPage
in classReader<DependentHostedNumberOrder>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Next Page
-
previousPage
public Page<DependentHostedNumberOrder> previousPage(Page<DependentHostedNumberOrder> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<DependentHostedNumberOrder>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-