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. For information about enabling metadata for a campaign, see Enabling metadata in recommendations for a campaign.
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. For information about enabling metadata for a campaign, see Enabling metadata in recommendations for a campaign.
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. For information about enabling metadata for a campaign, see Enabling metadata in recommendations for a campaign.
If you enable metadata in recommendations, you will incur additional costs. For more information, see Amazon Personalize pricing.
sourcepub fn sync_with_latest_solution_version(self, input: bool) -> Self
pub fn sync_with_latest_solution_version(self, input: bool) -> Self
Whether the campaign automatically updates to use the latest solution version (trained model) of a solution. If you specify True, you must specify the ARN of your solution for the SolutionVersionArn parameter. It must be in SolutionArn/$LATEST format. The default is False and you must manually update the campaign to deploy the latest solution version.
For more information about automatic campaign updates, see Enabling automatic campaign updates.
sourcepub fn set_sync_with_latest_solution_version(self, input: Option<bool>) -> Self
pub fn set_sync_with_latest_solution_version(self, input: Option<bool>) -> Self
Whether the campaign automatically updates to use the latest solution version (trained model) of a solution. If you specify True, you must specify the ARN of your solution for the SolutionVersionArn parameter. It must be in SolutionArn/$LATEST format. The default is False and you must manually update the campaign to deploy the latest solution version.
For more information about automatic campaign updates, see Enabling automatic campaign updates.
sourcepub fn get_sync_with_latest_solution_version(&self) -> &Option<bool>
pub fn get_sync_with_latest_solution_version(&self) -> &Option<bool>
Whether the campaign automatically updates to use the latest solution version (trained model) of a solution. If you specify True, you must specify the ARN of your solution for the SolutionVersionArn parameter. It must be in SolutionArn/$LATEST format. The default is False and you must manually update the campaign to deploy the latest solution version.
For more information about automatic campaign updates, see Enabling automatic campaign updates.
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 ==.impl StructuralPartialEq for CampaignConfigBuilder
Auto Trait Implementations§
impl Freeze for CampaignConfigBuilder
impl RefUnwindSafe for CampaignConfigBuilder
impl Send for CampaignConfigBuilder
impl Sync for CampaignConfigBuilder
impl Unpin for CampaignConfigBuilder
impl UnwindSafe for CampaignConfigBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more