#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct PutDeliveryChannelInput {
pub delivery_channel: ::std::option::Option<crate::types::DeliveryChannel>,
}
impl PutDeliveryChannelInput {
pub fn delivery_channel(&self) -> ::std::option::Option<&crate::types::DeliveryChannel> {
self.delivery_channel.as_ref()
}
}
impl PutDeliveryChannelInput {
pub fn builder() -> crate::operation::put_delivery_channel::builders::PutDeliveryChannelInputBuilder {
crate::operation::put_delivery_channel::builders::PutDeliveryChannelInputBuilder::default()
}
}
#[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 {
pub fn delivery_channel(mut self, input: crate::types::DeliveryChannel) -> Self {
self.delivery_channel = ::std::option::Option::Some(input);
self
}
pub fn set_delivery_channel(mut self, input: ::std::option::Option<crate::types::DeliveryChannel>) -> Self {
self.delivery_channel = input;
self
}
pub fn get_delivery_channel(&self) -> &::std::option::Option<crate::types::DeliveryChannel> {
&self.delivery_channel
}
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,
})
}
}