Struct aws_sdk_pi::types::builders::MetricKeyDataPointsBuilder
source · #[non_exhaustive]pub struct MetricKeyDataPointsBuilder { /* private fields */ }
Expand description
A builder for MetricKeyDataPoints
.
Implementations§
source§impl MetricKeyDataPointsBuilder
impl MetricKeyDataPointsBuilder
sourcepub fn key(self, input: ResponseResourceMetricKey) -> Self
pub fn key(self, input: ResponseResourceMetricKey) -> Self
The dimensions to which the data points apply.
sourcepub fn set_key(self, input: Option<ResponseResourceMetricKey>) -> Self
pub fn set_key(self, input: Option<ResponseResourceMetricKey>) -> Self
The dimensions to which the data points apply.
sourcepub fn get_key(&self) -> &Option<ResponseResourceMetricKey>
pub fn get_key(&self) -> &Option<ResponseResourceMetricKey>
The dimensions to which the data points apply.
sourcepub fn data_points(self, input: DataPoint) -> Self
pub fn data_points(self, input: DataPoint) -> Self
Appends an item to data_points
.
To override the contents of this collection use set_data_points
.
An array of timestamp-value pairs, representing measurements over a period of time.
sourcepub fn set_data_points(self, input: Option<Vec<DataPoint>>) -> Self
pub fn set_data_points(self, input: Option<Vec<DataPoint>>) -> Self
An array of timestamp-value pairs, representing measurements over a period of time.
sourcepub fn get_data_points(&self) -> &Option<Vec<DataPoint>>
pub fn get_data_points(&self) -> &Option<Vec<DataPoint>>
An array of timestamp-value pairs, representing measurements over a period of time.
sourcepub fn build(self) -> MetricKeyDataPoints
pub fn build(self) -> MetricKeyDataPoints
Consumes the builder and constructs a MetricKeyDataPoints
.
Trait Implementations§
source§impl Clone for MetricKeyDataPointsBuilder
impl Clone for MetricKeyDataPointsBuilder
source§fn clone(&self) -> MetricKeyDataPointsBuilder
fn clone(&self) -> MetricKeyDataPointsBuilder
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 MetricKeyDataPointsBuilder
impl Debug for MetricKeyDataPointsBuilder
source§impl Default for MetricKeyDataPointsBuilder
impl Default for MetricKeyDataPointsBuilder
source§fn default() -> MetricKeyDataPointsBuilder
fn default() -> MetricKeyDataPointsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for MetricKeyDataPointsBuilder
impl PartialEq for MetricKeyDataPointsBuilder
source§fn eq(&self, other: &MetricKeyDataPointsBuilder) -> bool
fn eq(&self, other: &MetricKeyDataPointsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricKeyDataPointsBuilder
Auto Trait Implementations§
impl Freeze for MetricKeyDataPointsBuilder
impl RefUnwindSafe for MetricKeyDataPointsBuilder
impl Send for MetricKeyDataPointsBuilder
impl Sync for MetricKeyDataPointsBuilder
impl Unpin for MetricKeyDataPointsBuilder
impl UnwindSafe for MetricKeyDataPointsBuilder
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.