Interface GeneralCategoryRecommendation
public interface GeneralCategoryRecommendation
GeneralCategoryRecommendation
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GeneralCategoryRecommendation generalCategoryRecommendation = GeneralCategoryRecommendation.builder()
.categoryName("{categoryName}")
.confidence(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GeneralCategoryRecommendationbuilder(GeneralCategoryRecommendation template) create builder for GeneralCategoryRecommendation instancedeepCopy(GeneralCategoryRecommendation template) factory method to create a deep copy of GeneralCategoryRecommendation@NotNull StringAn English category name that is recommended for a product.@NotNull DoubleProbability score for the category recommendation.of()factory methodof(GeneralCategoryRecommendation template) factory method to create a shallow copy GeneralCategoryRecommendationvoidsetCategoryName(String categoryName) An English category name that is recommended for a product.voidsetConfidence(Double confidence) Probability score for the category recommendation.static com.fasterxml.jackson.core.type.TypeReference<GeneralCategoryRecommendation>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getCategoryName
An English category name that is recommended for a product.
- Returns:
- categoryName
-
getConfidence
Probability score for the category recommendation.
- Returns:
- confidence
-
setCategoryName
An English category name that is recommended for a product.
- Parameters:
categoryName- value to be set
-
setConfidence
Probability score for the category recommendation.
- Parameters:
confidence- value to be set
-
of
factory method- Returns:
- instance of GeneralCategoryRecommendation
-
of
factory method to create a shallow copy GeneralCategoryRecommendation- Parameters:
template- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GeneralCategoryRecommendation deepCopy(@Nullable GeneralCategoryRecommendation template) factory method to create a deep copy of GeneralCategoryRecommendation- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GeneralCategoryRecommendation- Returns:
- builder
-
builder
create builder for GeneralCategoryRecommendation instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withGeneralCategoryRecommendation
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
-