#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BatchStartInput {
#[doc(hidden)]
pub channel_ids: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub multiplex_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl BatchStartInput {
pub fn channel_ids(&self) -> std::option::Option<&[std::string::String]> {
self.channel_ids.as_deref()
}
pub fn multiplex_ids(&self) -> std::option::Option<&[std::string::String]> {
self.multiplex_ids.as_deref()
}
}
impl BatchStartInput {
pub fn builder() -> crate::operation::batch_start::builders::BatchStartInputBuilder {
crate::operation::batch_start::builders::BatchStartInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct BatchStartInputBuilder {
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 BatchStartInputBuilder {
pub fn channel_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.channel_ids.unwrap_or_default();
v.push(input.into());
self.channel_ids = 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 multiplex_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.multiplex_ids.unwrap_or_default();
v.push(input.into());
self.multiplex_ids = 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 build(
self,
) -> Result<
crate::operation::batch_start::BatchStartInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::batch_start::BatchStartInput {
channel_ids: self.channel_ids,
multiplex_ids: self.multiplex_ids,
})
}
}