#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StopStreamInput {
pub channel_arn: ::std::option::Option<::std::string::String>,
}
impl StopStreamInput {
pub fn channel_arn(&self) -> ::std::option::Option<&str> {
self.channel_arn.as_deref()
}
}
impl StopStreamInput {
pub fn builder() -> crate::operation::stop_stream::builders::StopStreamInputBuilder {
crate::operation::stop_stream::builders::StopStreamInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StopStreamInputBuilder {
pub(crate) channel_arn: ::std::option::Option<::std::string::String>,
}
impl StopStreamInputBuilder {
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 build(self) -> ::std::result::Result<crate::operation::stop_stream::StopStreamInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::stop_stream::StopStreamInput {
channel_arn: self.channel_arn,
})
}
}