#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct AddNotificationChannelInput {
pub config: ::std::option::Option<crate::types::NotificationChannelConfig>,
}
impl AddNotificationChannelInput {
pub fn config(&self) -> ::std::option::Option<&crate::types::NotificationChannelConfig> {
self.config.as_ref()
}
}
impl AddNotificationChannelInput {
pub fn builder() -> crate::operation::add_notification_channel::builders::AddNotificationChannelInputBuilder {
crate::operation::add_notification_channel::builders::AddNotificationChannelInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct AddNotificationChannelInputBuilder {
pub(crate) config: ::std::option::Option<crate::types::NotificationChannelConfig>,
}
impl AddNotificationChannelInputBuilder {
pub fn config(mut self, input: crate::types::NotificationChannelConfig) -> Self {
self.config = ::std::option::Option::Some(input);
self
}
pub fn set_config(mut self, input: ::std::option::Option<crate::types::NotificationChannelConfig>) -> Self {
self.config = input;
self
}
pub fn get_config(&self) -> &::std::option::Option<crate::types::NotificationChannelConfig> {
&self.config
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::add_notification_channel::AddNotificationChannelInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::add_notification_channel::AddNotificationChannelInput { config: self.config })
}
}