Package com.smartsheet.api.models
Class TokenPaginationParameters
- java.lang.Object
-
- com.smartsheet.api.models.TokenPaginationParameters
-
public class TokenPaginationParameters extends java.lang.ObjectRepresents token-based pagination parameters for API requests
-
-
Constructor Summary
Constructors Constructor Description TokenPaginationParameters()TokenPaginationParameters(java.lang.String lastKey, java.lang.Integer maxItems)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLastKey()Gets the lastKeyjava.lang.IntegergetMaxItems()Gets the maxItemsTokenPaginationParameterssetLastKey(java.lang.String lastKey)Sets the lastKeyTokenPaginationParameterssetMaxItems(java.lang.Integer maxItems)Sets the maxItemsjava.util.Map<java.lang.String,java.lang.Object>toHashMap()Convert to a hash mapjava.lang.StringtoQueryString()Convert to a query string
-
-
-
Constructor Detail
-
TokenPaginationParameters
public TokenPaginationParameters()
-
TokenPaginationParameters
public TokenPaginationParameters(java.lang.String lastKey, java.lang.Integer maxItems)- Parameters:
lastKey- the lastKey for token-based paginationmaxItems- the maxItems for token-based pagination
-
-
Method Detail
-
getLastKey
public java.lang.String getLastKey()
Gets the lastKey- Returns:
- lastKey for token-based pagination
-
setLastKey
public TokenPaginationParameters 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 TokenPaginationParameters 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
-
-