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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Represents a request to delete an email address from the list of email addresses you have attempted to verify under your Amazon Web Services account.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteVerifiedEmailAddressInput {
    /// <p>An email address to be removed from the list of verified addresses.</p>
    pub email_address: ::std::option::Option<::std::string::String>,
}
impl DeleteVerifiedEmailAddressInput {
    /// <p>An email address to be removed from the list of verified addresses.</p>
    pub fn email_address(&self) -> ::std::option::Option<&str> {
        self.email_address.as_deref()
    }
}
impl DeleteVerifiedEmailAddressInput {
    /// Creates a new builder-style object to manufacture [`DeleteVerifiedEmailAddressInput`](crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressInput).
    pub fn builder() -> crate::operation::delete_verified_email_address::builders::DeleteVerifiedEmailAddressInputBuilder {
        crate::operation::delete_verified_email_address::builders::DeleteVerifiedEmailAddressInputBuilder::default()
    }
}

/// A builder for [`DeleteVerifiedEmailAddressInput`](crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DeleteVerifiedEmailAddressInputBuilder {
    pub(crate) email_address: ::std::option::Option<::std::string::String>,
}
impl DeleteVerifiedEmailAddressInputBuilder {
    /// <p>An email address to be removed from the list of verified addresses.</p>
    /// This field is required.
    pub fn email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.email_address = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>An email address to be removed from the list of verified addresses.</p>
    pub fn set_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.email_address = input;
        self
    }
    /// <p>An email address to be removed from the list of verified addresses.</p>
    pub fn get_email_address(&self) -> &::std::option::Option<::std::string::String> {
        &self.email_address
    }
    /// Consumes the builder and constructs a [`DeleteVerifiedEmailAddressInput`](crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressInput {
            email_address: self.email_address,
        })
    }
}