#[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 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 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 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 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<TrialComponentMetricSummaryBuilder> for TrialComponentMetricSummaryBuilder
impl PartialEq<TrialComponentMetricSummaryBuilder> 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 ==
.