#[non_exhaustive]pub struct OptimizationObjectiveBuilder { /* private fields */ }
Expand description
A builder for OptimizationObjective
.
Implementations§
source§impl OptimizationObjectiveBuilder
impl OptimizationObjectiveBuilder
sourcepub fn item_attribute(self, input: impl Into<String>) -> Self
pub fn item_attribute(self, input: impl Into<String>) -> Self
The numerical metadata column in an Items dataset related to the optimization objective. For example, VIDEO_LENGTH (to maximize streaming minutes), or PRICE (to maximize revenue).
sourcepub fn set_item_attribute(self, input: Option<String>) -> Self
pub fn set_item_attribute(self, input: Option<String>) -> Self
The numerical metadata column in an Items dataset related to the optimization objective. For example, VIDEO_LENGTH (to maximize streaming minutes), or PRICE (to maximize revenue).
sourcepub fn get_item_attribute(&self) -> &Option<String>
pub fn get_item_attribute(&self) -> &Option<String>
The numerical metadata column in an Items dataset related to the optimization objective. For example, VIDEO_LENGTH (to maximize streaming minutes), or PRICE (to maximize revenue).
sourcepub fn objective_sensitivity(self, input: ObjectiveSensitivity) -> Self
pub fn objective_sensitivity(self, input: ObjectiveSensitivity) -> Self
Specifies how Amazon Personalize balances the importance of your optimization objective versus relevance.
sourcepub fn set_objective_sensitivity(
self,
input: Option<ObjectiveSensitivity>
) -> Self
pub fn set_objective_sensitivity( self, input: Option<ObjectiveSensitivity> ) -> Self
Specifies how Amazon Personalize balances the importance of your optimization objective versus relevance.
sourcepub fn get_objective_sensitivity(&self) -> &Option<ObjectiveSensitivity>
pub fn get_objective_sensitivity(&self) -> &Option<ObjectiveSensitivity>
Specifies how Amazon Personalize balances the importance of your optimization objective versus relevance.
sourcepub fn build(self) -> OptimizationObjective
pub fn build(self) -> OptimizationObjective
Consumes the builder and constructs a OptimizationObjective
.
Trait Implementations§
source§impl Clone for OptimizationObjectiveBuilder
impl Clone for OptimizationObjectiveBuilder
source§fn clone(&self) -> OptimizationObjectiveBuilder
fn clone(&self) -> OptimizationObjectiveBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OptimizationObjectiveBuilder
impl Debug for OptimizationObjectiveBuilder
source§impl Default for OptimizationObjectiveBuilder
impl Default for OptimizationObjectiveBuilder
source§fn default() -> OptimizationObjectiveBuilder
fn default() -> OptimizationObjectiveBuilder
source§impl PartialEq for OptimizationObjectiveBuilder
impl PartialEq for OptimizationObjectiveBuilder
source§fn eq(&self, other: &OptimizationObjectiveBuilder) -> bool
fn eq(&self, other: &OptimizationObjectiveBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.