Package com.twilio.rest.flexapi.v1
Class InsightsSegmentsReader
- java.lang.Object
-
- com.twilio.base.Reader<InsightsSegments>
-
- com.twilio.rest.flexapi.v1.InsightsSegmentsReader
-
public class InsightsSegmentsReader extends Reader<InsightsSegments>
-
-
Constructor Summary
Constructors Constructor Description InsightsSegmentsReader()
-
Method Summary
-
-
-
Method Detail
-
setAuthorization
public InsightsSegmentsReader setAuthorization(String authorization)
-
setSegmentId
public InsightsSegmentsReader setSegmentId(String segmentId)
-
setReservationId
public InsightsSegmentsReader setReservationId(List<String> reservationId)
-
setReservationId
public InsightsSegmentsReader setReservationId(String reservationId)
-
setPageSize
public InsightsSegmentsReader setPageSize(Integer pageSize)
-
read
public ResourceSet<InsightsSegments> read(TwilioRestClient client)
Description copied from class:Reader
Execute a request using specified client.- Specified by:
read
in classReader<InsightsSegments>
- Parameters:
client
- client used to make request- Returns:
- ResourceSet of objects
-
firstPage
public Page<InsightsSegments> firstPage(TwilioRestClient client)
Description copied from class:Reader
Fetch the first page of resources using specified client.- Specified by:
firstPage
in classReader<InsightsSegments>
- Parameters:
client
- client used to fetch- Returns:
- Page containing the first pageSize of resources
-
previousPage
public Page<InsightsSegments> previousPage(Page<InsightsSegments> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the prior page of resources using specified client.- Specified by:
previousPage
in classReader<InsightsSegments>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the previous pageSize of resources
-
nextPage
public Page<InsightsSegments> nextPage(Page<InsightsSegments> page, TwilioRestClient client)
Description copied from class:Reader
Fetch the following page of resources using specified client.- Specified by:
nextPage
in classReader<InsightsSegments>
- Parameters:
page
- current page of resourcesclient
- client used to fetch- Returns:
- Page containing the next pageSize of resources
-
getPage
public Page<InsightsSegments> getPage(String targetUrl, TwilioRestClient client)
Description copied from class:Reader
Retrieve the target page of resources.- Specified by:
getPage
in classReader<InsightsSegments>
- Parameters:
targetUrl
- API-generated URL for the requested results pageclient
- client used to fetch- Returns:
- Page containing the target pageSize of resources
-
-