Interface Recommendation.Builder

  • Method Details

    • catalogItem

      Recommendation.Builder catalogItem(CatalogItem catalogItem)

      The catalog item being recommended, including its complete details and attributes.

      Parameters:
      catalogItem - The catalog item being recommended, including its complete details and attributes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • catalogItem

      default Recommendation.Builder catalogItem(Consumer<CatalogItem.Builder> catalogItem)

      The catalog item being recommended, including its complete details and attributes.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to catalogItem(CatalogItem).

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

      Recommendation Score between 0 and 1.

      Parameters:
      score - Recommendation Score between 0 and 1.
      Returns:
      Returns a reference to this object so that method calls can be chained together.