Interface GeneralCategoryRecommendationPagedQueryResponse
public interface GeneralCategoryRecommendationPagedQueryResponse
GeneralCategoryRecommendationPagedQueryResponse
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GeneralCategoryRecommendationPagedQueryResponse generalCategoryRecommendationPagedQueryResponse = GeneralCategoryRecommendationPagedQueryResponse.builder()
.count(0.3)
.total(0.3)
.offset(0.3)
.plusResults(resultsBuilder -> resultsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GeneralCategoryRecommendationPagedQueryResponsecreate builder for GeneralCategoryRecommendationPagedQueryResponse instancefactory method to create a deep copy of GeneralCategoryRecommendationPagedQueryResponse@NotNull Long
getCount()
@NotNull Long
Number of elements skipped.@NotNull @Valid List<GeneralCategoryRecommendation>
@NotNull Long
getTotal()
of()
factory methodfactory method to create a shallow copy GeneralCategoryRecommendationPagedQueryResponsevoid
set countvoid
Number of elements skipped.void
setResults
(GeneralCategoryRecommendation... results) set resultsvoid
setResults
(List<GeneralCategoryRecommendation> results) set resultsvoid
set totalstatic com.fasterxml.jackson.core.type.TypeReference<GeneralCategoryRecommendationPagedQueryResponse>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGeneralCategoryRecommendationPagedQueryResponse
(Function<GeneralCategoryRecommendationPagedQueryResponse, T> helper) accessor map function
-
Method Details
-
getCount
- Returns:
- count
-
getTotal
- Returns:
- total
-
getOffset
Number of elements skipped.
- Returns:
- offset
-
getResults
- Returns:
- results
-
setCount
set count- Parameters:
count
- value to be set
-
setTotal
set total- Parameters:
total
- value to be set
-
setOffset
Number of elements skipped.
- Parameters:
offset
- value to be set
-
setResults
set results- Parameters:
results
- values to be set
-
setResults
set results- Parameters:
results
- values to be set
-
of
factory method- Returns:
- instance of GeneralCategoryRecommendationPagedQueryResponse
-
of
static GeneralCategoryRecommendationPagedQueryResponse of(GeneralCategoryRecommendationPagedQueryResponse template) factory method to create a shallow copy GeneralCategoryRecommendationPagedQueryResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GeneralCategoryRecommendationPagedQueryResponse deepCopy(@Nullable GeneralCategoryRecommendationPagedQueryResponse template) factory method to create a deep copy of GeneralCategoryRecommendationPagedQueryResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GeneralCategoryRecommendationPagedQueryResponse- Returns:
- builder
-
builder
static GeneralCategoryRecommendationPagedQueryResponseBuilder builder(GeneralCategoryRecommendationPagedQueryResponse template) create builder for GeneralCategoryRecommendationPagedQueryResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGeneralCategoryRecommendationPagedQueryResponse
default <T> T withGeneralCategoryRecommendationPagedQueryResponse(Function<GeneralCategoryRecommendationPagedQueryResponse, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GeneralCategoryRecommendationPagedQueryResponse> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-