Struct aws_sdk_forecast::types::builders::MetricResultBuilder
source · #[non_exhaustive]pub struct MetricResultBuilder { /* private fields */ }
Expand description
A builder for MetricResult
.
Implementations§
source§impl MetricResultBuilder
impl MetricResultBuilder
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_value(self, input: f64) -> Self
pub fn metric_value(self, input: f64) -> Self
The value for the metric.
sourcepub fn set_metric_value(self, input: Option<f64>) -> Self
pub fn set_metric_value(self, input: Option<f64>) -> Self
The value for the metric.
sourcepub fn get_metric_value(&self) -> &Option<f64>
pub fn get_metric_value(&self) -> &Option<f64>
The value for the metric.
sourcepub fn build(self) -> MetricResult
pub fn build(self) -> MetricResult
Consumes the builder and constructs a MetricResult
.
Trait Implementations§
source§impl Clone for MetricResultBuilder
impl Clone for MetricResultBuilder
source§fn clone(&self) -> MetricResultBuilder
fn clone(&self) -> MetricResultBuilder
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 MetricResultBuilder
impl Debug for MetricResultBuilder
source§impl Default for MetricResultBuilder
impl Default for MetricResultBuilder
source§fn default() -> MetricResultBuilder
fn default() -> MetricResultBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for MetricResultBuilder
impl PartialEq for MetricResultBuilder
source§fn eq(&self, other: &MetricResultBuilder) -> bool
fn eq(&self, other: &MetricResultBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricResultBuilder
Auto Trait Implementations§
impl Freeze for MetricResultBuilder
impl RefUnwindSafe for MetricResultBuilder
impl Send for MetricResultBuilder
impl Sync for MetricResultBuilder
impl Unpin for MetricResultBuilder
impl UnwindSafe for MetricResultBuilder
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.