#[non_exhaustive]pub struct TargetTrackingMetricStatBuilder { /* private fields */ }
Expand description
A builder for TargetTrackingMetricStat
.
Implementations§
source§impl TargetTrackingMetricStatBuilder
impl TargetTrackingMetricStatBuilder
sourcepub fn metric(self, input: TargetTrackingMetric) -> Self
pub fn metric(self, input: TargetTrackingMetric) -> Self
The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.
This field is required.sourcepub fn set_metric(self, input: Option<TargetTrackingMetric>) -> Self
pub fn set_metric(self, input: Option<TargetTrackingMetric>) -> Self
The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.
sourcepub fn get_metric(&self) -> &Option<TargetTrackingMetric>
pub fn get_metric(&self) -> &Option<TargetTrackingMetric>
The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.
sourcepub fn stat(self, input: impl Into<String>) -> Self
pub fn stat(self, input: impl Into<String>) -> Self
The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide.
The most commonly used metric for scaling is Average
.
sourcepub fn set_stat(self, input: Option<String>) -> Self
pub fn set_stat(self, input: Option<String>) -> Self
The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide.
The most commonly used metric for scaling is Average
.
sourcepub fn get_stat(&self) -> &Option<String>
pub fn get_stat(&self) -> &Option<String>
The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide.
The most commonly used metric for scaling is Average
.
sourcepub fn unit(self, input: impl Into<String>) -> Self
pub fn unit(self, input: impl Into<String>) -> Self
The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.
sourcepub fn set_unit(self, input: Option<String>) -> Self
pub fn set_unit(self, input: Option<String>) -> Self
The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.
sourcepub fn get_unit(&self) -> &Option<String>
pub fn get_unit(&self) -> &Option<String>
The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.
sourcepub fn build(self) -> Result<TargetTrackingMetricStat, BuildError>
pub fn build(self) -> Result<TargetTrackingMetricStat, BuildError>
Consumes the builder and constructs a TargetTrackingMetricStat
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TargetTrackingMetricStatBuilder
impl Clone for TargetTrackingMetricStatBuilder
source§fn clone(&self) -> TargetTrackingMetricStatBuilder
fn clone(&self) -> TargetTrackingMetricStatBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TargetTrackingMetricStatBuilder
impl Default for TargetTrackingMetricStatBuilder
source§fn default() -> TargetTrackingMetricStatBuilder
fn default() -> TargetTrackingMetricStatBuilder
source§impl PartialEq for TargetTrackingMetricStatBuilder
impl PartialEq for TargetTrackingMetricStatBuilder
source§fn eq(&self, other: &TargetTrackingMetricStatBuilder) -> bool
fn eq(&self, other: &TargetTrackingMetricStatBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetTrackingMetricStatBuilder
Auto Trait Implementations§
impl Freeze for TargetTrackingMetricStatBuilder
impl RefUnwindSafe for TargetTrackingMetricStatBuilder
impl Send for TargetTrackingMetricStatBuilder
impl Sync for TargetTrackingMetricStatBuilder
impl Unpin for TargetTrackingMetricStatBuilder
impl UnwindSafe for TargetTrackingMetricStatBuilder
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> 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