Package com.twilio.rest.wireless.v1
Class SimReader
- java.lang.Object
-
- com.twilio.base.Reader<Sim>
-
- com.twilio.rest.wireless.v1.SimReader
-
-
Constructor Summary
Constructors Constructor Description SimReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Sim>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<Sim>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<Sim>
nextPage(Page<Sim> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<Sim>
previousPage(Page<Sim> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<Sim>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.SimReader
setEId(String eId)
Only return Sims with this EID..SimReader
setIccid(String iccid)
Return Sims with this Iccid.SimReader
setRatePlan(String ratePlan)
Only return Sims with this Rate Plan..SimReader
setSimRegistrationCode(String simRegistrationCode)
Only return Sims with this registration code..SimReader
setStatus(Sim.Status status)
Only return Sims with this status..
-
-
-
Method Detail
-
setStatus
public SimReader setStatus(Sim.Status status)
Only return Sims with this status..- Parameters:
status
- Only return Sims with this status.- Returns:
- this
-
setIccid
public SimReader setIccid(String iccid)
Return Sims with this Iccid. Currently this should be a list with maximum size 1..- Parameters:
iccid
- Return Sims with this Iccid.- Returns:
- this
-
setRatePlan
public SimReader setRatePlan(String ratePlan)
Only return Sims with this Rate Plan..- Parameters:
ratePlan
- Only return Sims with this Rate Plan.- Returns:
- this
-
setEId
public SimReader setEId(String eId)
Only return Sims with this EID..- Parameters:
eId
- Only return Sims with this EID.- Returns:
- this
-
setSimRegistrationCode
public SimReader setSimRegistrationCode(String simRegistrationCode)
Only return Sims with this registration code..- Parameters:
simRegistrationCode
- Only return Sims with this registration code.- Returns:
- this
-
read
public ResourceSet<Sim> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
firstPage
public Page<Sim> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
getPage
public Page<Sim> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.
-
nextPage
public Page<Sim> nextPage(Page<Sim> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.
-
previousPage
public Page<Sim> previousPage(Page<Sim> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<Sim>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-