Class ShortCodeReader
- java.lang.Object
-
- com.twilio.base.Reader<ShortCode>
-
- com.twilio.rest.api.v2010.account.ShortCodeReader
-
-
Constructor Summary
Constructors Constructor Description ShortCodeReader()
Construct a new ShortCodeReader.ShortCodeReader(String pathAccountSid)
Construct a new ShortCodeReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<ShortCode>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<ShortCode>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<ShortCode>
nextPage(Page<ShortCode> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<ShortCode>
previousPage(Page<ShortCode> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<ShortCode>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.ShortCodeReader
setFriendlyName(String friendlyName)
The string that identifies the ShortCode resources to read..ShortCodeReader
setShortCode(String shortCode)
Only show the ShortCode resources that match this pattern.
-
-
-
Constructor Detail
-
ShortCodeReader
public ShortCodeReader()
Construct a new ShortCodeReader.
-
ShortCodeReader
public ShortCodeReader(String pathAccountSid)
Construct a new ShortCodeReader.- Parameters:
pathAccountSid
- The SID of the Account that created the resource(s) to read
-
-
Method Detail
-
setFriendlyName
public ShortCodeReader setFriendlyName(String friendlyName)
The string that identifies the ShortCode resources to read..- Parameters:
friendlyName
- The string that identifies the ShortCode resources to read- Returns:
- this
-
setShortCode
public ShortCodeReader setShortCode(String shortCode)
Only show the ShortCode resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit..- Parameters:
shortCode
- Filter by ShortCode- Returns:
- this
-
read
public ResourceSet<ShortCode> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
firstPage
public Page<ShortCode> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
getPage
public Page<ShortCode> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.
-
nextPage
public Page<ShortCode> nextPage(Page<ShortCode> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.
-
previousPage
public Page<ShortCode> previousPage(Page<ShortCode> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<ShortCode>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-