Interface GetProfileRecommendationsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetProfileRecommendationsRequest.Builder,,GetProfileRecommendationsRequest> CustomerProfilesRequest.Builder,SdkBuilder<GetProfileRecommendationsRequest.Builder,,GetProfileRecommendationsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
GetProfileRecommendationsRequest
-
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.diversityConfig(Consumer<RecommendationDiversityConfig.Builder> diversityConfig) Runtime diversity configuration for this request.diversityConfig(RecommendationDiversityConfig diversityConfig) Runtime diversity configuration for this request.domainName(String domainName) The unique name of the domain.maxResults(Integer maxResults) The maximum number of recommendations to return.metadataConfig(Consumer<MetadataConfig.Builder> metadataConfig) Configuration for including item metadata in the recommendation response.metadataConfig(MetadataConfig metadataConfig) Configuration for including item metadata in the recommendation response.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The unique identifier of the profile for which to retrieve recommendations.recommenderFilters(Collection<RecommenderFilter> recommenderFilters) A list of filters to apply to the returned recommendations.recommenderFilters(Consumer<RecommenderFilter.Builder>... recommenderFilters) A list of filters to apply to the returned recommendations.recommenderFilters(RecommenderFilter... recommenderFilters) A list of filters to apply to the returned recommendations.recommenderName(String recommenderName) The unique name of the recommender.recommenderPromotionalFilters(Collection<RecommenderPromotionalFilter> recommenderPromotionalFilters) A list of promotional filters to apply to the recommendations.recommenderPromotionalFilters(Consumer<RecommenderPromotionalFilter.Builder>... recommenderPromotionalFilters) A list of promotional filters to apply to the recommendations.recommenderPromotionalFilters(RecommenderPromotionalFilter... recommenderPromotionalFilters) A list of promotional filters to apply to 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.
-
profileId
The unique identifier of the profile for which to retrieve recommendations.
- Parameters:
profileId- The unique identifier of the profile for which to retrieve recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommenderName
The unique name of the recommender.
- Parameters:
recommenderName- The unique name of the recommender.- 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.
-
recommenderFilters
GetProfileRecommendationsRequest.Builder recommenderFilters(Collection<RecommenderFilter> recommenderFilters) A list of filters to apply to the returned recommendations. Filters define criteria for including or excluding items from the recommendation results.
- Parameters:
recommenderFilters- A list of filters to apply to the returned recommendations. Filters define criteria for including or excluding items from the recommendation results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommenderFilters
GetProfileRecommendationsRequest.Builder recommenderFilters(RecommenderFilter... recommenderFilters) A list of filters to apply to the returned recommendations. Filters define criteria for including or excluding items from the recommendation results.
- Parameters:
recommenderFilters- A list of filters to apply to the returned recommendations. Filters define criteria for including or excluding items from the recommendation results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommenderFilters
GetProfileRecommendationsRequest.Builder recommenderFilters(Consumer<RecommenderFilter.Builder>... recommenderFilters) A list of filters to apply to the returned recommendations. Filters define criteria for including or excluding items from the recommendation results.
This is a convenience method that creates an instance of theRecommenderFilter.Builderavoiding the need to create one manually viaRecommenderFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecommenderFilters(List<RecommenderFilter>).- Parameters:
recommenderFilters- a consumer that will call methods onRecommenderFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recommenderPromotionalFilters
GetProfileRecommendationsRequest.Builder recommenderPromotionalFilters(Collection<RecommenderPromotionalFilter> recommenderPromotionalFilters) A list of promotional filters to apply to the recommendations. Promotional filters allow you to promote specific items within a configurable subset of recommendation results.
- Parameters:
recommenderPromotionalFilters- A list of promotional filters to apply to the recommendations. Promotional filters allow you to promote specific items within a configurable subset of recommendation results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommenderPromotionalFilters
GetProfileRecommendationsRequest.Builder recommenderPromotionalFilters(RecommenderPromotionalFilter... recommenderPromotionalFilters) A list of promotional filters to apply to the recommendations. Promotional filters allow you to promote specific items within a configurable subset of recommendation results.
- Parameters:
recommenderPromotionalFilters- A list of promotional filters to apply to the recommendations. Promotional filters allow you to promote specific items within a configurable subset of recommendation results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommenderPromotionalFilters
GetProfileRecommendationsRequest.Builder recommenderPromotionalFilters(Consumer<RecommenderPromotionalFilter.Builder>... recommenderPromotionalFilters) A list of promotional filters to apply to the recommendations. Promotional filters allow you to promote specific items within a configurable subset of recommendation results.
This is a convenience method that creates an instance of theRecommenderPromotionalFilter.Builderavoiding the need to create one manually viaRecommenderPromotionalFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecommenderPromotionalFilters(List<RecommenderPromotionalFilter>).- Parameters:
recommenderPromotionalFilters- a consumer that will call methods onRecommenderPromotionalFilter.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.
-
maxResults
The maximum number of recommendations to return. The default value is 10.
- Parameters:
maxResults- The maximum number of recommendations to return. The default value is 10.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataConfig
Configuration for including item metadata in the recommendation response. Use this to specify which metadata columns to return alongside recommended items.
- Parameters:
metadataConfig- Configuration for including item metadata in the recommendation response. Use this to specify which metadata columns to return alongside recommended items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataConfig
default GetProfileRecommendationsRequest.Builder metadataConfig(Consumer<MetadataConfig.Builder> metadataConfig) Configuration for including item metadata in the recommendation response. Use this to specify which metadata columns to return alongside recommended items.
This is a convenience method that creates an instance of theMetadataConfig.Builderavoiding the need to create one manually viaMetadataConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometadataConfig(MetadataConfig).- Parameters:
metadataConfig- a consumer that will call methods onMetadataConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
diversityConfig
GetProfileRecommendationsRequest.Builder diversityConfig(RecommendationDiversityConfig diversityConfig) Runtime diversity configuration for this request. Enables diversity-aware recommendations and optionally supplies values for placeholder-based diversity caps configured on the recommender.
- Parameters:
diversityConfig- 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.
-
diversityConfig
default GetProfileRecommendationsRequest.Builder diversityConfig(Consumer<RecommendationDiversityConfig.Builder> diversityConfig) 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 todiversityConfig(RecommendationDiversityConfig).- Parameters:
diversityConfig- 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:
-
overrideConfiguration
GetProfileRecommendationsRequest.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
GetProfileRecommendationsRequest.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.
-