Class RequestBuilderAndToken<T>
- java.lang.Object
 - 
- com.oracle.bmc.paginator.internal.RequestBuilderAndToken<T>
 
 
- 
- Type Parameters:
 T- The type of the request builder object
public class RequestBuilderAndToken<T> extends Object
A container class for a request builder and next page token.These pieces will be used to create a request to a list operation.
There are three possible values for the token:
- A null reference, in which case we should use the builder as-is to construct a request
 - A populated Optional, in which case we should use the value in the Optional as the page token in the builder
 - An empty/absent Optional, in which case we should use null as the page token in the builder
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getNextPageToken()TgetRequestBuilder()static <T> RequestBuilderAndToken<T>initialPage(T requestBuilder)static <T> RequestBuilderAndToken<T>subsequentPage(T requestBuilder, Optional<String> token) 
 - 
 
- 
- 
Method Detail
- 
subsequentPage
public static <T> RequestBuilderAndToken<T> subsequentPage(T requestBuilder, Optional<String> token)
 
- 
initialPage
public static <T> RequestBuilderAndToken<T> initialPage(T requestBuilder)
 
- 
getRequestBuilder
public T getRequestBuilder()
 
 - 
 
 -