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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct ResendContactReachabilityEmailOutput {
    /// <p>The domain name for which you requested a confirmation email.</p>
    pub domain_name: ::std::option::Option<::std::string::String>,
    /// <p>The email address for the registrant contact at the time that we sent the verification email.</p>
    pub email_address: ::std::option::Option<::std::string::String>,
    /// <p><code>True</code> if the email address for the registrant contact has already been verified, and <code>false</code> otherwise. If the email address has already been verified, we don't send another confirmation email.</p>
    pub is_already_verified: ::std::option::Option<bool>,
    _request_id: Option<String>,
}
impl ResendContactReachabilityEmailOutput {
    /// <p>The domain name for which you requested a confirmation email.</p>
    pub fn domain_name(&self) -> ::std::option::Option<&str> {
        self.domain_name.as_deref()
    }
    /// <p>The email address for the registrant contact at the time that we sent the verification email.</p>
    pub fn email_address(&self) -> ::std::option::Option<&str> {
        self.email_address.as_deref()
    }
    /// <p><code>True</code> if the email address for the registrant contact has already been verified, and <code>false</code> otherwise. If the email address has already been verified, we don't send another confirmation email.</p>
    pub fn is_already_verified(&self) -> ::std::option::Option<bool> {
        self.is_already_verified
    }
}
impl ::std::fmt::Debug for ResendContactReachabilityEmailOutput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("ResendContactReachabilityEmailOutput");
        formatter.field("domain_name", &self.domain_name);
        formatter.field("email_address", &"*** Sensitive Data Redacted ***");
        formatter.field("is_already_verified", &self.is_already_verified);
        formatter.field("_request_id", &self._request_id);
        formatter.finish()
    }
}
impl ::aws_types::request_id::RequestId for ResendContactReachabilityEmailOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl ResendContactReachabilityEmailOutput {
    /// Creates a new builder-style object to manufacture [`ResendContactReachabilityEmailOutput`](crate::operation::resend_contact_reachability_email::ResendContactReachabilityEmailOutput).
    pub fn builder() -> crate::operation::resend_contact_reachability_email::builders::ResendContactReachabilityEmailOutputBuilder {
        crate::operation::resend_contact_reachability_email::builders::ResendContactReachabilityEmailOutputBuilder::default()
    }
}

/// A builder for [`ResendContactReachabilityEmailOutput`](crate::operation::resend_contact_reachability_email::ResendContactReachabilityEmailOutput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct ResendContactReachabilityEmailOutputBuilder {
    pub(crate) domain_name: ::std::option::Option<::std::string::String>,
    pub(crate) email_address: ::std::option::Option<::std::string::String>,
    pub(crate) is_already_verified: ::std::option::Option<bool>,
    _request_id: Option<String>,
}
impl ResendContactReachabilityEmailOutputBuilder {
    /// <p>The domain name for which you requested a confirmation email.</p>
    pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The domain name for which you requested a confirmation email.</p>
    pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain_name = input;
        self
    }
    /// <p>The domain name for which you requested a confirmation email.</p>
    pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain_name
    }
    /// <p>The email address for the registrant contact at the time that we sent the verification email.</p>
    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>The email address for the registrant contact at the time that we sent the verification email.</p>
    pub fn set_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.email_address = input;
        self
    }
    /// <p>The email address for the registrant contact at the time that we sent the verification email.</p>
    pub fn get_email_address(&self) -> &::std::option::Option<::std::string::String> {
        &self.email_address
    }
    /// <p><code>True</code> if the email address for the registrant contact has already been verified, and <code>false</code> otherwise. If the email address has already been verified, we don't send another confirmation email.</p>
    pub fn is_already_verified(mut self, input: bool) -> Self {
        self.is_already_verified = ::std::option::Option::Some(input);
        self
    }
    /// <p><code>True</code> if the email address for the registrant contact has already been verified, and <code>false</code> otherwise. If the email address has already been verified, we don't send another confirmation email.</p>
    pub fn set_is_already_verified(mut self, input: ::std::option::Option<bool>) -> Self {
        self.is_already_verified = input;
        self
    }
    /// <p><code>True</code> if the email address for the registrant contact has already been verified, and <code>false</code> otherwise. If the email address has already been verified, we don't send another confirmation email.</p>
    pub fn get_is_already_verified(&self) -> &::std::option::Option<bool> {
        &self.is_already_verified
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`ResendContactReachabilityEmailOutput`](crate::operation::resend_contact_reachability_email::ResendContactReachabilityEmailOutput).
    pub fn build(self) -> crate::operation::resend_contact_reachability_email::ResendContactReachabilityEmailOutput {
        crate::operation::resend_contact_reachability_email::ResendContactReachabilityEmailOutput {
            domain_name: self.domain_name,
            email_address: self.email_address,
            is_already_verified: self.is_already_verified,
            _request_id: self._request_id,
        }
    }
}
impl ::std::fmt::Debug for ResendContactReachabilityEmailOutputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("ResendContactReachabilityEmailOutputBuilder");
        formatter.field("domain_name", &self.domain_name);
        formatter.field("email_address", &"*** Sensitive Data Redacted ***");
        formatter.field("is_already_verified", &self.is_already_verified);
        formatter.field("_request_id", &self._request_id);
        formatter.finish()
    }
}