#[non_exhaustive]pub struct TrialComponentMetricSummaryBuilder { /* private fields */ }
Expand description
A builder for TrialComponentMetricSummary
.
Implementations§
source§impl TrialComponentMetricSummaryBuilder
impl TrialComponentMetricSummaryBuilder
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 source_arn(self, input: impl Into<String>) -> Self
pub fn source_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the source.
sourcepub fn set_source_arn(self, input: Option<String>) -> Self
pub fn set_source_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the source.
sourcepub fn get_source_arn(&self) -> &Option<String>
pub fn get_source_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the source.
sourcepub fn time_stamp(self, input: DateTime) -> Self
pub fn time_stamp(self, input: DateTime) -> Self
When the metric was last updated.
sourcepub fn set_time_stamp(self, input: Option<DateTime>) -> Self
pub fn set_time_stamp(self, input: Option<DateTime>) -> Self
When the metric was last updated.
sourcepub fn get_time_stamp(&self) -> &Option<DateTime>
pub fn get_time_stamp(&self) -> &Option<DateTime>
When the metric was last updated.
sourcepub fn set_count(self, input: Option<i32>) -> Self
pub fn set_count(self, input: Option<i32>) -> Self
The number of samples used to generate the metric.
sourcepub fn set_std_dev(self, input: Option<f64>) -> Self
pub fn set_std_dev(self, input: Option<f64>) -> Self
The standard deviation of the metric.
sourcepub fn get_std_dev(&self) -> &Option<f64>
pub fn get_std_dev(&self) -> &Option<f64>
The standard deviation of the metric.
sourcepub fn build(self) -> TrialComponentMetricSummary
pub fn build(self) -> TrialComponentMetricSummary
Consumes the builder and constructs a TrialComponentMetricSummary
.
Trait Implementations§
source§impl Clone for TrialComponentMetricSummaryBuilder
impl Clone for TrialComponentMetricSummaryBuilder
source§fn clone(&self) -> TrialComponentMetricSummaryBuilder
fn clone(&self) -> TrialComponentMetricSummaryBuilder
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 Default for TrialComponentMetricSummaryBuilder
impl Default for TrialComponentMetricSummaryBuilder
source§fn default() -> TrialComponentMetricSummaryBuilder
fn default() -> TrialComponentMetricSummaryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TrialComponentMetricSummaryBuilder
impl PartialEq for TrialComponentMetricSummaryBuilder
source§fn eq(&self, other: &TrialComponentMetricSummaryBuilder) -> bool
fn eq(&self, other: &TrialComponentMetricSummaryBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TrialComponentMetricSummaryBuilder
Auto Trait Implementations§
impl RefUnwindSafe for TrialComponentMetricSummaryBuilder
impl Send for TrialComponentMetricSummaryBuilder
impl Sync for TrialComponentMetricSummaryBuilder
impl Unpin for TrialComponentMetricSummaryBuilder
impl UnwindSafe for TrialComponentMetricSummaryBuilder
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.