#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BatchGetStreamKeyInput {
pub arns: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl BatchGetStreamKeyInput {
pub fn arns(&self) -> &[::std::string::String] {
self.arns.as_deref().unwrap_or_default()
}
}
impl BatchGetStreamKeyInput {
pub fn builder() -> crate::operation::batch_get_stream_key::builders::BatchGetStreamKeyInputBuilder {
crate::operation::batch_get_stream_key::builders::BatchGetStreamKeyInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct BatchGetStreamKeyInputBuilder {
pub(crate) arns: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl BatchGetStreamKeyInputBuilder {
pub fn arns(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.arns.unwrap_or_default();
v.push(input.into());
self.arns = ::std::option::Option::Some(v);
self
}
pub fn set_arns(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.arns = input;
self
}
pub fn get_arns(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.arns
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::batch_get_stream_key::BatchGetStreamKeyInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::batch_get_stream_key::BatchGetStreamKeyInput { arns: self.arns })
}
}