Interface GetActionRecommendationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetActionRecommendationsResponse.Builder,
,GetActionRecommendationsResponse> PersonalizeRuntimeResponse.Builder
,SdkBuilder<GetActionRecommendationsResponse.Builder,
,GetActionRecommendationsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetActionRecommendationsResponse
-
Method Summary
Modifier and TypeMethodDescriptionactionList
(Collection<PredictedAction> actionList) A list of action recommendations sorted in descending order by prediction score.actionList
(Consumer<PredictedAction.Builder>... actionList) A list of action recommendations sorted in descending order by prediction score.actionList
(PredictedAction... actionList) A list of action 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
-
actionList
A list of action recommendations sorted in descending order by prediction score. There can be a maximum of 100 actions in the list. For information about action scores, see How action recommendation scoring works.
- Parameters:
actionList
- A list of action recommendations sorted in descending order by prediction score. There can be a maximum of 100 actions in the list. For information about action scores, see How action recommendation scoring works.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionList
A list of action recommendations sorted in descending order by prediction score. There can be a maximum of 100 actions in the list. For information about action scores, see How action recommendation scoring works.
- Parameters:
actionList
- A list of action recommendations sorted in descending order by prediction score. There can be a maximum of 100 actions in the list. For information about action scores, see How action recommendation scoring works.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionList
GetActionRecommendationsResponse.Builder actionList(Consumer<PredictedAction.Builder>... actionList) A list of action recommendations sorted in descending order by prediction score. There can be a maximum of 100 actions in the list. For information about action scores, see How action recommendation scoring works.
This is a convenience method that creates an instance of thePredictedAction.Builder
avoiding the need to create one manually viaPredictedAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactionList(List<PredictedAction>)
.- Parameters:
actionList
- a consumer that will call methods onPredictedAction.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.
-