aws-sdk-iotwireless 1.99.0

AWS SDK for AWS IoT Wireless
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateMetricConfigurationInput {
    /// <p>The value to be used to set summary metric configuration.</p>
    pub summary_metric: ::std::option::Option<crate::types::SummaryMetricConfiguration>,
}
impl UpdateMetricConfigurationInput {
    /// <p>The value to be used to set summary metric configuration.</p>
    pub fn summary_metric(&self) -> ::std::option::Option<&crate::types::SummaryMetricConfiguration> {
        self.summary_metric.as_ref()
    }
}
impl UpdateMetricConfigurationInput {
    /// Creates a new builder-style object to manufacture [`UpdateMetricConfigurationInput`](crate::operation::update_metric_configuration::UpdateMetricConfigurationInput).
    pub fn builder() -> crate::operation::update_metric_configuration::builders::UpdateMetricConfigurationInputBuilder {
        crate::operation::update_metric_configuration::builders::UpdateMetricConfigurationInputBuilder::default()
    }
}

/// A builder for [`UpdateMetricConfigurationInput`](crate::operation::update_metric_configuration::UpdateMetricConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateMetricConfigurationInputBuilder {
    pub(crate) summary_metric: ::std::option::Option<crate::types::SummaryMetricConfiguration>,
}
impl UpdateMetricConfigurationInputBuilder {
    /// <p>The value to be used to set summary metric configuration.</p>
    pub fn summary_metric(mut self, input: crate::types::SummaryMetricConfiguration) -> Self {
        self.summary_metric = ::std::option::Option::Some(input);
        self
    }
    /// <p>The value to be used to set summary metric configuration.</p>
    pub fn set_summary_metric(mut self, input: ::std::option::Option<crate::types::SummaryMetricConfiguration>) -> Self {
        self.summary_metric = input;
        self
    }
    /// <p>The value to be used to set summary metric configuration.</p>
    pub fn get_summary_metric(&self) -> &::std::option::Option<crate::types::SummaryMetricConfiguration> {
        &self.summary_metric
    }
    /// Consumes the builder and constructs a [`UpdateMetricConfigurationInput`](crate::operation::update_metric_configuration::UpdateMetricConfigurationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::update_metric_configuration::UpdateMetricConfigurationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::update_metric_configuration::UpdateMetricConfigurationInput {
            summary_metric: self.summary_metric,
        })
    }
}