Class PaginationParameters.PaginationParametersBuilder

  • Enclosing class:
    PaginationParameters

    public static class PaginationParameters.PaginationParametersBuilder
    extends java.lang.Object
    A convenience class for creating a PaginationParameters object
    • Constructor Detail

      • PaginationParametersBuilder

        public PaginationParametersBuilder()
    • Method Detail

      • isIncludeAll

        public boolean isIncludeAll()
        Gets the include all flag
        Returns:
        the include all flag
      • getPage

        public java.lang.Integer getPage()
        Gets the page
        Returns:
        the page
      • getPageSize

        public java.lang.Integer getPageSize()
        Gets the page size
        Returns:
        the page size
      • getPaginationType

        public java.lang.String getPaginationType()
        Gets the pagination type
        Returns:
        the pagination type
      • setPaginationType

        public PaginationParameters.PaginationParametersBuilder setPaginationType​(java.lang.String paginationType)
        Sets the pagination type
        Parameters:
        paginationType - the pagination type (e.g. "token")
        Returns:
        the builder
      • getLastKey

        public java.lang.String getLastKey()
        Gets the lastKey
        Returns:
        the lastKey
      • getMaxItems

        public java.lang.Integer getMaxItems()
        Gets the maxItems
        Returns:
        the maxItems
      • build

        public PaginationParameters build()
        Builds the PaginationParameters object
        Returns:
        pagination parameter object