#[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 ==.impl StructuralPartialEq for OptimizationObjectiveBuilder
Auto Trait Implementations§
impl Freeze for OptimizationObjectiveBuilder
impl RefUnwindSafe for OptimizationObjectiveBuilder
impl Send for OptimizationObjectiveBuilder
impl Sync for OptimizationObjectiveBuilder
impl Unpin for OptimizationObjectiveBuilder
impl UnwindSafe for OptimizationObjectiveBuilder
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