// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The input for the <code>PutDeliveryChannel</code> action.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct PutDeliveryChannelInput {
    /// <p>An object for the delivery channel. A delivery channel sends notifications and updated configuration states.</p>
    pub delivery_channel: ::std::option::Option<crate::types::DeliveryChannel>,
}
impl PutDeliveryChannelInput {
    /// <p>An object for the delivery channel. A delivery channel sends notifications and updated configuration states.</p>
    pub fn delivery_channel(&self) -> ::std::option::Option<&crate::types::DeliveryChannel> {
        self.delivery_channel.as_ref()
    }
}
impl PutDeliveryChannelInput {
    /// Creates a new builder-style object to manufacture [`PutDeliveryChannelInput`](crate::operation::put_delivery_channel::PutDeliveryChannelInput).
    pub fn builder() -> crate::operation::put_delivery_channel::builders::PutDeliveryChannelInputBuilder {
        crate::operation::put_delivery_channel::builders::PutDeliveryChannelInputBuilder::default()
    }
}

/// A builder for [`PutDeliveryChannelInput`](crate::operation::put_delivery_channel::PutDeliveryChannelInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct PutDeliveryChannelInputBuilder {
    pub(crate) delivery_channel: ::std::option::Option<crate::types::DeliveryChannel>,
}
impl PutDeliveryChannelInputBuilder {
    /// <p>An object for the delivery channel. A delivery channel sends notifications and updated configuration states.</p>
    /// This field is required.
    pub fn delivery_channel(mut self, input: crate::types::DeliveryChannel) -> Self {
        self.delivery_channel = ::std::option::Option::Some(input);
        self
    }
    /// <p>An object for the delivery channel. A delivery channel sends notifications and updated configuration states.</p>
    pub fn set_delivery_channel(mut self, input: ::std::option::Option<crate::types::DeliveryChannel>) -> Self {
        self.delivery_channel = input;
        self
    }
    /// <p>An object for the delivery channel. A delivery channel sends notifications and updated configuration states.</p>
    pub fn get_delivery_channel(&self) -> &::std::option::Option<crate::types::DeliveryChannel> {
        &self.delivery_channel
    }
    /// Consumes the builder and constructs a [`PutDeliveryChannelInput`](crate::operation::put_delivery_channel::PutDeliveryChannelInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::put_delivery_channel::PutDeliveryChannelInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::put_delivery_channel::PutDeliveryChannelInput {
            delivery_channel: self.delivery_channel,
        })
    }
}
