public class DeploymentReader extends Reader<Deployment>
Constructor and Description |
---|
DeploymentReader(String pathServiceSid,
String pathEnvironmentSid)
Construct a new DeploymentReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Deployment> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Deployment> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Deployment> |
nextPage(Page<Deployment> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Deployment> |
previousPage(Page<Deployment> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Deployment> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
public DeploymentReader(String pathServiceSid, String pathEnvironmentSid)
pathServiceSid
- The SID of the Service to read the Deployment
resources frompathEnvironmentSid
- The SID of the Environment used by the Deployment
resources to readpublic ResourceSet<Deployment> read(TwilioRestClient client)
read
in class Reader<Deployment>
client
- TwilioRestClient with which to make the requestpublic Page<Deployment> firstPage(TwilioRestClient client)
firstPage
in class Reader<Deployment>
client
- TwilioRestClient with which to make the requestpublic Page<Deployment> getPage(String targetUrl, TwilioRestClient client)
getPage
in class Reader<Deployment>
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the requestpublic Page<Deployment> nextPage(Page<Deployment> page, TwilioRestClient client)
nextPage
in class Reader<Deployment>
page
- current pageclient
- TwilioRestClient with which to make the requestpublic Page<Deployment> previousPage(Page<Deployment> page, TwilioRestClient client)
previousPage
in class Reader<Deployment>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.