#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteChannelInput {
pub channel_arn: ::std::option::Option<::std::string::String>,
pub chime_bearer: ::std::option::Option<::std::string::String>,
}
impl DeleteChannelInput {
pub fn channel_arn(&self) -> ::std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn chime_bearer(&self) -> ::std::option::Option<&str> {
self.chime_bearer.as_deref()
}
}
impl DeleteChannelInput {
pub fn builder() -> crate::operation::delete_channel::builders::DeleteChannelInputBuilder {
crate::operation::delete_channel::builders::DeleteChannelInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteChannelInputBuilder {
pub(crate) channel_arn: ::std::option::Option<::std::string::String>,
pub(crate) chime_bearer: ::std::option::Option<::std::string::String>,
}
impl DeleteChannelInputBuilder {
pub fn channel_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.channel_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn get_channel_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.channel_arn
}
pub fn chime_bearer(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.chime_bearer = ::std::option::Option::Some(input.into());
self
}
pub fn set_chime_bearer(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.chime_bearer = input;
self
}
pub fn get_chime_bearer(&self) -> &::std::option::Option<::std::string::String> {
&self.chime_bearer
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_channel::DeleteChannelInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_channel::DeleteChannelInput {
channel_arn: self.channel_arn,
chime_bearer: self.chime_bearer,
})
}
}