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
impl StructuralPartialEq for MetricDefinitionBuilder
Auto Trait Implementations§
impl Freeze for MetricDefinitionBuilder
impl RefUnwindSafe for MetricDefinitionBuilder
impl Send for MetricDefinitionBuilder
impl Sync for MetricDefinitionBuilder
impl Unpin for MetricDefinitionBuilder
impl UnwindSafe for MetricDefinitionBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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