Class PaginationParameters


  • public class PaginationParameters
    extends java.lang.Object
    • Constructor Detail

      • PaginationParameters

        public PaginationParameters()
      • PaginationParameters

        public PaginationParameters​(boolean includeAll,
                                    java.lang.Integer pageSize,
                                    java.lang.Integer page)
        Constructor
      • PaginationParameters

        public PaginationParameters​(java.lang.String paginationType,
                                    java.lang.String lastKey,
                                    java.lang.Integer maxItems)
        Constructor with token-based pagination parameters
    • Method Detail

      • isIncludeAll

        public boolean isIncludeAll()
        Gets includeAll
        Returns:
        includeAll
      • setIncludeAll

        public PaginationParameters setIncludeAll​(boolean includeAll)
        Sets includeAll
        Parameters:
        includeAll - include all parameter
      • getPageSize

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

        public PaginationParameters setPageSize​(java.lang.Integer pageSize)
        Sets the page size
        Parameters:
        pageSize - the page size
      • getPage

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

        public PaginationParameters setPage​(java.lang.Integer page)
        Sets the page
        Parameters:
        page - the page number
      • getPaginationType

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

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

        public java.lang.String getLastKey()
        Gets the lastKey
        Returns:
        lastKey for token-based pagination
      • setLastKey

        public PaginationParameters setLastKey​(java.lang.String lastKey)
        Sets the lastKey
        Parameters:
        lastKey - the lastKey for token-based pagination
      • getMaxItems

        public java.lang.Integer getMaxItems()
        Gets the maxItems
        Returns:
        maxItems for token-based pagination
      • setMaxItems

        public PaginationParameters setMaxItems​(java.lang.Integer maxItems)
        Sets the maxItems
        Parameters:
        maxItems - the maxItems for token-based pagination
      • toQueryString

        public java.lang.String toQueryString()
        Convert to a query string
      • toHashMap

        public java.util.Map<java.lang.String,​java.lang.Object> toHashMap()
        Convert to a hash map