Class BucketReader
- java.lang.Object
-
- com.twilio.base.Reader<Bucket>
-
- com.twilio.rest.verify.v2.service.ratelimit.BucketReader
-
-
Constructor Summary
Constructors Constructor Description BucketReader(String pathServiceSid, String pathRateLimitSid)
Construct a new BucketReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Bucket>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<Bucket>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<Bucket>
nextPage(Page<Bucket> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<Bucket>
previousPage(Page<Bucket> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<Bucket>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
-
-
Method Detail
-
read
public ResourceSet<Bucket> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
firstPage
public Page<Bucket> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
getPage
public Page<Bucket> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.
-
nextPage
public Page<Bucket> nextPage(Page<Bucket> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.
-
previousPage
public Page<Bucket> previousPage(Page<Bucket> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<Bucket>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-