Interface GetProfileRecommendationsRequest.Builder

  • 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

      GetProfileRecommendationsRequest.Builder recommenderName(String 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

      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

      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 the RecommenderFilter.Builder avoiding the need to create one manually via RecommenderFilter.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to recommenderFilters(List<RecommenderFilter>).

      Parameters:
      recommenderFilters - a consumer that will call methods on RecommenderFilter.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 the RecommenderPromotionalFilter.Builder avoiding the need to create one manually via RecommenderPromotionalFilter.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to recommenderPromotionalFilters(List<RecommenderPromotionalFilter>).

      Parameters:
      recommenderPromotionalFilters - a consumer that will call methods on RecommenderPromotionalFilter.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

      GetProfileRecommendationsRequest.Builder candidateIds(String... 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

      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 the MetadataConfig.Builder avoiding the need to create one manually via MetadataConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metadataConfig(MetadataConfig).

      Parameters:
      metadataConfig - a consumer that will call methods on MetadataConfig.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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.