Interface SearchRecommendationsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SearchRecommendationsRequest.Builder,,SearchRecommendationsRequest> CustomerProfilesRequest.Builder,SdkBuilder<SearchRecommendationsRequest.Builder,,SearchRecommendationsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
SearchRecommendationsRequest
-
Method Summary
Modifier and TypeMethodDescriptioncandidateIds(String... candidateIds) A list of item IDs to rank for the user.candidateIds(Collection<String> candidateIds) A list of item IDs to rank for the user.The contextual metadata used to provide dynamic runtime information to tailor recommendations.diversity(Consumer<RecommendationDiversityConfig.Builder> diversity) Runtime diversity configuration for this request.diversity(RecommendationDiversityConfig diversity) Runtime diversity configuration for this request.domainName(String domainName) The unique name of the domain.A searchable identifier of a customer profile.A list of key values.keyValues(Collection<String> keyValues) A list of key values.maxRecommendations(Integer maxRecommendations) The maximum number of recommendations to return.metadata(Consumer<RecommendationMetadata.Builder> metadata) Configuration for metadata to include in recommendation responses.metadata(RecommendationMetadata metadata) Configuration for metadata to include in recommendation responses.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.recommender(Consumer<Recommender.Builder> recommender) The recommender used to generate the recommendations.recommender(Recommender recommender) The recommender used to generate the recommendations.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.customerprofiles.model.CustomerProfilesRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
domainName
The unique name of the domain.
- Parameters:
domainName- The unique name of the domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyName
A searchable identifier of a customer profile. You can use a predefined key, such as
_profileId,_phone, or_email, or a custom-defined key.- Parameters:
keyName- A searchable identifier of a customer profile. You can use a predefined key, such as_profileId,_phone, or_email, or a custom-defined key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyValues
A list of key values. Provide one value for each field of the search key.
- Parameters:
keyValues- A list of key values. Provide one value for each field of the search key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyValues
A list of key values. Provide one value for each field of the search key.
- Parameters:
keyValues- A list of key values. Provide one value for each field of the search key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommender
The recommender used to generate the recommendations.
- Parameters:
recommender- The recommender used to generate the recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommender
The recommender used to generate the recommendations.
This is a convenience method that creates an instance of theRecommender.Builderavoiding the need to create one manually viaRecommender.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecommender(Recommender).- Parameters:
recommender- a consumer that will call methods onRecommender.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
candidateIds
A list of item IDs to rank for the user. Use this when you want to re-rank a specific set of items rather than getting recommendations from the full item catalog. Required for personalized-ranking use cases.
- Parameters:
candidateIds- A list of item IDs to rank for the user. Use this when you want to re-rank a specific set of items rather than getting recommendations from the full item catalog. Required for personalized-ranking use cases.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
candidateIds
A list of item IDs to rank for the user. Use this when you want to re-rank a specific set of items rather than getting recommendations from the full item catalog. Required for personalized-ranking use cases.
- Parameters:
candidateIds- A list of item IDs to rank for the user. Use this when you want to re-rank a specific set of items rather than getting recommendations from the full item catalog. Required for personalized-ranking use cases.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
context
The contextual metadata used to provide dynamic runtime information to tailor recommendations.
- Parameters:
context- The contextual metadata used to provide dynamic runtime information to tailor recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
diversity
Runtime diversity configuration for this request. Enables diversity-aware recommendations and optionally supplies values for placeholder-based diversity caps configured on the recommender.
- Parameters:
diversity- Runtime diversity configuration for this request. Enables diversity-aware recommendations and optionally supplies values for placeholder-based diversity caps configured on the recommender.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
diversity
default SearchRecommendationsRequest.Builder diversity(Consumer<RecommendationDiversityConfig.Builder> diversity) Runtime diversity configuration for this request. Enables diversity-aware recommendations and optionally supplies values for placeholder-based diversity caps configured on the recommender.
This is a convenience method that creates an instance of theRecommendationDiversityConfig.Builderavoiding the need to create one manually viaRecommendationDiversityConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todiversity(RecommendationDiversityConfig).- Parameters:
diversity- a consumer that will call methods onRecommendationDiversityConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
Configuration for metadata to include in recommendation responses.
- Parameters:
metadata- Configuration for metadata to include in recommendation responses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
default SearchRecommendationsRequest.Builder metadata(Consumer<RecommendationMetadata.Builder> metadata) Configuration for metadata to include in recommendation responses.
This is a convenience method that creates an instance of theRecommendationMetadata.Builderavoiding the need to create one manually viaRecommendationMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometadata(RecommendationMetadata).- Parameters:
metadata- a consumer that will call methods onRecommendationMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxRecommendations
The maximum number of recommendations to return. The default value is 5.
- Parameters:
maxRecommendations- The maximum number of recommendations to return. The default value is 5.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SearchRecommendationsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SearchRecommendationsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-