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