Package com.adobe.granite.haf.api
Interface PaginatableResourceListBuilder
An interface for creating ApiResponse instances. To create an ApiResponseBuilder instance use
PaginatableResourceListBuilderFactory.getBuilder()
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the PaginatableResourceList.setCount(int count) Set the count.setNextOffsetValue(String value) Set the next offset value.setResources(List<Resource> resources) Set the list of resources.
-
Method Details
-
setNextOffsetValue
Set the next offset value.- Parameters:
value- The value of the next offset.- Returns:
- This builder object.
-
setCount
Set the count.- Parameters:
count- The count.- Returns:
- This builder object.
-
setResources
Set the list of resources.- Parameters:
resources- The list of resources.- Returns:
- This builder object.
-
build
PaginatableResourceList build()Build the PaginatableResourceList.- Returns:
- The new PaginatableResourceList.
-