Class MetaResponse.Builder
java.lang.Object
com.langfuse.client.resources.utils.pagination.types.MetaResponse.Builder
- All Implemented Interfaces:
MetaResponse._FinalStage,MetaResponse.LimitStage,MetaResponse.PageStage,MetaResponse.TotalItemsStage,MetaResponse.TotalPagesStage
- Enclosing class:
MetaResponse
public static final class MetaResponse.Builder
extends Object
implements MetaResponse.PageStage, MetaResponse.LimitStage, MetaResponse.TotalItemsStage, MetaResponse.TotalPagesStage, MetaResponse._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()from(MetaResponse other) limit(int limit) number of items per pagepage(int page) current page numbertotalItems(int totalItems) number of total items given the current filters/selection (if any)totalPages(int totalPages) number of total pages given the current limit
-
Method Details
-
from
- Specified by:
fromin interfaceMetaResponse.PageStage
-
page
current page number
current page number
- Specified by:
pagein interfaceMetaResponse.PageStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
limit
number of items per page
number of items per page
- Specified by:
limitin interfaceMetaResponse.LimitStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
totalItems
number of total items given the current filters/selection (if any)
number of total items given the current filters/selection (if any)
- Specified by:
totalItemsin interfaceMetaResponse.TotalItemsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
totalPages
number of total pages given the current limit
number of total pages given the current limit
- Specified by:
totalPagesin interfaceMetaResponse.TotalPagesStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
- Specified by:
buildin interfaceMetaResponse._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceMetaResponse._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceMetaResponse._FinalStage
-