Struct aws_sdk_iot::client::fluent_builders::UpdateCustomMetric
source · pub struct UpdateCustomMetric { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateCustomMetric
.
Updates a Device Defender detect custom metric.
Requires permission to access the UpdateCustomMetric action.
Implementations§
source§impl UpdateCustomMetric
impl UpdateCustomMetric
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateCustomMetric, AwsResponseRetryClassifier>, SdkError<UpdateCustomMetricError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateCustomMetric, AwsResponseRetryClassifier>, SdkError<UpdateCustomMetricError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<UpdateCustomMetricOutput, SdkError<UpdateCustomMetricError>>
pub async fn send(
self
) -> Result<UpdateCustomMetricOutput, SdkError<UpdateCustomMetricError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
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.
Trait Implementations§
source§impl Clone for UpdateCustomMetric
impl Clone for UpdateCustomMetric
source§fn clone(&self) -> UpdateCustomMetric
fn clone(&self) -> UpdateCustomMetric
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more