amazonka-sesv2-2.0: Amazon Simple Email Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SESV2.Types.Contact

Description

 
Synopsis

Documentation

data Contact Source #

A contact is the end-user who is receiving the email.

See: newContact smart constructor.

Constructors

Contact' 

Fields

Instances

Instances details
FromJSON Contact Source # 
Instance details

Defined in Amazonka.SESV2.Types.Contact

Generic Contact Source # 
Instance details

Defined in Amazonka.SESV2.Types.Contact

Associated Types

type Rep Contact :: Type -> Type #

Methods

from :: Contact -> Rep Contact x #

to :: Rep Contact x -> Contact #

Read Contact Source # 
Instance details

Defined in Amazonka.SESV2.Types.Contact

Show Contact Source # 
Instance details

Defined in Amazonka.SESV2.Types.Contact

NFData Contact Source # 
Instance details

Defined in Amazonka.SESV2.Types.Contact

Methods

rnf :: Contact -> () #

Eq Contact Source # 
Instance details

Defined in Amazonka.SESV2.Types.Contact

Methods

(==) :: Contact -> Contact -> Bool #

(/=) :: Contact -> Contact -> Bool #

Hashable Contact Source # 
Instance details

Defined in Amazonka.SESV2.Types.Contact

Methods

hashWithSalt :: Int -> Contact -> Int #

hash :: Contact -> Int #

type Rep Contact Source # 
Instance details

Defined in Amazonka.SESV2.Types.Contact

type Rep Contact = D1 ('MetaData "Contact" "Amazonka.SESV2.Types.Contact" "amazonka-sesv2-2.0-KPRo1S1CRfP4bs5VKSgHvB" 'False) (C1 ('MetaCons "Contact'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "emailAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastUpdatedTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "topicDefaultPreferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TopicPreference])) :*: (S1 ('MetaSel ('Just "topicPreferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TopicPreference])) :*: S1 ('MetaSel ('Just "unsubscribeAll") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))))

newContact :: Contact Source #

Create a value of Contact with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:emailAddress:Contact', contact_emailAddress - The contact's email address.

$sel:lastUpdatedTimestamp:Contact', contact_lastUpdatedTimestamp - A timestamp noting the last time the contact's information was updated.

$sel:topicDefaultPreferences:Contact', contact_topicDefaultPreferences - The default topic preferences applied to the contact.

$sel:topicPreferences:Contact', contact_topicPreferences - The contact's preference for being opted-in to or opted-out of a topic.

$sel:unsubscribeAll:Contact', contact_unsubscribeAll - A boolean value status noting if the contact is unsubscribed from all contact list topics.

contact_emailAddress :: Lens' Contact (Maybe Text) Source #

The contact's email address.

contact_lastUpdatedTimestamp :: Lens' Contact (Maybe UTCTime) Source #

A timestamp noting the last time the contact's information was updated.

contact_topicDefaultPreferences :: Lens' Contact (Maybe [TopicPreference]) Source #

The default topic preferences applied to the contact.

contact_topicPreferences :: Lens' Contact (Maybe [TopicPreference]) Source #

The contact's preference for being opted-in to or opted-out of a topic.

contact_unsubscribeAll :: Lens' Contact (Maybe Bool) Source #

A boolean value status noting if the contact is unsubscribed from all contact list topics.