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 descending order by prediction score.
|
GetRecommendationsResponse.Builder |
itemList(Consumer<PredictedItem.Builder>... itemList)
A list of recommendations sorted in descending order by prediction score.
|
GetRecommendationsResponse.Builder |
itemList(PredictedItem... itemList)
A list of recommendations sorted in descending 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 descending order by prediction score. There can be a maximum of 500 items in the list.
itemList - A list of recommendations sorted in descending 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 descending order by prediction score. There can be a maximum of 500 items in the list.
itemList - A list of recommendations sorted in descending 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 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 thePredictedItem.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.
itemList - a consumer that will call methods on
PredictedItem.Builder#itemList(java.util.Collection) GetRecommendationsResponse.Builder recommendationId(String recommendationId)
The ID of the recommendation.
recommendationId - The ID of the recommendation.Copyright © 2022. All rights reserved.