Struct aws_sdk_connect::types::builders::MetricResultV2Builder
source · #[non_exhaustive]pub struct MetricResultV2Builder { /* private fields */ }
Expand description
A builder for MetricResultV2
.
Implementations§
source§impl MetricResultV2Builder
impl MetricResultV2Builder
sourcepub fn dimensions(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn dimensions(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to dimensions
.
To override the contents of this collection use set_dimensions
.
The dimension for the metrics.
sourcepub fn set_dimensions(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_dimensions(self, input: Option<HashMap<String, String>>) -> Self
The dimension for the metrics.
sourcepub fn get_dimensions(&self) -> &Option<HashMap<String, String>>
pub fn get_dimensions(&self) -> &Option<HashMap<String, String>>
The dimension for the metrics.
sourcepub fn metric_interval(self, input: MetricInterval) -> Self
pub fn metric_interval(self, input: MetricInterval) -> Self
The interval period with the start and end time for the metrics.
sourcepub fn set_metric_interval(self, input: Option<MetricInterval>) -> Self
pub fn set_metric_interval(self, input: Option<MetricInterval>) -> Self
The interval period with the start and end time for the metrics.
sourcepub fn get_metric_interval(&self) -> &Option<MetricInterval>
pub fn get_metric_interval(&self) -> &Option<MetricInterval>
The interval period with the start and end time for the metrics.
sourcepub fn collections(self, input: MetricDataV2) -> Self
pub fn collections(self, input: MetricDataV2) -> Self
Appends an item to collections
.
To override the contents of this collection use set_collections
.
The set of metrics.
sourcepub fn set_collections(self, input: Option<Vec<MetricDataV2>>) -> Self
pub fn set_collections(self, input: Option<Vec<MetricDataV2>>) -> Self
The set of metrics.
sourcepub fn get_collections(&self) -> &Option<Vec<MetricDataV2>>
pub fn get_collections(&self) -> &Option<Vec<MetricDataV2>>
The set of metrics.
sourcepub fn build(self) -> MetricResultV2
pub fn build(self) -> MetricResultV2
Consumes the builder and constructs a MetricResultV2
.
Trait Implementations§
source§impl Clone for MetricResultV2Builder
impl Clone for MetricResultV2Builder
source§fn clone(&self) -> MetricResultV2Builder
fn clone(&self) -> MetricResultV2Builder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MetricResultV2Builder
impl Debug for MetricResultV2Builder
source§impl Default for MetricResultV2Builder
impl Default for MetricResultV2Builder
source§fn default() -> MetricResultV2Builder
fn default() -> MetricResultV2Builder
Returns the “default value” for a type. Read more
source§impl PartialEq for MetricResultV2Builder
impl PartialEq for MetricResultV2Builder
source§fn eq(&self, other: &MetricResultV2Builder) -> bool
fn eq(&self, other: &MetricResultV2Builder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricResultV2Builder
Auto Trait Implementations§
impl RefUnwindSafe for MetricResultV2Builder
impl Send for MetricResultV2Builder
impl Sync for MetricResultV2Builder
impl Unpin for MetricResultV2Builder
impl UnwindSafe for MetricResultV2Builder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.