aws-sdk-iotmanagedintegrations 1.42.0

AWS SDK for Managed integrations for AWS IoT Device Management
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 DeleteNotificationConfigurationInput {
    /// <p>The type of event triggering a device notification to the customer-managed destination.</p>
    pub event_type: ::std::option::Option<crate::types::EventType>,
}
impl DeleteNotificationConfigurationInput {
    /// <p>The type of event triggering a device notification to the customer-managed destination.</p>
    pub fn event_type(&self) -> ::std::option::Option<&crate::types::EventType> {
        self.event_type.as_ref()
    }
}
impl DeleteNotificationConfigurationInput {
    /// Creates a new builder-style object to manufacture [`DeleteNotificationConfigurationInput`](crate::operation::delete_notification_configuration::DeleteNotificationConfigurationInput).
    pub fn builder() -> crate::operation::delete_notification_configuration::builders::DeleteNotificationConfigurationInputBuilder {
        crate::operation::delete_notification_configuration::builders::DeleteNotificationConfigurationInputBuilder::default()
    }
}

/// A builder for [`DeleteNotificationConfigurationInput`](crate::operation::delete_notification_configuration::DeleteNotificationConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteNotificationConfigurationInputBuilder {
    pub(crate) event_type: ::std::option::Option<crate::types::EventType>,
}
impl DeleteNotificationConfigurationInputBuilder {
    /// <p>The type of event triggering a device notification to the customer-managed destination.</p>
    /// This field is required.
    pub fn event_type(mut self, input: crate::types::EventType) -> Self {
        self.event_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of event triggering a device notification to the customer-managed destination.</p>
    pub fn set_event_type(mut self, input: ::std::option::Option<crate::types::EventType>) -> Self {
        self.event_type = input;
        self
    }
    /// <p>The type of event triggering a device notification to the customer-managed destination.</p>
    pub fn get_event_type(&self) -> &::std::option::Option<crate::types::EventType> {
        &self.event_type
    }
    /// Consumes the builder and constructs a [`DeleteNotificationConfigurationInput`](crate::operation::delete_notification_configuration::DeleteNotificationConfigurationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_notification_configuration::DeleteNotificationConfigurationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(
            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationInput { event_type: self.event_type },
        )
    }
}