Class BucketReader


  • public class BucketReader
    extends Reader<Bucket>
    PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
    • Constructor Detail

      • BucketReader

        public BucketReader​(String pathServiceSid,
                            String pathRateLimitSid)
        Construct a new BucketReader.
        Parameters:
        pathServiceSid - The SID of the Service that the resource is associated with
        pathRateLimitSid - Rate Limit Sid.
    • Method Detail

      • read

        public ResourceSet<Bucket> read​(TwilioRestClient client)
        Make the request to the Twilio API to perform the read.
        Specified by:
        read in class Reader<Bucket>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Bucket ResourceSet
      • firstPage

        public Page<Bucket> firstPage​(TwilioRestClient client)
        Make the request to the Twilio API to perform the read.
        Specified by:
        firstPage in class Reader<Bucket>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Bucket ResourceSet
      • getPage

        public Page<Bucket> getPage​(String targetUrl,
                                    TwilioRestClient client)
        Retrieve the target page from the Twilio API.
        Specified by:
        getPage in class Reader<Bucket>
        Parameters:
        targetUrl - API-generated URL for the requested results page
        client - TwilioRestClient with which to make the request
        Returns:
        Bucket ResourceSet
      • nextPage

        public Page<Bucket> nextPage​(Page<Bucket> page,
                                     TwilioRestClient client)
        Retrieve the next page from the Twilio API.
        Specified by:
        nextPage in class Reader<Bucket>
        Parameters:
        page - current page
        client - TwilioRestClient with which to make the request
        Returns:
        Next Page
      • previousPage

        public Page<Bucket> previousPage​(Page<Bucket> page,
                                         TwilioRestClient client)
        Retrieve the previous page from the Twilio API.
        Specified by:
        previousPage in class Reader<Bucket>
        Parameters:
        page - current page
        client - TwilioRestClient with which to make the request
        Returns:
        Previous Page