#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteChannelInput {
#[doc(hidden)]
pub channel_id: std::option::Option<std::string::String>,
}
impl DeleteChannelInput {
pub fn channel_id(&self) -> std::option::Option<&str> {
self.channel_id.as_deref()
}
}
impl DeleteChannelInput {
pub fn builder() -> crate::operation::delete_channel::builders::DeleteChannelInputBuilder {
crate::operation::delete_channel::builders::DeleteChannelInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteChannelInputBuilder {
pub(crate) channel_id: std::option::Option<std::string::String>,
}
impl DeleteChannelInputBuilder {
pub fn channel_id(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_id = Some(input.into());
self
}
pub fn set_channel_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_id = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::delete_channel::DeleteChannelInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_channel::DeleteChannelInput {
channel_id: self.channel_id,
})
}
}