Package com.twilio.rest.verify.v2
Class VerificationAttemptReader
- java.lang.Object
-
- com.twilio.base.Reader<VerificationAttempt>
-
- com.twilio.rest.verify.v2.VerificationAttemptReader
-
public class VerificationAttemptReader extends Reader<VerificationAttempt>
-
-
Constructor Summary
Constructors Constructor Description VerificationAttemptReader()
-
Method Summary
-
-
-
Method Detail
-
setDateCreatedAfter
public VerificationAttemptReader setDateCreatedAfter(ZonedDateTime dateCreatedAfter)
-
setDateCreatedBefore
public VerificationAttemptReader setDateCreatedBefore(ZonedDateTime dateCreatedBefore)
-
setChannelDataTo
public VerificationAttemptReader setChannelDataTo(String channelDataTo)
-
setCountry
public VerificationAttemptReader setCountry(String country)
-
setChannel
public VerificationAttemptReader setChannel(VerificationAttempt.Channels channel)
-
setVerifyServiceSid
public VerificationAttemptReader setVerifyServiceSid(String verifyServiceSid)
-
setVerificationSid
public VerificationAttemptReader setVerificationSid(String verificationSid)
-
setStatus
public VerificationAttemptReader setStatus(VerificationAttempt.ConversionStatus status)
-
setPageSize
public VerificationAttemptReader setPageSize(Integer pageSize)
-
read
public ResourceSet<VerificationAttempt> read(TwilioRestClient client)
Description copied from class:ReaderExecute a request using specified client.- Specified by:
readin classReader<VerificationAttempt>- Parameters:
client- client used to make request- Returns:
- ResourceSet of objects
-
firstPage
public Page<VerificationAttempt> firstPage(TwilioRestClient client)
Description copied from class:ReaderFetch the first page of resources using specified client.- Specified by:
firstPagein classReader<VerificationAttempt>- Parameters:
client- client used to fetch- Returns:
- Page containing the first pageSize of resources
-
previousPage
public Page<VerificationAttempt> previousPage(Page<VerificationAttempt> page, TwilioRestClient client)
Description copied from class:ReaderFetch the prior page of resources using specified client.- Specified by:
previousPagein classReader<VerificationAttempt>- Parameters:
page- current page of resourcesclient- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<VerificationAttempt> nextPage(Page<VerificationAttempt> page, TwilioRestClient client)
Description copied from class:ReaderFetch the following page of resources using specified client.- Specified by:
nextPagein classReader<VerificationAttempt>- Parameters:
page- current page of resourcesclient- client used to fetch- Returns:
- Page containing the next pageSize of resources
-
getPage
public Page<VerificationAttempt> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:ReaderRetrieve the target page of resources.- Specified by:
getPagein classReader<VerificationAttempt>- Parameters:
targetUrl- API-generated URL for the requested results pageclient- client used to fetch- Returns:
- Page containing the target pageSize of resources
-
-