#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BatchStopInput {
pub channel_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub multiplex_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl BatchStopInput {
pub fn channel_ids(&self) -> &[::std::string::String] {
self.channel_ids.as_deref().unwrap_or_default()
}
pub fn multiplex_ids(&self) -> &[::std::string::String] {
self.multiplex_ids.as_deref().unwrap_or_default()
}
}
impl BatchStopInput {
pub fn builder() -> crate::operation::batch_stop::builders::BatchStopInputBuilder {
crate::operation::batch_stop::builders::BatchStopInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct BatchStopInputBuilder {
pub(crate) channel_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) multiplex_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl BatchStopInputBuilder {
pub fn channel_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.channel_ids.unwrap_or_default();
v.push(input.into());
self.channel_ids = ::std::option::Option::Some(v);
self
}
pub fn set_channel_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.channel_ids = input;
self
}
pub fn get_channel_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.channel_ids
}
pub fn multiplex_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.multiplex_ids.unwrap_or_default();
v.push(input.into());
self.multiplex_ids = ::std::option::Option::Some(v);
self
}
pub fn set_multiplex_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.multiplex_ids = input;
self
}
pub fn get_multiplex_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.multiplex_ids
}
pub fn build(self) -> ::std::result::Result<crate::operation::batch_stop::BatchStopInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::batch_stop::BatchStopInput {
channel_ids: self.channel_ids,
multiplex_ids: self.multiplex_ids,
})
}
}