Struct aws_sdk_iot::operation::update_custom_metric::builders::UpdateCustomMetricFluentBuilder
source · pub struct UpdateCustomMetricFluentBuilder { /* 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 UpdateCustomMetricFluentBuilder
impl UpdateCustomMetricFluentBuilder
sourcepub fn as_input(&self) -> &UpdateCustomMetricInputBuilder
pub fn as_input(&self) -> &UpdateCustomMetricInputBuilder
Access the UpdateCustomMetric as a reference.
sourcepub async fn send(
self
) -> Result<UpdateCustomMetricOutput, SdkError<UpdateCustomMetricError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateCustomMetricOutput, SdkError<UpdateCustomMetricError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<UpdateCustomMetricOutput, UpdateCustomMetricError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateCustomMetricOutput, UpdateCustomMetricError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 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.
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.
Trait Implementations§
source§impl Clone for UpdateCustomMetricFluentBuilder
impl Clone for UpdateCustomMetricFluentBuilder
source§fn clone(&self) -> UpdateCustomMetricFluentBuilder
fn clone(&self) -> UpdateCustomMetricFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more