Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Contact = Contact' {}
- newContact :: Contact
- contact_emailAddress :: Lens' Contact (Maybe Text)
- contact_lastUpdatedTimestamp :: Lens' Contact (Maybe UTCTime)
- contact_topicDefaultPreferences :: Lens' Contact (Maybe [TopicPreference])
- contact_topicPreferences :: Lens' Contact (Maybe [TopicPreference])
- contact_unsubscribeAll :: Lens' Contact (Maybe Bool)
Documentation
A contact is the end-user who is receiving the email.
See: newContact
smart constructor.
Contact' | |
|
Instances
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_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.