Interface GetActionRecommendationsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetActionRecommendationsResponse.Builder,GetActionRecommendationsResponse>,PersonalizeRuntimeResponse.Builder,SdkBuilder<GetActionRecommendationsResponse.Builder,GetActionRecommendationsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetActionRecommendationsResponse
public static interface GetActionRecommendationsResponse.Builder extends PersonalizeRuntimeResponse.Builder, SdkPojo, CopyableBuilder<GetActionRecommendationsResponse.Builder,GetActionRecommendationsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetActionRecommendationsResponse.BuilderactionList(Collection<PredictedAction> actionList)A list of action recommendations sorted in descending order by prediction score.GetActionRecommendationsResponse.BuilderactionList(Consumer<PredictedAction.Builder>... actionList)A list of action recommendations sorted in descending order by prediction score.GetActionRecommendationsResponse.BuilderactionList(PredictedAction... actionList)A list of action recommendations sorted in descending order by prediction score.GetActionRecommendationsResponse.BuilderrecommendationId(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 Detail
-
actionList
GetActionRecommendationsResponse.Builder actionList(Collection<PredictedAction> 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(PredictedAction... 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.Builderavoiding the need to create one manually viaPredictedAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#actionList(List.) - 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:
#actionList(java.util.Collection)
-
recommendationId
GetActionRecommendationsResponse.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.
-
-