Struct aws_sdk_personalize::types::builders::CampaignConfigBuilder
source · #[non_exhaustive]pub struct CampaignConfigBuilder { /* private fields */ }Expand description
A builder for CampaignConfig.
Implementations§
source§impl CampaignConfigBuilder
impl CampaignConfigBuilder
sourcepub fn item_exploration_config(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn item_exploration_config( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to item_exploration_config.
To override the contents of this collection use set_item_exploration_config.
Specifies the exploration configuration hyperparameters, including explorationWeight and explorationItemAgeCutOff, you want to use to configure the amount of item exploration Amazon Personalize uses when recommending items. Provide itemExplorationConfig data only if your solution uses the User-Personalization recipe.
sourcepub fn set_item_exploration_config(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_item_exploration_config( self, input: Option<HashMap<String, String>> ) -> Self
Specifies the exploration configuration hyperparameters, including explorationWeight and explorationItemAgeCutOff, you want to use to configure the amount of item exploration Amazon Personalize uses when recommending items. Provide itemExplorationConfig data only if your solution uses the User-Personalization recipe.
sourcepub fn get_item_exploration_config(&self) -> &Option<HashMap<String, String>>
pub fn get_item_exploration_config(&self) -> &Option<HashMap<String, String>>
Specifies the exploration configuration hyperparameters, including explorationWeight and explorationItemAgeCutOff, you want to use to configure the amount of item exploration Amazon Personalize uses when recommending items. Provide itemExplorationConfig data only if your solution uses the User-Personalization recipe.
sourcepub fn enable_metadata_with_recommendations(self, input: bool) -> Self
pub fn enable_metadata_with_recommendations(self, input: bool) -> Self
Whether metadata with recommendations is enabled for the campaign. If enabled, you can specify the columns from your Items dataset in your request for recommendations. Amazon Personalize returns this data for each item in the recommendation response.
If you enable metadata in recommendations, you will incur additional costs. For more information, see Amazon Personalize pricing.
sourcepub fn set_enable_metadata_with_recommendations(
self,
input: Option<bool>
) -> Self
pub fn set_enable_metadata_with_recommendations( self, input: Option<bool> ) -> Self
Whether metadata with recommendations is enabled for the campaign. If enabled, you can specify the columns from your Items dataset in your request for recommendations. Amazon Personalize returns this data for each item in the recommendation response.
If you enable metadata in recommendations, you will incur additional costs. For more information, see Amazon Personalize pricing.
sourcepub fn get_enable_metadata_with_recommendations(&self) -> &Option<bool>
pub fn get_enable_metadata_with_recommendations(&self) -> &Option<bool>
Whether metadata with recommendations is enabled for the campaign. If enabled, you can specify the columns from your Items dataset in your request for recommendations. Amazon Personalize returns this data for each item in the recommendation response.
If you enable metadata in recommendations, you will incur additional costs. For more information, see Amazon Personalize pricing.
sourcepub fn build(self) -> CampaignConfig
pub fn build(self) -> CampaignConfig
Consumes the builder and constructs a CampaignConfig.
Trait Implementations§
source§impl Clone for CampaignConfigBuilder
impl Clone for CampaignConfigBuilder
source§fn clone(&self) -> CampaignConfigBuilder
fn clone(&self) -> CampaignConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CampaignConfigBuilder
impl Debug for CampaignConfigBuilder
source§impl Default for CampaignConfigBuilder
impl Default for CampaignConfigBuilder
source§fn default() -> CampaignConfigBuilder
fn default() -> CampaignConfigBuilder
source§impl PartialEq for CampaignConfigBuilder
impl PartialEq for CampaignConfigBuilder
source§fn eq(&self, other: &CampaignConfigBuilder) -> bool
fn eq(&self, other: &CampaignConfigBuilder) -> bool
self and other values to be equal, and is used
by ==.