Interface GetRecommendationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetRecommendationsResponse.Builder,
,GetRecommendationsResponse> PersonalizeRuntimeResponse.Builder
,SdkBuilder<GetRecommendationsResponse.Builder,
,GetRecommendationsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetRecommendationsResponse
public static interface GetRecommendationsResponse.Builder
extends PersonalizeRuntimeResponse.Builder, SdkPojo, CopyableBuilder<GetRecommendationsResponse.Builder,GetRecommendationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionitemList
(Collection<PredictedItem> itemList) A list of recommendations sorted in descending order by prediction score.itemList
(Consumer<PredictedItem.Builder>... itemList) A list of recommendations sorted in descending order by prediction score.itemList
(PredictedItem... itemList) A list of recommendations sorted in descending order by prediction score.recommendationId
(String recommendationId) The ID of the recommendation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.personalizeruntime.model.PersonalizeRuntimeResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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 thePredictedItem.Builder
avoiding the need to create one manually viaPredictedItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toitemList(List<PredictedItem>)
.- Parameters:
itemList
- a consumer that will call methods onPredictedItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-