Class SyncListItemReader
- java.lang.Object
-
- com.twilio.base.Reader<SyncListItem>
-
- com.twilio.rest.preview.sync.service.synclist.SyncListItemReader
-
public class SyncListItemReader extends Reader<SyncListItem>
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 SyncListItemReader(String pathServiceSid, String pathListSid)
Construct a new SyncListItemReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<SyncListItem>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<SyncListItem>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<SyncListItem>
nextPage(Page<SyncListItem> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<SyncListItem>
previousPage(Page<SyncListItem> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<SyncListItem>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.SyncListItemReader
setBounds(SyncListItem.QueryFromBoundType bounds)
The bounds.SyncListItemReader
setFrom(String from)
The from.SyncListItemReader
setOrder(SyncListItem.QueryResultOrder order)
The order.
-
-
-
Method Detail
-
setOrder
public SyncListItemReader setOrder(SyncListItem.QueryResultOrder order)
The order.- Parameters:
order
- The order- Returns:
- this
-
setFrom
public SyncListItemReader setFrom(String from)
The from.- Parameters:
from
- The from- Returns:
- this
-
setBounds
public SyncListItemReader setBounds(SyncListItem.QueryFromBoundType bounds)
The bounds.- Parameters:
bounds
- The bounds- Returns:
- this
-
read
public ResourceSet<SyncListItem> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
read
in classReader<SyncListItem>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- SyncListItem ResourceSet
-
firstPage
public Page<SyncListItem> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.- Specified by:
firstPage
in classReader<SyncListItem>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- SyncListItem ResourceSet
-
getPage
public Page<SyncListItem> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.- Specified by:
getPage
in classReader<SyncListItem>
- Parameters:
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the request- Returns:
- SyncListItem ResourceSet
-
nextPage
public Page<SyncListItem> nextPage(Page<SyncListItem> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.- Specified by:
nextPage
in classReader<SyncListItem>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Next Page
-
previousPage
public Page<SyncListItem> previousPage(Page<SyncListItem> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<SyncListItem>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-