Struct aws_sdk_personalize::model::optimization_objective::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for OptimizationObjective
.
Implementations§
source§impl Builder
impl Builder
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 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 build(self) -> OptimizationObjective
pub fn build(self) -> OptimizationObjective
Consumes the builder and constructs a OptimizationObjective
.