Struct aws_sdk_sagemaker::types::builders::MetricDefinitionBuilder
source · #[non_exhaustive]pub struct MetricDefinitionBuilder { /* private fields */ }
Expand description
A builder for MetricDefinition
.
Implementations§
source§impl MetricDefinitionBuilder
impl MetricDefinitionBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the metric.
This field is required.sourcepub fn regex(self, input: impl Into<String>) -> Self
pub fn regex(self, input: impl Into<String>) -> Self
A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining metrics and environment variables.
This field is required.sourcepub fn set_regex(self, input: Option<String>) -> Self
pub fn set_regex(self, input: Option<String>) -> Self
A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining metrics and environment variables.
sourcepub fn get_regex(&self) -> &Option<String>
pub fn get_regex(&self) -> &Option<String>
A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining metrics and environment variables.
sourcepub fn build(self) -> MetricDefinition
pub fn build(self) -> MetricDefinition
Consumes the builder and constructs a MetricDefinition
.
Trait Implementations§
source§impl Clone for MetricDefinitionBuilder
impl Clone for MetricDefinitionBuilder
source§fn clone(&self) -> MetricDefinitionBuilder
fn clone(&self) -> MetricDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricDefinitionBuilder
impl Debug for MetricDefinitionBuilder
source§impl Default for MetricDefinitionBuilder
impl Default for MetricDefinitionBuilder
source§fn default() -> MetricDefinitionBuilder
fn default() -> MetricDefinitionBuilder
source§impl PartialEq for MetricDefinitionBuilder
impl PartialEq for MetricDefinitionBuilder
source§fn eq(&self, other: &MetricDefinitionBuilder) -> bool
fn eq(&self, other: &MetricDefinitionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.