Class ResourceSet<E extends Resource>

  • Type Parameters:
    E - type of the resource
    All Implemented Interfaces:
    Iterable<E>

    public class ResourceSet<E extends Resource>
    extends Object
    implements Iterable<E>
    A collection of resources.
    • Constructor Detail

      • ResourceSet

        public ResourceSet​(Reader<E> reader,
                           TwilioRestClient client,
                           Page<E> page)
        Initialize the resource set.
        Parameters:
        reader - reader used to fetch next page
        client - client used to make requests
        page - page of data
    • Method Detail

      • isAutoPaging

        public boolean isAutoPaging()
      • setAutoPaging

        public ResourceSet setAutoPaging​(boolean autoPaging)
      • getPageSize

        public Integer getPageSize()
      • setPageSize

        public ResourceSet<E> setPageSize​(int pageSize)
      • getLimit

        public Long getLimit()
      • getPageLimit

        public long getPageLimit()