public static interface GetRecommendationsResponse.Builder extends PersonalizeRuntimeResponse.Builder, SdkPojo, CopyableBuilder<GetRecommendationsResponse.Builder,GetRecommendationsResponse>
| Modifier and Type | Method and Description |
|---|---|
GetRecommendationsResponse.Builder |
itemList(Collection<PredictedItem> itemList)
A list of recommendations sorted in ascending order by prediction score.
|
GetRecommendationsResponse.Builder |
itemList(Consumer<PredictedItem.Builder>... itemList)
A list of recommendations sorted in ascending order by prediction score.
|
GetRecommendationsResponse.Builder |
itemList(PredictedItem... itemList)
A list of recommendations sorted in ascending order by prediction score.
|
GetRecommendationsResponse.Builder |
recommendationId(String recommendationId)
The ID of the recommendation.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildGetRecommendationsResponse.Builder itemList(Collection<PredictedItem> itemList)
A list of recommendations sorted in ascending order by prediction score. There can be a maximum of 500 items in the list.
itemList - A list of recommendations sorted in ascending order by prediction score. There can be a maximum of 500
items in the list.GetRecommendationsResponse.Builder itemList(PredictedItem... itemList)
A list of recommendations sorted in ascending order by prediction score. There can be a maximum of 500 items in the list.
itemList - A list of recommendations sorted in ascending order by prediction score. There can be a maximum of 500
items in the list.GetRecommendationsResponse.Builder itemList(Consumer<PredictedItem.Builder>... itemList)
A list of recommendations sorted in ascending order by prediction score. There can be a maximum of 500 items in the list.
This is a convenience that creates an instance of theList.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #itemList(List) .itemList - a consumer that will call methods on List.Builder #itemList(List) GetRecommendationsResponse.Builder recommendationId(String recommendationId)
The ID of the recommendation.
recommendationId - The ID of the recommendation.Copyright © 2020. All rights reserved.