public class RegulationReader extends Reader<Regulation>
Constructor and Description |
---|
RegulationReader() |
Modifier and Type | Method and Description |
---|---|
Page<Regulation> |
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
Page<Regulation> |
getPage(String targetUrl,
TwilioRestClient client)
Retrieve the target page from the Twilio API.
|
Page<Regulation> |
nextPage(Page<Regulation> page,
TwilioRestClient client)
Retrieve the next page from the Twilio API.
|
Page<Regulation> |
previousPage(Page<Regulation> page,
TwilioRestClient client)
Retrieve the previous page from the Twilio API.
|
ResourceSet<Regulation> |
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
|
RegulationReader |
setEndUserType(Regulation.EndUserType endUserType)
The type of End User the regulation requires - can be `individual` or
`business`..
|
RegulationReader |
setIsoCountry(String isoCountry)
The ISO country code of the phone number's country..
|
RegulationReader |
setNumberType(String numberType)
The type of phone number that the regulatory requiremnt is restricting..
|
public RegulationReader setEndUserType(Regulation.EndUserType endUserType)
endUserType
- The type of End User of the Regulation resourcepublic RegulationReader setIsoCountry(String isoCountry)
isoCountry
- The ISO country code of the phone number's countrypublic RegulationReader setNumberType(String numberType)
numberType
- The type of phone number being regulatedpublic ResourceSet<Regulation> read(TwilioRestClient client)
read
in class Reader<Regulation>
client
- TwilioRestClient with which to make the requestpublic Page<Regulation> firstPage(TwilioRestClient client)
firstPage
in class Reader<Regulation>
client
- TwilioRestClient with which to make the requestpublic Page<Regulation> getPage(String targetUrl, TwilioRestClient client)
getPage
in class Reader<Regulation>
targetUrl
- API-generated URL for the requested results pageclient
- TwilioRestClient with which to make the requestpublic Page<Regulation> nextPage(Page<Regulation> page, TwilioRestClient client)
nextPage
in class Reader<Regulation>
page
- current pageclient
- TwilioRestClient with which to make the requestpublic Page<Regulation> previousPage(Page<Regulation> page, TwilioRestClient client)
previousPage
in class Reader<Regulation>
page
- current pageclient
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.