Class 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