#[non_exhaustive]pub struct TargetTrackingMetricBuilder { /* private fields */ }
Expand description
A builder for TargetTrackingMetric
.
Implementations§
source§impl TargetTrackingMetricBuilder
impl TargetTrackingMetricBuilder
sourcepub fn dimensions(self, input: TargetTrackingMetricDimension) -> Self
pub fn dimensions(self, input: TargetTrackingMetricDimension) -> Self
Appends an item to dimensions
.
To override the contents of this collection use set_dimensions
.
The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
sourcepub fn set_dimensions(
self,
input: Option<Vec<TargetTrackingMetricDimension>>
) -> Self
pub fn set_dimensions( self, input: Option<Vec<TargetTrackingMetricDimension>> ) -> Self
The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
sourcepub fn get_dimensions(&self) -> &Option<Vec<TargetTrackingMetricDimension>>
pub fn get_dimensions(&self) -> &Option<Vec<TargetTrackingMetricDimension>>
The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
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 namespace(self, input: impl Into<String>) -> Self
pub fn namespace(self, input: impl Into<String>) -> Self
The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
sourcepub fn set_namespace(self, input: Option<String>) -> Self
pub fn set_namespace(self, input: Option<String>) -> Self
The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
sourcepub fn get_namespace(&self) -> &Option<String>
pub fn get_namespace(&self) -> &Option<String>
The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
sourcepub fn build(self) -> TargetTrackingMetric
pub fn build(self) -> TargetTrackingMetric
Consumes the builder and constructs a TargetTrackingMetric
.
Trait Implementations§
source§impl Clone for TargetTrackingMetricBuilder
impl Clone for TargetTrackingMetricBuilder
source§fn clone(&self) -> TargetTrackingMetricBuilder
fn clone(&self) -> TargetTrackingMetricBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TargetTrackingMetricBuilder
impl Debug for TargetTrackingMetricBuilder
source§impl Default for TargetTrackingMetricBuilder
impl Default for TargetTrackingMetricBuilder
source§fn default() -> TargetTrackingMetricBuilder
fn default() -> TargetTrackingMetricBuilder
source§impl PartialEq for TargetTrackingMetricBuilder
impl PartialEq for TargetTrackingMetricBuilder
source§fn eq(&self, other: &TargetTrackingMetricBuilder) -> bool
fn eq(&self, other: &TargetTrackingMetricBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetTrackingMetricBuilder
Auto Trait Implementations§
impl Freeze for TargetTrackingMetricBuilder
impl RefUnwindSafe for TargetTrackingMetricBuilder
impl Send for TargetTrackingMetricBuilder
impl Sync for TargetTrackingMetricBuilder
impl Unpin for TargetTrackingMetricBuilder
impl UnwindSafe for TargetTrackingMetricBuilder
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