Interface GetRecommendationsResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<GetRecommendationsResponse.Builder,GetRecommendationsResponse>, PersonalizeRuntimeResponse.Builder, SdkBuilder<GetRecommendationsResponse.Builder,GetRecommendationsResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
GetRecommendationsResponse

  • Method Details

    • 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

      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

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

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

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

      Parameters:
      itemList - a consumer that will call methods on PredictedItem.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.