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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Represents a request to create a custom verification email template.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateCustomVerificationEmailTemplateInput {
    /// <p>The name of the custom verification email template.</p>
    pub template_name: ::std::option::Option<::std::string::String>,
    /// <p>The email address that the custom verification email is sent from.</p>
    pub from_email_address: ::std::option::Option<::std::string::String>,
    /// <p>The subject line of the custom verification email.</p>
    pub template_subject: ::std::option::Option<::std::string::String>,
    /// <p>The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/dg/creating-identities.html#send-email-verify-address-custom">Custom Verification Email Frequently Asked Questions</a> in the <i>Amazon SES Developer Guide</i>.</p>
    pub template_content: ::std::option::Option<::std::string::String>,
    /// <p>The URL that the recipient of the verification email is sent to if his or her address is successfully verified.</p>
    pub success_redirection_url: ::std::option::Option<::std::string::String>,
    /// <p>The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.</p>
    pub failure_redirection_url: ::std::option::Option<::std::string::String>,
}
impl CreateCustomVerificationEmailTemplateInput {
    /// <p>The name of the custom verification email template.</p>
    pub fn template_name(&self) -> ::std::option::Option<&str> {
        self.template_name.as_deref()
    }
    /// <p>The email address that the custom verification email is sent from.</p>
    pub fn from_email_address(&self) -> ::std::option::Option<&str> {
        self.from_email_address.as_deref()
    }
    /// <p>The subject line of the custom verification email.</p>
    pub fn template_subject(&self) -> ::std::option::Option<&str> {
        self.template_subject.as_deref()
    }
    /// <p>The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/dg/creating-identities.html#send-email-verify-address-custom">Custom Verification Email Frequently Asked Questions</a> in the <i>Amazon SES Developer Guide</i>.</p>
    pub fn template_content(&self) -> ::std::option::Option<&str> {
        self.template_content.as_deref()
    }
    /// <p>The URL that the recipient of the verification email is sent to if his or her address is successfully verified.</p>
    pub fn success_redirection_url(&self) -> ::std::option::Option<&str> {
        self.success_redirection_url.as_deref()
    }
    /// <p>The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.</p>
    pub fn failure_redirection_url(&self) -> ::std::option::Option<&str> {
        self.failure_redirection_url.as_deref()
    }
}
impl CreateCustomVerificationEmailTemplateInput {
    /// Creates a new builder-style object to manufacture [`CreateCustomVerificationEmailTemplateInput`](crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateInput).
    pub fn builder() -> crate::operation::create_custom_verification_email_template::builders::CreateCustomVerificationEmailTemplateInputBuilder {
        crate::operation::create_custom_verification_email_template::builders::CreateCustomVerificationEmailTemplateInputBuilder::default()
    }
}

/// A builder for [`CreateCustomVerificationEmailTemplateInput`](crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct CreateCustomVerificationEmailTemplateInputBuilder {
    pub(crate) template_name: ::std::option::Option<::std::string::String>,
    pub(crate) from_email_address: ::std::option::Option<::std::string::String>,
    pub(crate) template_subject: ::std::option::Option<::std::string::String>,
    pub(crate) template_content: ::std::option::Option<::std::string::String>,
    pub(crate) success_redirection_url: ::std::option::Option<::std::string::String>,
    pub(crate) failure_redirection_url: ::std::option::Option<::std::string::String>,
}
impl CreateCustomVerificationEmailTemplateInputBuilder {
    /// <p>The name of the custom verification email template.</p>
    /// This field is required.
    pub fn template_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.template_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the custom verification email template.</p>
    pub fn set_template_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.template_name = input;
        self
    }
    /// <p>The name of the custom verification email template.</p>
    pub fn get_template_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.template_name
    }
    /// <p>The email address that the custom verification email is sent from.</p>
    /// This field is required.
    pub fn from_email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.from_email_address = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The email address that the custom verification email is sent from.</p>
    pub fn set_from_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.from_email_address = input;
        self
    }
    /// <p>The email address that the custom verification email is sent from.</p>
    pub fn get_from_email_address(&self) -> &::std::option::Option<::std::string::String> {
        &self.from_email_address
    }
    /// <p>The subject line of the custom verification email.</p>
    /// This field is required.
    pub fn template_subject(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.template_subject = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The subject line of the custom verification email.</p>
    pub fn set_template_subject(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.template_subject = input;
        self
    }
    /// <p>The subject line of the custom verification email.</p>
    pub fn get_template_subject(&self) -> &::std::option::Option<::std::string::String> {
        &self.template_subject
    }
    /// <p>The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/dg/creating-identities.html#send-email-verify-address-custom">Custom Verification Email Frequently Asked Questions</a> in the <i>Amazon SES Developer Guide</i>.</p>
    /// This field is required.
    pub fn template_content(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.template_content = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/dg/creating-identities.html#send-email-verify-address-custom">Custom Verification Email Frequently Asked Questions</a> in the <i>Amazon SES Developer Guide</i>.</p>
    pub fn set_template_content(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.template_content = input;
        self
    }
    /// <p>The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/dg/creating-identities.html#send-email-verify-address-custom">Custom Verification Email Frequently Asked Questions</a> in the <i>Amazon SES Developer Guide</i>.</p>
    pub fn get_template_content(&self) -> &::std::option::Option<::std::string::String> {
        &self.template_content
    }
    /// <p>The URL that the recipient of the verification email is sent to if his or her address is successfully verified.</p>
    /// This field is required.
    pub fn success_redirection_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.success_redirection_url = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The URL that the recipient of the verification email is sent to if his or her address is successfully verified.</p>
    pub fn set_success_redirection_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.success_redirection_url = input;
        self
    }
    /// <p>The URL that the recipient of the verification email is sent to if his or her address is successfully verified.</p>
    pub fn get_success_redirection_url(&self) -> &::std::option::Option<::std::string::String> {
        &self.success_redirection_url
    }
    /// <p>The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.</p>
    /// This field is required.
    pub fn failure_redirection_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.failure_redirection_url = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.</p>
    pub fn set_failure_redirection_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.failure_redirection_url = input;
        self
    }
    /// <p>The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.</p>
    pub fn get_failure_redirection_url(&self) -> &::std::option::Option<::std::string::String> {
        &self.failure_redirection_url
    }
    /// Consumes the builder and constructs a [`CreateCustomVerificationEmailTemplateInput`](crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(
            crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateInput {
                template_name: self.template_name,
                from_email_address: self.from_email_address,
                template_subject: self.template_subject,
                template_content: self.template_content,
                success_redirection_url: self.success_redirection_url,
                failure_redirection_url: self.failure_redirection_url,
            },
        )
    }
}