@Generated(value="software.amazon.awssdk:codegen") public interface PersonalizeRuntimeAsyncClient extends SdkClient
builder() method.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
serviceNameclosestatic final String SERVICE_NAME
static PersonalizeRuntimeAsyncClient create()
PersonalizeRuntimeAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static PersonalizeRuntimeAsyncClientBuilder builder()
PersonalizeRuntimeAsyncClient.default CompletableFuture<GetPersonalizedRankingResponse> getPersonalizedRanking(GetPersonalizedRankingRequest getPersonalizedRankingRequest)
Re-ranks a list of recommended items for the given user. The first item in the list is deemed the most likely item to be of interest to the user.
The solution backing the campaign must have been created using a recipe of type PERSONALIZED_RANKING.
getPersonalizedRankingRequest - default CompletableFuture<GetPersonalizedRankingResponse> getPersonalizedRanking(Consumer<GetPersonalizedRankingRequest.Builder> getPersonalizedRankingRequest)
Re-ranks a list of recommended items for the given user. The first item in the list is deemed the most likely item to be of interest to the user.
The solution backing the campaign must have been created using a recipe of type PERSONALIZED_RANKING.
This is a convenience which creates an instance of the GetPersonalizedRankingRequest.Builder avoiding the
need to create one manually via GetPersonalizedRankingRequest.builder()
getPersonalizedRankingRequest - A Consumer that will call methods on GetPersonalizedRankingRequest.Builder to create a
request.default CompletableFuture<GetRecommendationsResponse> getRecommendations(GetRecommendationsRequest getRecommendationsRequest)
Returns a list of recommended items. The required input depends on the recipe type used to create the solution backing the campaign, as follows:
RELATED_ITEMS - itemId required, userId not used
USER_PERSONALIZATION - itemId optional, userId required
Campaigns that are backed by a solution created using a recipe of type PERSONALIZED_RANKING use the API.
getRecommendationsRequest - default CompletableFuture<GetRecommendationsResponse> getRecommendations(Consumer<GetRecommendationsRequest.Builder> getRecommendationsRequest)
Returns a list of recommended items. The required input depends on the recipe type used to create the solution backing the campaign, as follows:
RELATED_ITEMS - itemId required, userId not used
USER_PERSONALIZATION - itemId optional, userId required
Campaigns that are backed by a solution created using a recipe of type PERSONALIZED_RANKING use the API.
This is a convenience which creates an instance of the GetRecommendationsRequest.Builder avoiding the
need to create one manually via GetRecommendationsRequest.builder()
getRecommendationsRequest - A Consumer that will call methods on GetRecommendationsRequest.Builder to create a
request.Copyright © 2019. All rights reserved.