Package com.twilio.rest.api.v2010
Class AccountReader
- java.lang.Object
-
- com.twilio.base.Reader<Account>
-
- com.twilio.rest.api.v2010.AccountReader
-
-
Constructor Summary
Constructors Constructor Description AccountReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Account>
firstPage(TwilioRestClient client)
Fetch the first page of resources using specified client.Page<Account>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page of resources.Page<Account>
nextPage(Page<Account> page, TwilioRestClient client)
Fetch the following page of resources using specified client.Page<Account>
previousPage(Page<Account> page, TwilioRestClient client)
Fetch the prior page of resources using specified client.ResourceSet<Account>
read(TwilioRestClient client)
Execute a request using specified client.AccountReader
setFriendlyName(String friendlyName)
AccountReader
setPageSize(Integer pageSize)
AccountReader
setStatus(Account.Status status)
-
-
-
Method Detail
-
setFriendlyName
public AccountReader setFriendlyName(String friendlyName)
-
setStatus
public AccountReader setStatus(Account.Status status)
-
setPageSize
public AccountReader setPageSize(Integer pageSize)
-
read
public ResourceSet<Account> read(TwilioRestClient client)
Description copied from class:Reader
Execute a request using specified client.
-
firstPage
public Page<Account> firstPage(TwilioRestClient client)
Description copied from class:Reader
Fetch the first page of resources using specified client.
-
previousPage
public Page<Account> previousPage(Page<Account> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the prior page of resources using specified client.- Specified by:
previousPage
in classReader<Account>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<Account> nextPage(Page<Account> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the following page of resources using specified client.
-
getPage
public Page<Account> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:Reader
Retrieve the target page of resources.
-
-