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.
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 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.
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 build(self) -> Result<UpdateCustomMetricInput, BuildError>
pub fn build(self) -> Result<UpdateCustomMetricInput, BuildError>
Consumes the builder and constructs a UpdateCustomMetricInput.
Trait Implementations§
source§impl Clone for UpdateCustomMetricInputBuilder
impl Clone for UpdateCustomMetricInputBuilder
source§fn clone(&self) -> UpdateCustomMetricInputBuilder
fn clone(&self) -> UpdateCustomMetricInputBuilder
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 UpdateCustomMetricInputBuilder
impl Default for UpdateCustomMetricInputBuilder
source§fn default() -> UpdateCustomMetricInputBuilder
fn default() -> UpdateCustomMetricInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<UpdateCustomMetricInputBuilder> for UpdateCustomMetricInputBuilder
impl PartialEq<UpdateCustomMetricInputBuilder> for UpdateCustomMetricInputBuilder
source§fn eq(&self, other: &UpdateCustomMetricInputBuilder) -> bool
fn eq(&self, other: &UpdateCustomMetricInputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateCustomMetricInputBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more