1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Represents a request to return the Amazon SES custom MAIL FROM attributes for a list of identities. For information about using a custom MAIL FROM domain, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/mail-from.html">Amazon SES Developer Guide</a>.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetIdentityMailFromDomainAttributesInput {
    /// <p>A list of one or more identities.</p>
    pub identities: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl GetIdentityMailFromDomainAttributesInput {
    /// <p>A list of one or more identities.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.identities.is_none()`.
    pub fn identities(&self) -> &[::std::string::String] {
        self.identities.as_deref().unwrap_or_default()
    }
}
impl GetIdentityMailFromDomainAttributesInput {
    /// Creates a new builder-style object to manufacture [`GetIdentityMailFromDomainAttributesInput`](crate::operation::get_identity_mail_from_domain_attributes::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()
    }
}

/// A builder for [`GetIdentityMailFromDomainAttributesInput`](crate::operation::get_identity_mail_from_domain_attributes::GetIdentityMailFromDomainAttributesInput).
#[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 {
    /// Appends an item to `identities`.
    ///
    /// To override the contents of this collection use [`set_identities`](Self::set_identities).
    ///
    /// <p>A list of one or more identities.</p>
    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
    }
    /// <p>A list of one or more identities.</p>
    pub fn set_identities(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.identities = input;
        self
    }
    /// <p>A list of one or more identities.</p>
    pub fn get_identities(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.identities
    }
    /// Consumes the builder and constructs a [`GetIdentityMailFromDomainAttributesInput`](crate::operation::get_identity_mail_from_domain_attributes::GetIdentityMailFromDomainAttributesInput).
    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 },
        )
    }
}