Interface Recommender.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Recommender.Builder,,Recommender> SdkBuilder<Recommender.Builder,,Recommender> SdkPojo
- Enclosing class:
Recommender
-
Method Summary
Modifier and TypeMethodDescriptionfilters(Collection<RecommenderFilter> filters) A list of filters to apply to the returned recommendations.filters(Consumer<RecommenderFilter.Builder>... filters) A list of filters to apply to the returned recommendations.filters(RecommenderFilter... filters) A list of filters to apply to the returned recommendations.The unique name of the recommender.promotionalFilters(Collection<RecommenderPromotionalFilter> promotionalFilters) A list of promotional filters to apply to the recommendations.promotionalFilters(Consumer<RecommenderPromotionalFilter.Builder>... promotionalFilters) A list of promotional filters to apply to the recommendations.promotionalFilters(RecommenderPromotionalFilter... promotionalFilters) A list of promotional filters to apply to the recommendations.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The unique name of the recommender.
- Parameters:
name- The unique name of the recommender.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
A list of filters to apply to the returned recommendations. Filters define criteria for including or excluding items from the recommendation results.
- Parameters:
filters- 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.
-
filters
A list of filters to apply to the returned recommendations. Filters define criteria for including or excluding items from the recommendation results.
- Parameters:
filters- 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.
-
filters
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 tofilters(List<RecommenderFilter>).- Parameters:
filters- 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:
-
promotionalFilters
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:
promotionalFilters- 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.
-
promotionalFilters
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:
promotionalFilters- 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.
-
promotionalFilters
Recommender.Builder promotionalFilters(Consumer<RecommenderPromotionalFilter.Builder>... promotionalFilters) 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 topromotionalFilters(List<RecommenderPromotionalFilter>).- Parameters:
promotionalFilters- 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:
-