Package com.smartsheet.api.models
Class PaginationParameters.PaginationParametersBuilder
- java.lang.Object
-
- com.smartsheet.api.models.PaginationParameters.PaginationParametersBuilder
-
- Enclosing class:
- PaginationParameters
public static class PaginationParameters.PaginationParametersBuilder extends java.lang.Object
A convenience class for creating a PaginationParameters object
-
-
Constructor Summary
Constructors Constructor Description PaginationParametersBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaginationParameters
build()
Builds the PaginationParameters objectjava.lang.Integer
getPage()
Gets the pagejava.lang.Integer
getPageSize()
Gets the page sizeboolean
isIncludeAll()
Gets the include all flagPaginationParameters.PaginationParametersBuilder
setIncludeAll(boolean includeAll)
Sets the include All FlagPaginationParameters.PaginationParametersBuilder
setPage(java.lang.Integer page)
Sets the pagePaginationParameters.PaginationParametersBuilder
setPageSize(java.lang.Integer pageSize)
Sets the page size
-
-
-
Method Detail
-
isIncludeAll
public boolean isIncludeAll()
Gets the include all flag- Returns:
- the include all flag
-
setIncludeAll
public PaginationParameters.PaginationParametersBuilder setIncludeAll(boolean includeAll)
Sets the include All Flag- Parameters:
includeAll
- the include all flag- Returns:
- the builder
-
getPage
public java.lang.Integer getPage()
Gets the page- Returns:
- the page
-
setPage
public PaginationParameters.PaginationParametersBuilder setPage(java.lang.Integer page)
Sets the page- Parameters:
page
- the page- Returns:
- the builder
-
getPageSize
public java.lang.Integer getPageSize()
Gets the page size- Returns:
- the page size
-
setPageSize
public PaginationParameters.PaginationParametersBuilder setPageSize(java.lang.Integer pageSize)
Sets the page size- Parameters:
pageSize
- the page size- Returns:
- the builder
-
build
public PaginationParameters build()
Builds the PaginationParameters object- Returns:
- pagination parameter object
-
-