Class ProjectCategoryRecommendationPagedQueryResponseBuilder
java.lang.Object
com.commercetools.ml.models.category_recommendations.ProjectCategoryRecommendationPagedQueryResponseBuilder
- All Implemented Interfaces:
Builder<ProjectCategoryRecommendationPagedQueryResponse>
public class ProjectCategoryRecommendationPagedQueryResponseBuilder
extends Object
implements Builder<ProjectCategoryRecommendationPagedQueryResponse>
ProjectCategoryRecommendationPagedQueryResponseBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProjectCategoryRecommendationPagedQueryResponse projectCategoryRecommendationPagedQueryResponse = ProjectCategoryRecommendationPagedQueryResponse.builder()
.count(0.3)
.total(0.3)
.offset(0.3)
.plusResults(resultsBuilder -> resultsBuilder)
.meta(metaBuilder -> metaBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd the value to the results using the builder functionbuild()
builds ProjectCategoryRecommendationPagedQueryResponse with checking for non-null required valuesbuilds ProjectCategoryRecommendationPagedQueryResponse without checking for non-null required valuesset the value to the countgetCount()
value of count}getMeta()
value of meta}Number of elements skipped.value of results}getTotal()
value of total}set the value to the metameta
(Function<ProjectCategoryRecommendationMetaBuilder, ProjectCategoryRecommendationMetaBuilder> builder) set the value to the meta using the builder functionof()
factory method for an instance of ProjectCategoryRecommendationPagedQueryResponseBuildercreate builder for ProjectCategoryRecommendationPagedQueryResponse instanceNumber of elements skipped.plusResults
(ProjectCategoryRecommendation... results) add values to the resultsplusResults
(Function<ProjectCategoryRecommendationBuilder, ProjectCategoryRecommendationBuilder> builder) add the value to the results using the builder functionresults
(ProjectCategoryRecommendation... results) set values to the resultsresults
(List<ProjectCategoryRecommendation> results) set value to the resultsset the value to the results using the builder functionset the value to the totalwithMeta
(Function<ProjectCategoryRecommendationMetaBuilder, ProjectCategoryRecommendationMeta> builder) set the value to the meta using the builder functionwithResults
(Function<ProjectCategoryRecommendationBuilder, ProjectCategoryRecommendationBuilder> builder) set the value to the results using the builder function
-
Constructor Details
-
ProjectCategoryRecommendationPagedQueryResponseBuilder
public ProjectCategoryRecommendationPagedQueryResponseBuilder()
-
-
Method Details
-
count
set the value to the count- Parameters:
count
- value to be set- Returns:
- Builder
-
total
set the value to the total- Parameters:
total
- value to be set- Returns:
- Builder
-
offset
Number of elements skipped.
- Parameters:
offset
- value to be set- Returns:
- Builder
-
results
public ProjectCategoryRecommendationPagedQueryResponseBuilder results(ProjectCategoryRecommendation... results) set values to the results- Parameters:
results
- value to be set- Returns:
- Builder
-
results
public ProjectCategoryRecommendationPagedQueryResponseBuilder results(List<ProjectCategoryRecommendation> results) set value to the results- Parameters:
results
- value to be set- Returns:
- Builder
-
plusResults
public ProjectCategoryRecommendationPagedQueryResponseBuilder plusResults(ProjectCategoryRecommendation... results) add values to the results- Parameters:
results
- value to be set- Returns:
- Builder
-
plusResults
public ProjectCategoryRecommendationPagedQueryResponseBuilder plusResults(Function<ProjectCategoryRecommendationBuilder, ProjectCategoryRecommendationBuilder> builder) add the value to the results using the builder function- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
withResults
public ProjectCategoryRecommendationPagedQueryResponseBuilder withResults(Function<ProjectCategoryRecommendationBuilder, ProjectCategoryRecommendationBuilder> builder) set the value to the results using the builder function- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
addResults
public ProjectCategoryRecommendationPagedQueryResponseBuilder addResults(Function<ProjectCategoryRecommendationBuilder, ProjectCategoryRecommendation> builder) add the value to the results using the builder function- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
setResults
public ProjectCategoryRecommendationPagedQueryResponseBuilder setResults(Function<ProjectCategoryRecommendationBuilder, ProjectCategoryRecommendation> builder) set the value to the results using the builder function- Parameters:
builder
- function to build the results value- Returns:
- Builder
-
meta
public ProjectCategoryRecommendationPagedQueryResponseBuilder meta(Function<ProjectCategoryRecommendationMetaBuilder, ProjectCategoryRecommendationMetaBuilder> builder) set the value to the meta using the builder function- Parameters:
builder
- function to build the meta value- Returns:
- Builder
-
withMeta
public ProjectCategoryRecommendationPagedQueryResponseBuilder withMeta(Function<ProjectCategoryRecommendationMetaBuilder, ProjectCategoryRecommendationMeta> builder) set the value to the meta using the builder function- Parameters:
builder
- function to build the meta value- Returns:
- Builder
-
meta
public ProjectCategoryRecommendationPagedQueryResponseBuilder meta(ProjectCategoryRecommendationMeta meta) set the value to the meta- Parameters:
meta
- value to be set- Returns:
- Builder
-
getCount
value of count}- Returns:
- count
-
getTotal
value of total}- Returns:
- total
-
getOffset
Number of elements skipped.
- Returns:
- offset
-
getResults
value of results}- Returns:
- results
-
getMeta
value of meta}- Returns:
- meta
-
build
builds ProjectCategoryRecommendationPagedQueryResponse with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProjectCategoryRecommendationPagedQueryResponse>
- Returns:
- ProjectCategoryRecommendationPagedQueryResponse
-
buildUnchecked
builds ProjectCategoryRecommendationPagedQueryResponse without checking for non-null required values- Returns:
- ProjectCategoryRecommendationPagedQueryResponse
-
of
factory method for an instance of ProjectCategoryRecommendationPagedQueryResponseBuilder- Returns:
- builder
-
of
public static ProjectCategoryRecommendationPagedQueryResponseBuilder of(ProjectCategoryRecommendationPagedQueryResponse template) create builder for ProjectCategoryRecommendationPagedQueryResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-