Interface GetRecommendationsResponse.Builder

    • Method Detail

      • itemList

        GetRecommendationsResponse.Builder itemList​(Collection<PredictedItem> itemList)

        A list of recommendations sorted in descending order by prediction score. There can be a maximum of 500 items in the list.

        Parameters:
        itemList - A list of recommendations sorted in descending order by prediction score. There can be a maximum of 500 items in the list.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • itemList

        GetRecommendationsResponse.Builder itemList​(PredictedItem... itemList)

        A list of recommendations sorted in descending order by prediction score. There can be a maximum of 500 items in the list.

        Parameters:
        itemList - A list of recommendations sorted in descending order by prediction score. There can be a maximum of 500 items in the list.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • recommendationId

        GetRecommendationsResponse.Builder recommendationId​(String recommendationId)

        The ID of the recommendation.

        Parameters:
        recommendationId - The ID of the recommendation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.