Class ProjectCategoryRecommendationMetaBuilder

java.lang.Object
com.commercetools.ml.models.category_recommendations.ProjectCategoryRecommendationMetaBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProjectCategoryRecommendationMeta>

public class ProjectCategoryRecommendationMetaBuilder extends Object implements io.vrap.rmf.base.client.Builder<ProjectCategoryRecommendationMeta>
ProjectCategoryRecommendationMetaBuilder
Example to create an instance using the builder pattern

     ProjectCategoryRecommendationMeta projectCategoryRecommendationMeta = ProjectCategoryRecommendationMeta.builder()
             .plusGeneralCategoryNames(generalCategoryNamesBuilder -> generalCategoryNamesBuilder)
             .build()
 
  • Constructor Details

  • Method Details

    • productName

      The product name that was used to generate recommendations.

      Parameters:
      productName - value to be set
      Returns:
      Builder
    • productImageUrl

      The product image that was used to generate recommendations.

      Parameters:
      productImageUrl - value to be set
      Returns:
      Builder
    • generalCategoryNames

      Top 5 general categories that were used internally to generate the project-specific categories. These category names are not related to the categories defined in the project, but they provide additional information to understand the project-specific categories in the results section.

      Parameters:
      generalCategoryNames - value to be set
      Returns:
      Builder
    • generalCategoryNames

      Top 5 general categories that were used internally to generate the project-specific categories. These category names are not related to the categories defined in the project, but they provide additional information to understand the project-specific categories in the results section.

      Parameters:
      generalCategoryNames - value to be set
      Returns:
      Builder
    • plusGeneralCategoryNames

      Top 5 general categories that were used internally to generate the project-specific categories. These category names are not related to the categories defined in the project, but they provide additional information to understand the project-specific categories in the results section.

      Parameters:
      generalCategoryNames - value to be set
      Returns:
      Builder
    • getProductName

      The product name that was used to generate recommendations.

      Returns:
      productName
    • getProductImageUrl

      The product image that was used to generate recommendations.

      Returns:
      productImageUrl
    • getGeneralCategoryNames

      Top 5 general categories that were used internally to generate the project-specific categories. These category names are not related to the categories defined in the project, but they provide additional information to understand the project-specific categories in the results section.

      Returns:
      generalCategoryNames
    • build

      builds ProjectCategoryRecommendationMeta with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<ProjectCategoryRecommendationMeta>
      Returns:
      ProjectCategoryRecommendationMeta
    • buildUnchecked

      builds ProjectCategoryRecommendationMeta without checking for non-null required values
      Returns:
      ProjectCategoryRecommendationMeta
    • of

      factory method for an instance of ProjectCategoryRecommendationMetaBuilder
      Returns:
      builder
    • of

      create builder for ProjectCategoryRecommendationMeta instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder