Struct aws_sdk_servicequotas::types::builders::MetricInfoBuilder
source · #[non_exhaustive]pub struct MetricInfoBuilder { /* private fields */ }
Expand description
A builder for MetricInfo
.
Implementations§
source§impl MetricInfoBuilder
impl MetricInfoBuilder
sourcepub fn metric_namespace(self, input: impl Into<String>) -> Self
pub fn metric_namespace(self, input: impl Into<String>) -> Self
The namespace of the metric.
sourcepub fn set_metric_namespace(self, input: Option<String>) -> Self
pub fn set_metric_namespace(self, input: Option<String>) -> Self
The namespace of the metric.
sourcepub fn get_metric_namespace(&self) -> &Option<String>
pub fn get_metric_namespace(&self) -> &Option<String>
The namespace of the metric.
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_dimensions(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn metric_dimensions( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to metric_dimensions
.
To override the contents of this collection use set_metric_dimensions
.
The metric dimension. This is a name/value pair that is part of the identity of a metric.
sourcepub fn set_metric_dimensions(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_metric_dimensions( self, input: Option<HashMap<String, String>> ) -> Self
The metric dimension. This is a name/value pair that is part of the identity of a metric.
sourcepub fn get_metric_dimensions(&self) -> &Option<HashMap<String, String>>
pub fn get_metric_dimensions(&self) -> &Option<HashMap<String, String>>
The metric dimension. This is a name/value pair that is part of the identity of a metric.
sourcepub fn metric_statistic_recommendation(self, input: impl Into<String>) -> Self
pub fn metric_statistic_recommendation(self, input: impl Into<String>) -> Self
The metric statistic that we recommend you use when determining quota usage.
sourcepub fn set_metric_statistic_recommendation(self, input: Option<String>) -> Self
pub fn set_metric_statistic_recommendation(self, input: Option<String>) -> Self
The metric statistic that we recommend you use when determining quota usage.
sourcepub fn get_metric_statistic_recommendation(&self) -> &Option<String>
pub fn get_metric_statistic_recommendation(&self) -> &Option<String>
The metric statistic that we recommend you use when determining quota usage.
sourcepub fn build(self) -> MetricInfo
pub fn build(self) -> MetricInfo
Consumes the builder and constructs a MetricInfo
.
Trait Implementations§
source§impl Clone for MetricInfoBuilder
impl Clone for MetricInfoBuilder
source§fn clone(&self) -> MetricInfoBuilder
fn clone(&self) -> MetricInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricInfoBuilder
impl Debug for MetricInfoBuilder
source§impl Default for MetricInfoBuilder
impl Default for MetricInfoBuilder
source§fn default() -> MetricInfoBuilder
fn default() -> MetricInfoBuilder
source§impl PartialEq for MetricInfoBuilder
impl PartialEq for MetricInfoBuilder
source§fn eq(&self, other: &MetricInfoBuilder) -> bool
fn eq(&self, other: &MetricInfoBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricInfoBuilder
Auto Trait Implementations§
impl Freeze for MetricInfoBuilder
impl RefUnwindSafe for MetricInfoBuilder
impl Send for MetricInfoBuilder
impl Sync for MetricInfoBuilder
impl Unpin for MetricInfoBuilder
impl UnwindSafe for MetricInfoBuilder
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