Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns a contact from a contact list.
Synopsis
- data GetContact = GetContact' {}
- newGetContact :: Text -> Text -> GetContact
- getContact_contactListName :: Lens' GetContact Text
- getContact_emailAddress :: Lens' GetContact Text
- data GetContactResponse = GetContactResponse' {}
- newGetContactResponse :: Int -> GetContactResponse
- getContactResponse_unsubscribeAll :: Lens' GetContactResponse (Maybe Bool)
- getContactResponse_attributesData :: Lens' GetContactResponse (Maybe Text)
- getContactResponse_topicDefaultPreferences :: Lens' GetContactResponse (Maybe [TopicPreference])
- getContactResponse_emailAddress :: Lens' GetContactResponse (Maybe Text)
- getContactResponse_contactListName :: Lens' GetContactResponse (Maybe Text)
- getContactResponse_createdTimestamp :: Lens' GetContactResponse (Maybe UTCTime)
- getContactResponse_lastUpdatedTimestamp :: Lens' GetContactResponse (Maybe UTCTime)
- getContactResponse_topicPreferences :: Lens' GetContactResponse (Maybe [TopicPreference])
- getContactResponse_httpStatus :: Lens' GetContactResponse Int
Creating a Request
data GetContact Source #
See: newGetContact
smart constructor.
GetContact' | |
|
Instances
Create a value of GetContact
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:contactListName:GetContact'
, getContact_contactListName
- The name of the contact list to which the contact belongs.
$sel:emailAddress:GetContact'
, getContact_emailAddress
- The contact's email addres.
Request Lenses
getContact_contactListName :: Lens' GetContact Text Source #
The name of the contact list to which the contact belongs.
getContact_emailAddress :: Lens' GetContact Text Source #
The contact's email addres.
Destructuring the Response
data GetContactResponse Source #
See: newGetContactResponse
smart constructor.
GetContactResponse' | |
|
Instances
newGetContactResponse Source #
Create a value of GetContactResponse
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:GetContactResponse'
, getContactResponse_unsubscribeAll
- A boolean value status noting if the contact is unsubscribed from all
contact list topics.
$sel:attributesData:GetContactResponse'
, getContactResponse_attributesData
- The attribute data attached to a contact.
$sel:topicDefaultPreferences:GetContactResponse'
, getContactResponse_topicDefaultPreferences
- The default topic preferences applied to the contact.
$sel:emailAddress:GetContact'
, getContactResponse_emailAddress
- The contact's email addres.
$sel:contactListName:GetContact'
, getContactResponse_contactListName
- The name of the contact list to which the contact belongs.
$sel:createdTimestamp:GetContactResponse'
, getContactResponse_createdTimestamp
- A timestamp noting when the contact was created.
$sel:lastUpdatedTimestamp:GetContactResponse'
, getContactResponse_lastUpdatedTimestamp
- A timestamp noting the last time the contact's information was updated.
$sel:topicPreferences:GetContactResponse'
, getContactResponse_topicPreferences
- The contact's preference for being opted-in to or opted-out of a
topic.>
$sel:httpStatus:GetContactResponse'
, getContactResponse_httpStatus
- The response's http status code.
Response Lenses
getContactResponse_unsubscribeAll :: Lens' GetContactResponse (Maybe Bool) Source #
A boolean value status noting if the contact is unsubscribed from all contact list topics.
getContactResponse_attributesData :: Lens' GetContactResponse (Maybe Text) Source #
The attribute data attached to a contact.
getContactResponse_topicDefaultPreferences :: Lens' GetContactResponse (Maybe [TopicPreference]) Source #
The default topic preferences applied to the contact.
getContactResponse_emailAddress :: Lens' GetContactResponse (Maybe Text) Source #
The contact's email addres.
getContactResponse_contactListName :: Lens' GetContactResponse (Maybe Text) Source #
The name of the contact list to which the contact belongs.
getContactResponse_createdTimestamp :: Lens' GetContactResponse (Maybe UTCTime) Source #
A timestamp noting when the contact was created.
getContactResponse_lastUpdatedTimestamp :: Lens' GetContactResponse (Maybe UTCTime) Source #
A timestamp noting the last time the contact's information was updated.
getContactResponse_topicPreferences :: Lens' GetContactResponse (Maybe [TopicPreference]) Source #
The contact's preference for being opted-in to or opted-out of a topic.>
getContactResponse_httpStatus :: Lens' GetContactResponse Int Source #
The response's http status code.