#[non_exhaustive]pub struct CloudWatchMetricsDetailBuilder { /* private fields */ }
Expand description
A builder for CloudWatchMetricsDetail
.
Implementations§
source§impl CloudWatchMetricsDetailBuilder
impl CloudWatchMetricsDetailBuilder
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
The name of the CloudWatch 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 CloudWatch metric.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
The name of the CloudWatch metric.
sourcepub fn namespace(self, input: impl Into<String>) -> Self
pub fn namespace(self, input: impl Into<String>) -> Self
The namespace of the CloudWatch metric. A namespace is a container for CloudWatch metrics.
sourcepub fn set_namespace(self, input: Option<String>) -> Self
pub fn set_namespace(self, input: Option<String>) -> Self
The namespace of the CloudWatch metric. A namespace is a container for CloudWatch metrics.
sourcepub fn get_namespace(&self) -> &Option<String>
pub fn get_namespace(&self) -> &Option<String>
The namespace of the CloudWatch metric. A namespace is a container for CloudWatch metrics.
sourcepub fn dimensions(self, input: CloudWatchMetricsDimension) -> Self
pub fn dimensions(self, input: CloudWatchMetricsDimension) -> Self
Appends an item to dimensions
.
To override the contents of this collection use set_dimensions
.
An array of CloudWatch dimensions associated with
sourcepub fn set_dimensions(
self,
input: Option<Vec<CloudWatchMetricsDimension>>,
) -> Self
pub fn set_dimensions( self, input: Option<Vec<CloudWatchMetricsDimension>>, ) -> Self
An array of CloudWatch dimensions associated with
sourcepub fn get_dimensions(&self) -> &Option<Vec<CloudWatchMetricsDimension>>
pub fn get_dimensions(&self) -> &Option<Vec<CloudWatchMetricsDimension>>
An array of CloudWatch dimensions associated with
sourcepub fn stat(self, input: CloudWatchMetricsStat) -> Self
pub fn stat(self, input: CloudWatchMetricsStat) -> Self
The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.
sourcepub fn set_stat(self, input: Option<CloudWatchMetricsStat>) -> Self
pub fn set_stat(self, input: Option<CloudWatchMetricsStat>) -> Self
The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.
sourcepub fn get_stat(&self) -> &Option<CloudWatchMetricsStat>
pub fn get_stat(&self) -> &Option<CloudWatchMetricsStat>
The type of statistic associated with the CloudWatch metric. For more information, see Statistics in the Amazon CloudWatch User Guide.
sourcepub fn unit(self, input: impl Into<String>) -> Self
pub fn unit(self, input: impl Into<String>) -> Self
The unit of measure used for the CloudWatch metric. For example, Bytes
, Seconds
, Count
, and Percent
.
sourcepub fn set_unit(self, input: Option<String>) -> Self
pub fn set_unit(self, input: Option<String>) -> Self
The unit of measure used for the CloudWatch metric. For example, Bytes
, Seconds
, Count
, and Percent
.
sourcepub fn get_unit(&self) -> &Option<String>
pub fn get_unit(&self) -> &Option<String>
The unit of measure used for the CloudWatch metric. For example, Bytes
, Seconds
, Count
, and Percent
.
sourcepub fn period(self, input: i32) -> Self
pub fn period(self, input: i32) -> Self
The length of time associated with the CloudWatch metric in number of seconds.
sourcepub fn set_period(self, input: Option<i32>) -> Self
pub fn set_period(self, input: Option<i32>) -> Self
The length of time associated with the CloudWatch metric in number of seconds.
sourcepub fn get_period(&self) -> &Option<i32>
pub fn get_period(&self) -> &Option<i32>
The length of time associated with the CloudWatch metric in number of seconds.
sourcepub fn metric_data_summary(self, input: CloudWatchMetricsDataSummary) -> Self
pub fn metric_data_summary(self, input: CloudWatchMetricsDataSummary) -> Self
This object returns anomaly metric data.
sourcepub fn set_metric_data_summary(
self,
input: Option<CloudWatchMetricsDataSummary>,
) -> Self
pub fn set_metric_data_summary( self, input: Option<CloudWatchMetricsDataSummary>, ) -> Self
This object returns anomaly metric data.
sourcepub fn get_metric_data_summary(&self) -> &Option<CloudWatchMetricsDataSummary>
pub fn get_metric_data_summary(&self) -> &Option<CloudWatchMetricsDataSummary>
This object returns anomaly metric data.
sourcepub fn build(self) -> CloudWatchMetricsDetail
pub fn build(self) -> CloudWatchMetricsDetail
Consumes the builder and constructs a CloudWatchMetricsDetail
.
Trait Implementations§
source§impl Clone for CloudWatchMetricsDetailBuilder
impl Clone for CloudWatchMetricsDetailBuilder
source§fn clone(&self) -> CloudWatchMetricsDetailBuilder
fn clone(&self) -> CloudWatchMetricsDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CloudWatchMetricsDetailBuilder
impl Default for CloudWatchMetricsDetailBuilder
source§fn default() -> CloudWatchMetricsDetailBuilder
fn default() -> CloudWatchMetricsDetailBuilder
source§impl PartialEq for CloudWatchMetricsDetailBuilder
impl PartialEq for CloudWatchMetricsDetailBuilder
source§fn eq(&self, other: &CloudWatchMetricsDetailBuilder) -> bool
fn eq(&self, other: &CloudWatchMetricsDetailBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CloudWatchMetricsDetailBuilder
Auto Trait Implementations§
impl Freeze for CloudWatchMetricsDetailBuilder
impl RefUnwindSafe for CloudWatchMetricsDetailBuilder
impl Send for CloudWatchMetricsDetailBuilder
impl Sync for CloudWatchMetricsDetailBuilder
impl Unpin for CloudWatchMetricsDetailBuilder
impl UnwindSafe for CloudWatchMetricsDetailBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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