Interface Recommender.Builder

  • Method Details

    • name

      The unique name of the recommender.

      Parameters:
      name - The unique name of the recommender.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      A list of filters to apply to the returned recommendations. Filters define criteria for including or excluding items from the recommendation results.

      Parameters:
      filters - A list of filters to apply to the returned recommendations. Filters define criteria for including or excluding items from the recommendation results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      A list of filters to apply to the returned recommendations. Filters define criteria for including or excluding items from the recommendation results.

      Parameters:
      filters - A list of filters to apply to the returned recommendations. Filters define criteria for including or excluding items from the recommendation results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      A list of filters to apply to the returned recommendations. Filters define criteria for including or excluding items from the recommendation results.

      This is a convenience method that creates an instance of the RecommenderFilter.Builder avoiding the need to create one manually via RecommenderFilter.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to filters(List<RecommenderFilter>).

      Parameters:
      filters - a consumer that will call methods on RecommenderFilter.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • promotionalFilters

      Recommender.Builder promotionalFilters(Collection<RecommenderPromotionalFilter> promotionalFilters)

      A list of promotional filters to apply to the recommendations. Promotional filters allow you to promote specific items within a configurable subset of recommendation results.

      Parameters:
      promotionalFilters - A list of promotional filters to apply to the recommendations. Promotional filters allow you to promote specific items within a configurable subset of recommendation results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • promotionalFilters

      Recommender.Builder promotionalFilters(RecommenderPromotionalFilter... promotionalFilters)

      A list of promotional filters to apply to the recommendations. Promotional filters allow you to promote specific items within a configurable subset of recommendation results.

      Parameters:
      promotionalFilters - A list of promotional filters to apply to the recommendations. Promotional filters allow you to promote specific items within a configurable subset of recommendation results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • promotionalFilters

      Recommender.Builder promotionalFilters(Consumer<RecommenderPromotionalFilter.Builder>... promotionalFilters)

      A list of promotional filters to apply to the recommendations. Promotional filters allow you to promote specific items within a configurable subset of recommendation results.

      This is a convenience method that creates an instance of the RecommenderPromotionalFilter.Builder avoiding the need to create one manually via RecommenderPromotionalFilter.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to promotionalFilters(List<RecommenderPromotionalFilter>).

      Parameters:
      promotionalFilters - a consumer that will call methods on RecommenderPromotionalFilter.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: