Class HostedNumberOrderReader
- java.lang.Object
-
- com.twilio.base.Reader<HostedNumberOrder>
-
- com.twilio.rest.preview.hostedNumbers.HostedNumberOrderReader
-
public class HostedNumberOrderReader extends Reader<HostedNumberOrder>
-
-
Constructor Summary
Constructors Constructor Description HostedNumberOrderReader()
-
Method Summary
-
-
-
Method Detail
-
setStatus
public HostedNumberOrderReader setStatus(HostedNumberOrder.Status status)
-
setPhoneNumber
public HostedNumberOrderReader setPhoneNumber(PhoneNumber phoneNumber)
-
setPhoneNumber
public HostedNumberOrderReader setPhoneNumber(String phoneNumber)
-
setIncomingPhoneNumberSid
public HostedNumberOrderReader setIncomingPhoneNumberSid(String incomingPhoneNumberSid)
-
setFriendlyName
public HostedNumberOrderReader setFriendlyName(String friendlyName)
-
setUniqueName
public HostedNumberOrderReader setUniqueName(String uniqueName)
-
setPageSize
public HostedNumberOrderReader setPageSize(Integer pageSize)
-
read
public ResourceSet<HostedNumberOrder> read(TwilioRestClient client)
Description copied from class:Reader
Execute a request using specified client.- Specified by:
read
in classReader<HostedNumberOrder>
- Parameters:
client
- client used to make request- Returns:
- ResourceSet of objects
-
firstPage
public Page<HostedNumberOrder> firstPage(TwilioRestClient client)
Description copied from class:Reader
Fetch the first page of resources using specified client.- Specified by:
firstPage
in classReader<HostedNumberOrder>
- Parameters:
client
- client used to fetch- Returns:
- Page containing the first pageSize of resources
-
previousPage
public Page<HostedNumberOrder> previousPage(Page<HostedNumberOrder> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the prior page of resources using specified client.- Specified by:
previousPage
in classReader<HostedNumberOrder>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<HostedNumberOrder> nextPage(Page<HostedNumberOrder> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the following page of resources using specified client.- Specified by:
nextPage
in classReader<HostedNumberOrder>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the next pageSize of resources
-
getPage
public Page<HostedNumberOrder> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:Reader
Retrieve the target page of resources.- Specified by:
getPage
in classReader<HostedNumberOrder>
- Parameters:
targetUrl
- API-generated URL for the requested results pageclient
- client used to fetch- Returns:
- Page containing the target pageSize of resources
-
-