{-# 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.SuppressedDestinationAttributes -- 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.SuppressedDestinationAttributes 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 -- | An object that contains additional attributes that are related an email -- address that is on the suppression list for your account. -- -- /See:/ 'newSuppressedDestinationAttributes' smart constructor. data SuppressedDestinationAttributes = SuppressedDestinationAttributes' { -- | A unique identifier that\'s generated when an email address is added to -- the suppression list for your account. feedbackId :: Prelude.Maybe Prelude.Text, -- | The unique identifier of the email message that caused the email address -- to be added to the suppression list for your account. messageId :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'SuppressedDestinationAttributes' 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: -- -- 'feedbackId', 'suppressedDestinationAttributes_feedbackId' - A unique identifier that\'s generated when an email address is added to -- the suppression list for your account. -- -- 'messageId', 'suppressedDestinationAttributes_messageId' - The unique identifier of the email message that caused the email address -- to be added to the suppression list for your account. newSuppressedDestinationAttributes :: SuppressedDestinationAttributes newSuppressedDestinationAttributes = SuppressedDestinationAttributes' { feedbackId = Prelude.Nothing, messageId = Prelude.Nothing } -- | A unique identifier that\'s generated when an email address is added to -- the suppression list for your account. suppressedDestinationAttributes_feedbackId :: Lens.Lens' SuppressedDestinationAttributes (Prelude.Maybe Prelude.Text) suppressedDestinationAttributes_feedbackId = Lens.lens (\SuppressedDestinationAttributes' {feedbackId} -> feedbackId) (\s@SuppressedDestinationAttributes' {} a -> s {feedbackId = a} :: SuppressedDestinationAttributes) -- | The unique identifier of the email message that caused the email address -- to be added to the suppression list for your account. suppressedDestinationAttributes_messageId :: Lens.Lens' SuppressedDestinationAttributes (Prelude.Maybe Prelude.Text) suppressedDestinationAttributes_messageId = Lens.lens (\SuppressedDestinationAttributes' {messageId} -> messageId) (\s@SuppressedDestinationAttributes' {} a -> s {messageId = a} :: SuppressedDestinationAttributes) instance Data.FromJSON SuppressedDestinationAttributes where parseJSON = Data.withObject "SuppressedDestinationAttributes" ( \x -> SuppressedDestinationAttributes' Prelude.<$> (x Data..:? "FeedbackId") Prelude.<*> (x Data..:? "MessageId") ) instance Prelude.Hashable SuppressedDestinationAttributes where hashWithSalt _salt SuppressedDestinationAttributes' {..} = _salt `Prelude.hashWithSalt` feedbackId `Prelude.hashWithSalt` messageId instance Prelude.NFData SuppressedDestinationAttributes where rnf SuppressedDestinationAttributes' {..} = Prelude.rnf feedbackId `Prelude.seq` Prelude.rnf messageId