Constructor and Description |
---|
ResourceSet(Reader<E> reader,
TwilioRestClient client,
Page<E> page)
Initialize the resource set.
|
Modifier and Type | Method and Description |
---|---|
Long |
getLimit() |
long |
getPageLimit() |
Integer |
getPageSize() |
boolean |
isAutoPaging() |
Iterator<E> |
iterator() |
ResourceSet |
setAutoPaging(boolean autoPaging) |
ResourceSet<E> |
setLimit(long limit) |
ResourceSet<E> |
setPageSize(int pageSize) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ResourceSet(Reader<E> reader, TwilioRestClient client, Page<E> page)
reader
- reader used to fetch next pageclient
- client used to make requestspage
- page of datapublic boolean isAutoPaging()
public ResourceSet setAutoPaging(boolean autoPaging)
public Integer getPageSize()
public ResourceSet<E> setPageSize(int pageSize)
public Long getLimit()
public ResourceSet<E> setLimit(long limit)
public long getPageLimit()
Copyright © 2019 Twilio, Inc. All Rights Reserved.