#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Consolidation {
pub matching_attributes_list: ::std::vec::Vec<::std::vec::Vec<::std::string::String>>,
}
impl Consolidation {
pub fn matching_attributes_list(&self) -> &[::std::vec::Vec<::std::string::String>] {
use std::ops::Deref;
self.matching_attributes_list.deref()
}
}
impl Consolidation {
pub fn builder() -> crate::types::builders::ConsolidationBuilder {
crate::types::builders::ConsolidationBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ConsolidationBuilder {
pub(crate) matching_attributes_list: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
}
impl ConsolidationBuilder {
pub fn matching_attributes_list(mut self, input: ::std::vec::Vec<::std::string::String>) -> Self {
let mut v = self.matching_attributes_list.unwrap_or_default();
v.push(input);
self.matching_attributes_list = ::std::option::Option::Some(v);
self
}
pub fn set_matching_attributes_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>) -> Self {
self.matching_attributes_list = input;
self
}
pub fn get_matching_attributes_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>> {
&self.matching_attributes_list
}
pub fn build(self) -> ::std::result::Result<crate::types::Consolidation, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::types::Consolidation {
matching_attributes_list: self.matching_attributes_list.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"matching_attributes_list",
"matching_attributes_list was not specified but it is required when building Consolidation",
)
})?,
})
}
}