Struct aws_sdk_lightsail::operation::get_distribution_metric_data::builders::GetDistributionMetricDataOutputBuilder
source · #[non_exhaustive]pub struct GetDistributionMetricDataOutputBuilder { /* private fields */ }
Expand description
A builder for GetDistributionMetricDataOutput
.
Implementations§
source§impl GetDistributionMetricDataOutputBuilder
impl GetDistributionMetricDataOutputBuilder
sourcepub fn metric_name(self, input: DistributionMetricName) -> Self
pub fn metric_name(self, input: DistributionMetricName) -> Self
The name of the metric returned.
sourcepub fn set_metric_name(self, input: Option<DistributionMetricName>) -> Self
pub fn set_metric_name(self, input: Option<DistributionMetricName>) -> Self
The name of the metric returned.
sourcepub fn get_metric_name(&self) -> &Option<DistributionMetricName>
pub fn get_metric_name(&self) -> &Option<DistributionMetricName>
The name of the metric returned.
sourcepub fn metric_data(self, input: MetricDatapoint) -> Self
pub fn metric_data(self, input: MetricDatapoint) -> Self
Appends an item to metric_data
.
To override the contents of this collection use set_metric_data
.
An array of objects that describe the metric data returned.
sourcepub fn set_metric_data(self, input: Option<Vec<MetricDatapoint>>) -> Self
pub fn set_metric_data(self, input: Option<Vec<MetricDatapoint>>) -> Self
An array of objects that describe the metric data returned.
sourcepub fn get_metric_data(&self) -> &Option<Vec<MetricDatapoint>>
pub fn get_metric_data(&self) -> &Option<Vec<MetricDatapoint>>
An array of objects that describe the metric data returned.
sourcepub fn build(self) -> GetDistributionMetricDataOutput
pub fn build(self) -> GetDistributionMetricDataOutput
Consumes the builder and constructs a GetDistributionMetricDataOutput
.
Trait Implementations§
source§impl Clone for GetDistributionMetricDataOutputBuilder
impl Clone for GetDistributionMetricDataOutputBuilder
source§fn clone(&self) -> GetDistributionMetricDataOutputBuilder
fn clone(&self) -> GetDistributionMetricDataOutputBuilder
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 Default for GetDistributionMetricDataOutputBuilder
impl Default for GetDistributionMetricDataOutputBuilder
source§fn default() -> GetDistributionMetricDataOutputBuilder
fn default() -> GetDistributionMetricDataOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GetDistributionMetricDataOutputBuilder
impl PartialEq for GetDistributionMetricDataOutputBuilder
source§fn eq(&self, other: &GetDistributionMetricDataOutputBuilder) -> bool
fn eq(&self, other: &GetDistributionMetricDataOutputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetDistributionMetricDataOutputBuilder
Auto Trait Implementations§
impl Freeze for GetDistributionMetricDataOutputBuilder
impl RefUnwindSafe for GetDistributionMetricDataOutputBuilder
impl Send for GetDistributionMetricDataOutputBuilder
impl Sync for GetDistributionMetricDataOutputBuilder
impl Unpin for GetDistributionMetricDataOutputBuilder
impl UnwindSafe for GetDistributionMetricDataOutputBuilder
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.