Struct aws_sdk_sesv2::types::builders::MetricsDataSourceBuilder
source · #[non_exhaustive]pub struct MetricsDataSourceBuilder { /* private fields */ }Expand description
A builder for MetricsDataSource.
Implementations§
source§impl MetricsDataSourceBuilder
impl MetricsDataSourceBuilder
sourcepub fn dimensions(self, k: MetricDimensionName, v: Vec<String>) -> Self
pub fn dimensions(self, k: MetricDimensionName, v: Vec<String>) -> Self
Adds a key-value pair to dimensions.
To override the contents of this collection use set_dimensions.
An object that contains a mapping between a MetricDimensionName and MetricDimensionValue to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.
sourcepub fn set_dimensions(
self,
input: Option<HashMap<MetricDimensionName, Vec<String>>>
) -> Self
pub fn set_dimensions( self, input: Option<HashMap<MetricDimensionName, Vec<String>>> ) -> Self
An object that contains a mapping between a MetricDimensionName and MetricDimensionValue to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.
sourcepub fn get_dimensions(
&self
) -> &Option<HashMap<MetricDimensionName, Vec<String>>>
pub fn get_dimensions( &self ) -> &Option<HashMap<MetricDimensionName, Vec<String>>>
An object that contains a mapping between a MetricDimensionName and MetricDimensionValue to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.
sourcepub fn namespace(self, input: MetricNamespace) -> Self
pub fn namespace(self, input: MetricNamespace) -> Self
The metrics namespace - e.g., VDM.
sourcepub fn set_namespace(self, input: Option<MetricNamespace>) -> Self
pub fn set_namespace(self, input: Option<MetricNamespace>) -> Self
The metrics namespace - e.g., VDM.
sourcepub fn get_namespace(&self) -> &Option<MetricNamespace>
pub fn get_namespace(&self) -> &Option<MetricNamespace>
The metrics namespace - e.g., VDM.
sourcepub fn metrics(self, input: ExportMetric) -> Self
pub fn metrics(self, input: ExportMetric) -> Self
Appends an item to metrics.
To override the contents of this collection use set_metrics.
A list of ExportMetric objects to export.
sourcepub fn set_metrics(self, input: Option<Vec<ExportMetric>>) -> Self
pub fn set_metrics(self, input: Option<Vec<ExportMetric>>) -> Self
A list of ExportMetric objects to export.
sourcepub fn get_metrics(&self) -> &Option<Vec<ExportMetric>>
pub fn get_metrics(&self) -> &Option<Vec<ExportMetric>>
A list of ExportMetric objects to export.
sourcepub fn start_date(self, input: DateTime) -> Self
pub fn start_date(self, input: DateTime) -> Self
Represents the start date for the export interval as a timestamp.
This field is required.sourcepub fn set_start_date(self, input: Option<DateTime>) -> Self
pub fn set_start_date(self, input: Option<DateTime>) -> Self
Represents the start date for the export interval as a timestamp.
sourcepub fn get_start_date(&self) -> &Option<DateTime>
pub fn get_start_date(&self) -> &Option<DateTime>
Represents the start date for the export interval as a timestamp.
sourcepub fn end_date(self, input: DateTime) -> Self
pub fn end_date(self, input: DateTime) -> Self
Represents the end date for the export interval as a timestamp.
This field is required.sourcepub fn set_end_date(self, input: Option<DateTime>) -> Self
pub fn set_end_date(self, input: Option<DateTime>) -> Self
Represents the end date for the export interval as a timestamp.
sourcepub fn get_end_date(&self) -> &Option<DateTime>
pub fn get_end_date(&self) -> &Option<DateTime>
Represents the end date for the export interval as a timestamp.
sourcepub fn build(self) -> Result<MetricsDataSource, BuildError>
pub fn build(self) -> Result<MetricsDataSource, BuildError>
Consumes the builder and constructs a MetricsDataSource.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MetricsDataSourceBuilder
impl Clone for MetricsDataSourceBuilder
source§fn clone(&self) -> MetricsDataSourceBuilder
fn clone(&self) -> MetricsDataSourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MetricsDataSourceBuilder
impl Debug for MetricsDataSourceBuilder
source§impl Default for MetricsDataSourceBuilder
impl Default for MetricsDataSourceBuilder
source§fn default() -> MetricsDataSourceBuilder
fn default() -> MetricsDataSourceBuilder
source§impl PartialEq for MetricsDataSourceBuilder
impl PartialEq for MetricsDataSourceBuilder
source§fn eq(&self, other: &MetricsDataSourceBuilder) -> bool
fn eq(&self, other: &MetricsDataSourceBuilder) -> bool
self and other values to be equal, and is used
by ==.