#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DisassociateChannelInput {
pub arn: ::std::option::Option<::std::string::String>,
pub notification_configuration_arn: ::std::option::Option<::std::string::String>,
}
impl DisassociateChannelInput {
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
pub fn notification_configuration_arn(&self) -> ::std::option::Option<&str> {
self.notification_configuration_arn.as_deref()
}
}
impl DisassociateChannelInput {
pub fn builder() -> crate::operation::disassociate_channel::builders::DisassociateChannelInputBuilder {
crate::operation::disassociate_channel::builders::DisassociateChannelInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisassociateChannelInputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) notification_configuration_arn: ::std::option::Option<::std::string::String>,
}
impl DisassociateChannelInputBuilder {
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
pub fn notification_configuration_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.notification_configuration_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_notification_configuration_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.notification_configuration_arn = input;
self
}
pub fn get_notification_configuration_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.notification_configuration_arn
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::disassociate_channel::DisassociateChannelInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::disassociate_channel::DisassociateChannelInput {
arn: self.arn,
notification_configuration_arn: self.notification_configuration_arn,
})
}
}