{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.SESV2.Types.CustomVerificationEmailTemplateMetadata -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.SESV2.Types.CustomVerificationEmailTemplateMetadata where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude -- | Contains information about a custom verification email template. -- -- /See:/ 'newCustomVerificationEmailTemplateMetadata' smart constructor. data CustomVerificationEmailTemplateMetadata = CustomVerificationEmailTemplateMetadata' { -- | The URL that the recipient of the verification email is sent to if his -- or her address is not successfully verified. failureRedirectionURL :: Prelude.Maybe Prelude.Text, -- | The email address that the custom verification email is sent from. fromEmailAddress :: Prelude.Maybe Prelude.Text, -- | The URL that the recipient of the verification email is sent to if his -- or her address is successfully verified. successRedirectionURL :: Prelude.Maybe Prelude.Text, -- | The name of the custom verification email template. templateName :: Prelude.Maybe Prelude.Text, -- | The subject line of the custom verification email. templateSubject :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'CustomVerificationEmailTemplateMetadata' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'failureRedirectionURL', 'customVerificationEmailTemplateMetadata_failureRedirectionURL' - The URL that the recipient of the verification email is sent to if his -- or her address is not successfully verified. -- -- 'fromEmailAddress', 'customVerificationEmailTemplateMetadata_fromEmailAddress' - The email address that the custom verification email is sent from. -- -- 'successRedirectionURL', 'customVerificationEmailTemplateMetadata_successRedirectionURL' - The URL that the recipient of the verification email is sent to if his -- or her address is successfully verified. -- -- 'templateName', 'customVerificationEmailTemplateMetadata_templateName' - The name of the custom verification email template. -- -- 'templateSubject', 'customVerificationEmailTemplateMetadata_templateSubject' - The subject line of the custom verification email. newCustomVerificationEmailTemplateMetadata :: CustomVerificationEmailTemplateMetadata newCustomVerificationEmailTemplateMetadata = CustomVerificationEmailTemplateMetadata' { failureRedirectionURL = Prelude.Nothing, fromEmailAddress = Prelude.Nothing, successRedirectionURL = Prelude.Nothing, templateName = Prelude.Nothing, templateSubject = Prelude.Nothing } -- | The URL that the recipient of the verification email is sent to if his -- or her address is not successfully verified. customVerificationEmailTemplateMetadata_failureRedirectionURL :: Lens.Lens' CustomVerificationEmailTemplateMetadata (Prelude.Maybe Prelude.Text) customVerificationEmailTemplateMetadata_failureRedirectionURL = Lens.lens (\CustomVerificationEmailTemplateMetadata' {failureRedirectionURL} -> failureRedirectionURL) (\s@CustomVerificationEmailTemplateMetadata' {} a -> s {failureRedirectionURL = a} :: CustomVerificationEmailTemplateMetadata) -- | The email address that the custom verification email is sent from. customVerificationEmailTemplateMetadata_fromEmailAddress :: Lens.Lens' CustomVerificationEmailTemplateMetadata (Prelude.Maybe Prelude.Text) customVerificationEmailTemplateMetadata_fromEmailAddress = Lens.lens (\CustomVerificationEmailTemplateMetadata' {fromEmailAddress} -> fromEmailAddress) (\s@CustomVerificationEmailTemplateMetadata' {} a -> s {fromEmailAddress = a} :: CustomVerificationEmailTemplateMetadata) -- | The URL that the recipient of the verification email is sent to if his -- or her address is successfully verified. customVerificationEmailTemplateMetadata_successRedirectionURL :: Lens.Lens' CustomVerificationEmailTemplateMetadata (Prelude.Maybe Prelude.Text) customVerificationEmailTemplateMetadata_successRedirectionURL = Lens.lens (\CustomVerificationEmailTemplateMetadata' {successRedirectionURL} -> successRedirectionURL) (\s@CustomVerificationEmailTemplateMetadata' {} a -> s {successRedirectionURL = a} :: CustomVerificationEmailTemplateMetadata) -- | The name of the custom verification email template. customVerificationEmailTemplateMetadata_templateName :: Lens.Lens' CustomVerificationEmailTemplateMetadata (Prelude.Maybe Prelude.Text) customVerificationEmailTemplateMetadata_templateName = Lens.lens (\CustomVerificationEmailTemplateMetadata' {templateName} -> templateName) (\s@CustomVerificationEmailTemplateMetadata' {} a -> s {templateName = a} :: CustomVerificationEmailTemplateMetadata) -- | The subject line of the custom verification email. customVerificationEmailTemplateMetadata_templateSubject :: Lens.Lens' CustomVerificationEmailTemplateMetadata (Prelude.Maybe Prelude.Text) customVerificationEmailTemplateMetadata_templateSubject = Lens.lens (\CustomVerificationEmailTemplateMetadata' {templateSubject} -> templateSubject) (\s@CustomVerificationEmailTemplateMetadata' {} a -> s {templateSubject = a} :: CustomVerificationEmailTemplateMetadata) instance Data.FromJSON CustomVerificationEmailTemplateMetadata where parseJSON = Data.withObject "CustomVerificationEmailTemplateMetadata" ( \x -> CustomVerificationEmailTemplateMetadata' Prelude.<$> (x Data..:? "FailureRedirectionURL") Prelude.<*> (x Data..:? "FromEmailAddress") Prelude.<*> (x Data..:? "SuccessRedirectionURL") Prelude.<*> (x Data..:? "TemplateName") Prelude.<*> (x Data..:? "TemplateSubject") ) instance Prelude.Hashable CustomVerificationEmailTemplateMetadata where hashWithSalt _salt CustomVerificationEmailTemplateMetadata' {..} = _salt `Prelude.hashWithSalt` failureRedirectionURL `Prelude.hashWithSalt` fromEmailAddress `Prelude.hashWithSalt` successRedirectionURL `Prelude.hashWithSalt` templateName `Prelude.hashWithSalt` templateSubject instance Prelude.NFData CustomVerificationEmailTemplateMetadata where rnf CustomVerificationEmailTemplateMetadata' {..} = Prelude.rnf failureRedirectionURL `Prelude.seq` Prelude.rnf fromEmailAddress `Prelude.seq` Prelude.rnf successRedirectionURL `Prelude.seq` Prelude.rnf templateName `Prelude.seq` Prelude.rnf templateSubject