Struct aws_sdk_personalize::types::builders::HpoObjectiveBuilder
source · #[non_exhaustive]pub struct HpoObjectiveBuilder { /* private fields */ }
Expand description
A builder for HpoObjective
.
Implementations§
source§impl HpoObjectiveBuilder
impl HpoObjectiveBuilder
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The type of the metric. Valid values are Maximize
and Minimize
.
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The type of the metric. Valid values are Maximize
and Minimize
.
sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
The type of the metric. Valid values are Maximize
and Minimize
.
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
The name of the metric.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
The name of the metric.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
The name of the metric.
sourcepub fn metric_regex(self, input: impl Into<String>) -> Self
pub fn metric_regex(self, input: impl Into<String>) -> Self
A regular expression for finding the metric in the training job logs.
sourcepub fn set_metric_regex(self, input: Option<String>) -> Self
pub fn set_metric_regex(self, input: Option<String>) -> Self
A regular expression for finding the metric in the training job logs.
sourcepub fn get_metric_regex(&self) -> &Option<String>
pub fn get_metric_regex(&self) -> &Option<String>
A regular expression for finding the metric in the training job logs.
sourcepub fn build(self) -> HpoObjective
pub fn build(self) -> HpoObjective
Consumes the builder and constructs a HpoObjective
.
Trait Implementations§
source§impl Clone for HpoObjectiveBuilder
impl Clone for HpoObjectiveBuilder
source§fn clone(&self) -> HpoObjectiveBuilder
fn clone(&self) -> HpoObjectiveBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HpoObjectiveBuilder
impl Debug for HpoObjectiveBuilder
source§impl Default for HpoObjectiveBuilder
impl Default for HpoObjectiveBuilder
source§fn default() -> HpoObjectiveBuilder
fn default() -> HpoObjectiveBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for HpoObjectiveBuilder
impl PartialEq for HpoObjectiveBuilder
source§fn eq(&self, other: &HpoObjectiveBuilder) -> bool
fn eq(&self, other: &HpoObjectiveBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HpoObjectiveBuilder
Auto Trait Implementations§
impl RefUnwindSafe for HpoObjectiveBuilder
impl Send for HpoObjectiveBuilder
impl Sync for HpoObjectiveBuilder
impl Unpin for HpoObjectiveBuilder
impl UnwindSafe for HpoObjectiveBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.