aws_sdk_ses/operation/delete_verified_email_address/
_delete_verified_email_address_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <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>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DeleteVerifiedEmailAddressInput {
7    /// <p>An email address to be removed from the list of verified addresses.</p>
8    pub email_address: ::std::option::Option<::std::string::String>,
9}
10impl DeleteVerifiedEmailAddressInput {
11    /// <p>An email address to be removed from the list of verified addresses.</p>
12    pub fn email_address(&self) -> ::std::option::Option<&str> {
13        self.email_address.as_deref()
14    }
15}
16impl DeleteVerifiedEmailAddressInput {
17    /// Creates a new builder-style object to manufacture [`DeleteVerifiedEmailAddressInput`](crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressInput).
18    pub fn builder() -> crate::operation::delete_verified_email_address::builders::DeleteVerifiedEmailAddressInputBuilder {
19        crate::operation::delete_verified_email_address::builders::DeleteVerifiedEmailAddressInputBuilder::default()
20    }
21}
22
23/// A builder for [`DeleteVerifiedEmailAddressInput`](crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressInput).
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct DeleteVerifiedEmailAddressInputBuilder {
27    pub(crate) email_address: ::std::option::Option<::std::string::String>,
28}
29impl DeleteVerifiedEmailAddressInputBuilder {
30    /// <p>An email address to be removed from the list of verified addresses.</p>
31    /// This field is required.
32    pub fn email_address(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
33        self.email_address = ::std::option::Option::Some(input.into());
34        self
35    }
36    /// <p>An email address to be removed from the list of verified addresses.</p>
37    pub fn set_email_address(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
38        self.email_address = input;
39        self
40    }
41    /// <p>An email address to be removed from the list of verified addresses.</p>
42    pub fn get_email_address(&self) -> &::std::option::Option<::std::string::String> {
43        &self.email_address
44    }
45    /// Consumes the builder and constructs a [`DeleteVerifiedEmailAddressInput`](crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressInput).
46    pub fn build(
47        self,
48    ) -> ::std::result::Result<
49        crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressInput,
50        ::aws_smithy_types::error::operation::BuildError,
51    > {
52        ::std::result::Result::Ok(crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressInput {
53            email_address: self.email_address,
54        })
55    }
56}