Interface ProjectCategoryRecommendation
Example to create an instance using the builder pattern
ProjectCategoryRecommendation projectCategoryRecommendation = ProjectCategoryRecommendation.builder()
.category(categoryBuilder -> categoryBuilder)
.confidence(0.3)
.path("{path}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProjectCategoryRecommendationbuilder
(ProjectCategoryRecommendation template) create builder for ProjectCategoryRecommendation instancedeepCopy
(ProjectCategoryRecommendation template) factory method to create a deep copy of ProjectCategoryRecommendation@NotNull @Valid CategoryReference
A category that is recommended for a product.@NotNull Double
Probability score for the category recommendation.@NotNull String
getPath()
Breadcrumb path to the recommended category.of()
factory methodof
(ProjectCategoryRecommendation template) factory method to create a shallow copy ProjectCategoryRecommendationvoid
setCategory
(CategoryReference category) A category that is recommended for a product.void
setConfidence
(Double confidence) Probability score for the category recommendation.void
Breadcrumb path to the recommended category.static com.fasterxml.jackson.core.type.TypeReference<ProjectCategoryRecommendation>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
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
-
setCategory
A category that is recommended for a product.
- Parameters:
category
- value to be set
-
setConfidence
Probability score for the category recommendation.
- Parameters:
confidence
- value to be set
-
setPath
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
-
of
factory method- Returns:
- instance of ProjectCategoryRecommendation
-
of
factory method to create a shallow copy ProjectCategoryRecommendation- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProjectCategoryRecommendation deepCopy(@Nullable ProjectCategoryRecommendation template) factory method to create a deep copy of ProjectCategoryRecommendation- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProjectCategoryRecommendation- Returns:
- builder
-
builder
create builder for ProjectCategoryRecommendation instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProjectCategoryRecommendation
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-