Struct aws_sdk_iot::operation::update_custom_metric::builders::UpdateCustomMetricInputBuilder
source · #[non_exhaustive]pub struct UpdateCustomMetricInputBuilder { /* private fields */ }
Expand description
A builder for UpdateCustomMetricInput
.
Implementations§
source§impl UpdateCustomMetricInputBuilder
impl UpdateCustomMetricInputBuilder
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
The name of the custom metric. Cannot be updated.
This field is required.sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
The name of the custom metric. Cannot be updated.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
The name of the custom metric. Cannot be updated.
sourcepub fn display_name(self, input: impl Into<String>) -> Self
pub fn display_name(self, input: impl Into<String>) -> Self
Field represents a friendly name in the console for the custom metric, it doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated.
This field is required.sourcepub fn set_display_name(self, input: Option<String>) -> Self
pub fn set_display_name(self, input: Option<String>) -> Self
Field represents a friendly name in the console for the custom metric, it doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated.
sourcepub fn get_display_name(&self) -> &Option<String>
pub fn get_display_name(&self) -> &Option<String>
Field represents a friendly name in the console for the custom metric, it doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated.
sourcepub fn build(self) -> Result<UpdateCustomMetricInput, BuildError>
pub fn build(self) -> Result<UpdateCustomMetricInput, BuildError>
Consumes the builder and constructs a UpdateCustomMetricInput
.
source§impl UpdateCustomMetricInputBuilder
impl UpdateCustomMetricInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateCustomMetricOutput, SdkError<UpdateCustomMetricError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateCustomMetricOutput, SdkError<UpdateCustomMetricError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateCustomMetricInputBuilder
impl Clone for UpdateCustomMetricInputBuilder
source§fn clone(&self) -> UpdateCustomMetricInputBuilder
fn clone(&self) -> UpdateCustomMetricInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateCustomMetricInputBuilder
impl Default for UpdateCustomMetricInputBuilder
source§fn default() -> UpdateCustomMetricInputBuilder
fn default() -> UpdateCustomMetricInputBuilder
source§impl PartialEq for UpdateCustomMetricInputBuilder
impl PartialEq for UpdateCustomMetricInputBuilder
source§fn eq(&self, other: &UpdateCustomMetricInputBuilder) -> bool
fn eq(&self, other: &UpdateCustomMetricInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateCustomMetricInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateCustomMetricInputBuilder
impl RefUnwindSafe for UpdateCustomMetricInputBuilder
impl Send for UpdateCustomMetricInputBuilder
impl Sync for UpdateCustomMetricInputBuilder
impl Unpin for UpdateCustomMetricInputBuilder
impl UnwindSafe for UpdateCustomMetricInputBuilder
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
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>
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>
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 more