public static interface GetRecommendationsRequest.Builder extends PersonalizeRuntimeRequest.Builder, SdkPojo, CopyableBuilder<GetRecommendationsRequest.Builder,GetRecommendationsRequest>
| Modifier and Type | Method and Description |
|---|---|
GetRecommendationsRequest.Builder |
campaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.
|
GetRecommendationsRequest.Builder |
context(Map<String,String> context)
The contextual metadata to use when getting recommendations.
|
GetRecommendationsRequest.Builder |
filterArn(String filterArn)
The ARN of the filter to apply to the returned recommendations.
|
GetRecommendationsRequest.Builder |
filterValues(Map<String,String> filterValues)
The values to use when filtering recommendations.
|
GetRecommendationsRequest.Builder |
itemId(String itemId)
The item ID to provide recommendations for.
|
GetRecommendationsRequest.Builder |
numResults(Integer numResults)
The number of results to return.
|
GetRecommendationsRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
GetRecommendationsRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
GetRecommendationsRequest.Builder |
recommenderArn(String recommenderArn)
The Amazon Resource Name (ARN) of the recommender to use to get recommendations.
|
GetRecommendationsRequest.Builder |
userId(String userId)
The user ID to provide recommendations for.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildGetRecommendationsRequest.Builder campaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.
campaignArn - The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.GetRecommendationsRequest.Builder itemId(String itemId)
The item ID to provide recommendations for.
Required for RELATED_ITEMS recipe type.
itemId - The item ID to provide recommendations for.
Required for RELATED_ITEMS recipe type.
GetRecommendationsRequest.Builder userId(String userId)
The user ID to provide recommendations for.
Required for USER_PERSONALIZATION recipe type.
userId - The user ID to provide recommendations for.
Required for USER_PERSONALIZATION recipe type.
GetRecommendationsRequest.Builder numResults(Integer numResults)
The number of results to return. The default is 25. The maximum is 500.
numResults - The number of results to return. The default is 25. The maximum is 500.GetRecommendationsRequest.Builder context(Map<String,String> context)
The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction information that might be relevant when getting a user's recommendations, such as the user's current location or device type.
context - The contextual metadata to use when getting recommendations. Contextual metadata includes any
interaction information that might be relevant when getting a user's recommendations, such as the
user's current location or device type.GetRecommendationsRequest.Builder filterArn(String filterArn)
The ARN of the filter to apply to the returned recommendations. For more information, see Filtering Recommendations.
When using this parameter, be sure the filter resource is ACTIVE.
filterArn - The ARN of the filter to apply to the returned recommendations. For more information, see Filtering
Recommendations.
When using this parameter, be sure the filter resource is ACTIVE.
GetRecommendationsRequest.Builder filterValues(Map<String,String> filterValues)
The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma.
For filter expressions that use an INCLUDE element to include items, you must provide values for
all parameters that are defined in the expression. For filters with expressions that use an
EXCLUDE element to exclude items, you can omit the filter-values.In this case,
Amazon Personalize doesn't use that portion of the expression to filter recommendations.
For more information, see Filtering Recommendations.
filterValues - The values to use when filtering recommendations. For each placeholder parameter in your filter
expression, provide the parameter name (in matching case) as a key and the filter value(s) as the
corresponding value. Separate multiple values for one parameter with a comma.
For filter expressions that use an INCLUDE element to include items, you must provide
values for all parameters that are defined in the expression. For filters with expressions that use an
EXCLUDE element to exclude items, you can omit the filter-values.In this
case, Amazon Personalize doesn't use that portion of the expression to filter recommendations.
For more information, see Filtering Recommendations.
GetRecommendationsRequest.Builder recommenderArn(String recommenderArn)
The Amazon Resource Name (ARN) of the recommender to use to get recommendations. Provide a recommender ARN if you created a Domain dataset group with a recommender for a domain use case.
recommenderArn - The Amazon Resource Name (ARN) of the recommender to use to get recommendations. Provide a recommender
ARN if you created a Domain dataset group with a recommender for a domain use case.GetRecommendationsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderGetRecommendationsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2022. All rights reserved.