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