#[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 ==
.