libZSservicesZSamazonka-sesv2ZSamazonka-sesv2
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq Contact Source # 
Instance details

Defined in Amazonka.SESV2.Types.Contact

Methods

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

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

Read Contact Source # 
Instance details

Defined in Amazonka.SESV2.Types.Contact

Show 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 #

NFData Contact Source # 
Instance details

Defined in Amazonka.SESV2.Types.Contact

Methods

rnf :: Contact -> () #

Hashable Contact Source # 
Instance details

Defined in Amazonka.SESV2.Types.Contact

Methods

hashWithSalt :: Int -> Contact -> Int #

hash :: Contact -> Int #

FromJSON Contact Source # 
Instance details

Defined in Amazonka.SESV2.Types.Contact

type Rep Contact Source # 
Instance details

Defined in Amazonka.SESV2.Types.Contact

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

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:unsubscribeAll:Contact', contact_unsubscribeAll - A boolean value status noting if the contact is unsubscribed from all contact list topics.

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

$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:topicPreferences:Contact', contact_topicPreferences - 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.

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

The default topic preferences applied to the contact.

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_topicPreferences :: Lens' Contact (Maybe [TopicPreference]) Source #

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