Package com.twilio.rest.content.v2
Class ContentAndApprovalsReader
- java.lang.Object
-
- com.twilio.base.Reader<ContentAndApprovals>
-
- com.twilio.rest.content.v2.ContentAndApprovalsReader
-
public class ContentAndApprovalsReader extends Reader<ContentAndApprovals>
-
-
Constructor Summary
Constructors Constructor Description ContentAndApprovalsReader()
-
Method Summary
-
-
-
Method Detail
-
setPageSize
public ContentAndApprovalsReader setPageSize(Integer pageSize)
-
setSortByDate
public ContentAndApprovalsReader setSortByDate(String sortByDate)
-
setSortByContentName
public ContentAndApprovalsReader setSortByContentName(String sortByContentName)
-
setDateCreatedAfter
public ContentAndApprovalsReader setDateCreatedAfter(ZonedDateTime dateCreatedAfter)
-
setDateCreatedBefore
public ContentAndApprovalsReader setDateCreatedBefore(ZonedDateTime dateCreatedBefore)
-
setContentName
public ContentAndApprovalsReader setContentName(String contentName)
-
setContent
public ContentAndApprovalsReader setContent(String content)
-
setLanguage
public ContentAndApprovalsReader setLanguage(List<String> language)
-
setLanguage
public ContentAndApprovalsReader setLanguage(String language)
-
setContentType
public ContentAndApprovalsReader setContentType(List<String> contentType)
-
setContentType
public ContentAndApprovalsReader setContentType(String contentType)
-
setChannelEligibility
public ContentAndApprovalsReader setChannelEligibility(List<String> channelEligibility)
-
setChannelEligibility
public ContentAndApprovalsReader setChannelEligibility(String channelEligibility)
-
read
public ResourceSet<ContentAndApprovals> read(TwilioRestClient client)
Description copied from class:Reader
Execute a request using specified client.- Specified by:
read
in classReader<ContentAndApprovals>
- Parameters:
client
- client used to make request- Returns:
- ResourceSet of objects
-
firstPage
public Page<ContentAndApprovals> firstPage(TwilioRestClient client)
Description copied from class:Reader
Fetch the first page of resources using specified client.- Specified by:
firstPage
in classReader<ContentAndApprovals>
- Parameters:
client
- client used to fetch- Returns:
- Page containing the first pageSize of resources
-
previousPage
public Page<ContentAndApprovals> previousPage(Page<ContentAndApprovals> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the prior page of resources using specified client.- Specified by:
previousPage
in classReader<ContentAndApprovals>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<ContentAndApprovals> nextPage(Page<ContentAndApprovals> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the following page of resources using specified client.- Specified by:
nextPage
in classReader<ContentAndApprovals>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the next pageSize of resources
-
getPage
public Page<ContentAndApprovals> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:Reader
Retrieve the target page of resources.- Specified by:
getPage
in classReader<ContentAndApprovals>
- Parameters:
targetUrl
- API-generated URL for the requested results pageclient
- client used to fetch- Returns:
- Page containing the target pageSize of resources
-
-