Class GeneralCategoryRecommendationBuilder
java.lang.Object
com.commercetools.ml.models.general_category_recommendations.GeneralCategoryRecommendationBuilder
- All Implemented Interfaces:
Builder<GeneralCategoryRecommendation>
public class GeneralCategoryRecommendationBuilder
extends Object
implements Builder<GeneralCategoryRecommendation>
GeneralCategoryRecommendationBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds GeneralCategoryRecommendation with checking for non-null required valuesbuilds GeneralCategoryRecommendation without checking for non-null required valuescategoryName
(String categoryName) An English category name that is recommended for a product.confidence
(Double confidence) Probability score for the category recommendation.An English category name that is recommended for a product.Probability score for the category recommendation.of()
factory method for an instance of GeneralCategoryRecommendationBuilderof
(GeneralCategoryRecommendation template) create builder for GeneralCategoryRecommendation instance
-
Constructor Details
-
GeneralCategoryRecommendationBuilder
public GeneralCategoryRecommendationBuilder()
-
-
Method Details
-
categoryName
An English category name that is recommended for a product.
- Parameters:
categoryName
- value to be set- Returns:
- Builder
-
confidence
Probability score for the category recommendation.
- Parameters:
confidence
- value to be set- Returns:
- Builder
-
getCategoryName
An English category name that is recommended for a product.
- Returns:
- categoryName
-
getConfidence
Probability score for the category recommendation.
- Returns:
- confidence
-
build
builds GeneralCategoryRecommendation with checking for non-null required values- Specified by:
build
in interfaceBuilder<GeneralCategoryRecommendation>
- Returns:
- GeneralCategoryRecommendation
-
buildUnchecked
builds GeneralCategoryRecommendation without checking for non-null required values- Returns:
- GeneralCategoryRecommendation
-
of
factory method for an instance of GeneralCategoryRecommendationBuilder- Returns:
- builder
-
of
create builder for GeneralCategoryRecommendation instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-