Class ProjectCategoryRecommendationBuilder
- All Implemented Interfaces:
Builder<ProjectCategoryRecommendation>
Example to create an instance using the builder pattern
ProjectCategoryRecommendation projectCategoryRecommendation = ProjectCategoryRecommendation.builder()
.category(categoryBuilder -> categoryBuilder)
.confidence(0.3)
.path("{path}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProjectCategoryRecommendation with checking for non-null required valuesbuilds ProjectCategoryRecommendation without checking for non-null required valuescategory
(CategoryReference category) A category that is recommended for a product.A category that is recommended for a product.confidence
(Double confidence) Probability score for the category recommendation.A category that is recommended for a product.Probability score for the category recommendation.getPath()
Breadcrumb path to the recommended category.of()
factory method for an instance of ProjectCategoryRecommendationBuilderof
(ProjectCategoryRecommendation template) create builder for ProjectCategoryRecommendation instanceBreadcrumb path to the recommended category.A category that is recommended for a product.
-
Constructor Details
-
ProjectCategoryRecommendationBuilder
public ProjectCategoryRecommendationBuilder()
-
-
Method Details
-
category
public ProjectCategoryRecommendationBuilder category(Function<CategoryReferenceBuilder, CategoryReferenceBuilder> builder) A category that is recommended for a product.
- Parameters:
builder
- function to build the category value- Returns:
- Builder
-
withCategory
public ProjectCategoryRecommendationBuilder withCategory(Function<CategoryReferenceBuilder, CategoryReference> builder) A category that is recommended for a product.
- Parameters:
builder
- function to build the category value- Returns:
- Builder
-
category
A category that is recommended for a product.
- Parameters:
category
- value to be set- Returns:
- Builder
-
confidence
Probability score for the category recommendation.
- Parameters:
confidence
- value to be set- Returns:
- Builder
-
path
Breadcrumb path to the recommended category. This only picks up one language, not all available languages for the category. English is prioritized, but if English data is not available, an arbitrary language is selected. Do not use this to identify a category,use the category ID from the category reference instead.
- Parameters:
path
- value to be set- Returns:
- Builder
-
getCategory
A category that is recommended for a product.
- Returns:
- category
-
getConfidence
Probability score for the category recommendation.
- Returns:
- confidence
-
getPath
Breadcrumb path to the recommended category. This only picks up one language, not all available languages for the category. English is prioritized, but if English data is not available, an arbitrary language is selected. Do not use this to identify a category,use the category ID from the category reference instead.
- Returns:
- path
-
build
builds ProjectCategoryRecommendation with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProjectCategoryRecommendation>
- Returns:
- ProjectCategoryRecommendation
-
buildUnchecked
builds ProjectCategoryRecommendation without checking for non-null required values- Returns:
- ProjectCategoryRecommendation
-
of
factory method for an instance of ProjectCategoryRecommendationBuilder- Returns:
- builder
-
of
create builder for ProjectCategoryRecommendation instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-