Class BundleReader
- java.lang.Object
-
- com.twilio.base.Reader<Bundle>
-
- com.twilio.rest.numbers.v2.regulatorycompliance.BundleReader
-
-
Constructor Summary
Constructors Constructor Description BundleReader()
-
Method Summary
-
-
-
Method Detail
-
setStatus
public BundleReader setStatus(Bundle.Status status)
-
setFriendlyName
public BundleReader setFriendlyName(String friendlyName)
-
setRegulationSid
public BundleReader setRegulationSid(String regulationSid)
-
setIsoCountry
public BundleReader setIsoCountry(String isoCountry)
-
setNumberType
public BundleReader setNumberType(String numberType)
-
setHasValidUntilDate
public BundleReader setHasValidUntilDate(Boolean hasValidUntilDate)
-
setSortBy
public BundleReader setSortBy(Bundle.SortBy sortBy)
-
setSortDirection
public BundleReader setSortDirection(Bundle.SortDirection sortDirection)
-
setValidUntilDate
public BundleReader setValidUntilDate(ZonedDateTime validUntilDate)
-
setValidUntilDateBefore
public BundleReader setValidUntilDateBefore(ZonedDateTime validUntilDateBefore)
-
setValidUntilDateAfter
public BundleReader setValidUntilDateAfter(ZonedDateTime validUntilDateAfter)
-
setPageSize
public BundleReader setPageSize(Integer pageSize)
-
read
public ResourceSet<Bundle> read(TwilioRestClient client)
Description copied from class:Reader
Execute a request using specified client.
-
firstPage
public Page<Bundle> firstPage(TwilioRestClient client)
Description copied from class:Reader
Fetch the first page of resources using specified client.
-
previousPage
public Page<Bundle> previousPage(Page<Bundle> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the prior page of resources using specified client.- Specified by:
previousPage
in classReader<Bundle>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<Bundle> nextPage(Page<Bundle> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the following page of resources using specified client.
-
getPage
public Page<Bundle> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:Reader
Retrieve the target page of resources.
-
-