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