public class SyncMapItemReader extends Reader<SyncMapItem>
Constructor and Description |
---|
SyncMapItemReader(String pathServiceSid,
String pathMapSid)
Construct a new SyncMapItemReader.
|
Modifier and Type | Method and Description |
---|---|
Page<SyncMapItem> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<SyncMapItem> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<SyncMapItem> |
nextPage(Page<SyncMapItem> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<SyncMapItem> |
previousPage(Page<SyncMapItem> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<SyncMapItem> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
SyncMapItemReader |
setBounds(SyncMapItem.QueryFromBoundType bounds)
Whether to include the Map Item referenced by the `from` parameter.
|
SyncMapItemReader |
setFrom(String from)
The `key` of the first Sync Map Item resource to read.
|
SyncMapItemReader |
setOrder(SyncMapItem.QueryResultOrder order)
How to order the Map Items returned by their `key` value.
|
public SyncMapItemReader setOrder(SyncMapItem.QueryResultOrder order)
order
- How to order the Map Items returned by their key valuepublic SyncMapItemReader setFrom(String from)
from
- The index of the first Sync Map Item resource to readpublic SyncMapItemReader setBounds(SyncMapItem.QueryFromBoundType bounds)
bounds
- Whether to include the Map Item referenced by the from
parameterpublic ResourceSet<SyncMapItem> read(TwilioRestClient client)
read
in class Reader<SyncMapItem>
client
- TwilioRestClient with which to make the requestpublic Page<SyncMapItem> firstPage(TwilioRestClient client)
firstPage
in class Reader<SyncMapItem>
client
- TwilioRestClient with which to make the requestpublic Page<SyncMapItem> getPage(String targetUrl, TwilioRestClient client)
getPage
in class Reader<SyncMapItem>
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the requestpublic Page<SyncMapItem> nextPage(Page<SyncMapItem> page, TwilioRestClient client)
nextPage
in class Reader<SyncMapItem>
page
- current pageclient
- TwilioRestClient with which to make the requestpublic Page<SyncMapItem> previousPage(Page<SyncMapItem> page, TwilioRestClient client)
previousPage
in class Reader<SyncMapItem>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.