Struct aws_sdk_lightsail::operation::get_load_balancer_metric_data::builders::GetLoadBalancerMetricDataOutputBuilder
source · #[non_exhaustive]pub struct GetLoadBalancerMetricDataOutputBuilder { /* private fields */ }
Expand description
A builder for GetLoadBalancerMetricDataOutput
.
Implementations§
source§impl GetLoadBalancerMetricDataOutputBuilder
impl GetLoadBalancerMetricDataOutputBuilder
sourcepub fn metric_name(self, input: LoadBalancerMetricName) -> Self
pub fn metric_name(self, input: LoadBalancerMetricName) -> Self
The name of the metric returned.
sourcepub fn set_metric_name(self, input: Option<LoadBalancerMetricName>) -> Self
pub fn set_metric_name(self, input: Option<LoadBalancerMetricName>) -> Self
The name of the metric returned.
sourcepub fn get_metric_name(&self) -> &Option<LoadBalancerMetricName>
pub fn get_metric_name(&self) -> &Option<LoadBalancerMetricName>
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) -> GetLoadBalancerMetricDataOutput
pub fn build(self) -> GetLoadBalancerMetricDataOutput
Consumes the builder and constructs a GetLoadBalancerMetricDataOutput
.
Trait Implementations§
source§impl Clone for GetLoadBalancerMetricDataOutputBuilder
impl Clone for GetLoadBalancerMetricDataOutputBuilder
source§fn clone(&self) -> GetLoadBalancerMetricDataOutputBuilder
fn clone(&self) -> GetLoadBalancerMetricDataOutputBuilder
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 GetLoadBalancerMetricDataOutputBuilder
impl Default for GetLoadBalancerMetricDataOutputBuilder
source§fn default() -> GetLoadBalancerMetricDataOutputBuilder
fn default() -> GetLoadBalancerMetricDataOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GetLoadBalancerMetricDataOutputBuilder
impl PartialEq for GetLoadBalancerMetricDataOutputBuilder
source§fn eq(&self, other: &GetLoadBalancerMetricDataOutputBuilder) -> bool
fn eq(&self, other: &GetLoadBalancerMetricDataOutputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetLoadBalancerMetricDataOutputBuilder
Auto Trait Implementations§
impl Freeze for GetLoadBalancerMetricDataOutputBuilder
impl RefUnwindSafe for GetLoadBalancerMetricDataOutputBuilder
impl Send for GetLoadBalancerMetricDataOutputBuilder
impl Sync for GetLoadBalancerMetricDataOutputBuilder
impl Unpin for GetLoadBalancerMetricDataOutputBuilder
impl UnwindSafe for GetLoadBalancerMetricDataOutputBuilder
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.