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

/// <p>The input for the <code>DeliverConfigSnapshot</code> action.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeliverConfigSnapshotInput {
    /// <p>The name of the delivery channel through which the snapshot is delivered.</p>
    pub delivery_channel_name: ::std::option::Option<::std::string::String>,
}
impl DeliverConfigSnapshotInput {
    /// <p>The name of the delivery channel through which the snapshot is delivered.</p>
    pub fn delivery_channel_name(&self) -> ::std::option::Option<&str> {
        self.delivery_channel_name.as_deref()
    }
}
impl DeliverConfigSnapshotInput {
    /// Creates a new builder-style object to manufacture [`DeliverConfigSnapshotInput`](crate::operation::deliver_config_snapshot::DeliverConfigSnapshotInput).
    pub fn builder() -> crate::operation::deliver_config_snapshot::builders::DeliverConfigSnapshotInputBuilder {
        crate::operation::deliver_config_snapshot::builders::DeliverConfigSnapshotInputBuilder::default()
    }
}

/// A builder for [`DeliverConfigSnapshotInput`](crate::operation::deliver_config_snapshot::DeliverConfigSnapshotInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeliverConfigSnapshotInputBuilder {
    pub(crate) delivery_channel_name: ::std::option::Option<::std::string::String>,
}
impl DeliverConfigSnapshotInputBuilder {
    /// <p>The name of the delivery channel through which the snapshot is delivered.</p>
    /// This field is required.
    pub fn delivery_channel_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.delivery_channel_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the delivery channel through which the snapshot is delivered.</p>
    pub fn set_delivery_channel_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.delivery_channel_name = input;
        self
    }
    /// <p>The name of the delivery channel through which the snapshot is delivered.</p>
    pub fn get_delivery_channel_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.delivery_channel_name
    }
    /// Consumes the builder and constructs a [`DeliverConfigSnapshotInput`](crate::operation::deliver_config_snapshot::DeliverConfigSnapshotInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::deliver_config_snapshot::DeliverConfigSnapshotInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::deliver_config_snapshot::DeliverConfigSnapshotInput {
            delivery_channel_name: self.delivery_channel_name,
        })
    }
}
