public class CertificateReader extends Reader<Certificate>
Constructor and Description |
---|
CertificateReader(String pathFleetSid)
Construct a new CertificateReader.
|
Modifier and Type | Method and Description |
---|---|
Page<Certificate> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Certificate> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Certificate> |
nextPage(Page<Certificate> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Certificate> |
previousPage(Page<Certificate> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Certificate> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
CertificateReader |
setDeviceSid(String deviceSid)
Filters the resulting list of Certificates by a unique string identifier of
an authenticated Device..
|
public CertificateReader(String pathFleetSid)
pathFleetSid
- The fleet_sidpublic CertificateReader setDeviceSid(String deviceSid)
deviceSid
- Find all Certificates authenticating specified Device.public ResourceSet<Certificate> read(TwilioRestClient client)
read
in class Reader<Certificate>
client
- TwilioRestClient with which to make the requestpublic Page<Certificate> firstPage(TwilioRestClient client)
firstPage
in class Reader<Certificate>
client
- TwilioRestClient with which to make the requestpublic Page<Certificate> getPage(String targetUrl, TwilioRestClient client)
getPage
in class Reader<Certificate>
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the requestpublic Page<Certificate> nextPage(Page<Certificate> page, TwilioRestClient client)
nextPage
in class Reader<Certificate>
page
- current pageclient
- TwilioRestClient with which to make the requestpublic Page<Certificate> previousPage(Page<Certificate> page, TwilioRestClient client)
previousPage
in class Reader<Certificate>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.