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 ==
.