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 |
Synopsis
- data Item = Item' {}
- newItem :: Item
- item_participantId :: Lens' Item (Maybe Text)
- item_absoluteTime :: Lens' Item (Maybe Text)
- item_attachments :: Lens' Item (Maybe [AttachmentItem])
- item_participantRole :: Lens' Item (Maybe ParticipantRole)
- item_content :: Lens' Item (Maybe Text)
- item_id :: Lens' Item (Maybe Text)
- item_displayName :: Lens' Item (Maybe Text)
- item_type :: Lens' Item (Maybe ChatItemType)
- item_contentType :: Lens' Item (Maybe Text)
Documentation
An item - message or event - that has been sent.
See: newItem
smart constructor.
Item' | |
|
Instances
Create a value of Item
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:participantId:Item'
, item_participantId
- The ID of the sender in the session.
$sel:absoluteTime:Item'
, item_absoluteTime
- The time when the message or event was sent.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
$sel:attachments:Item'
, item_attachments
- Provides information about the attachments.
$sel:participantRole:Item'
, item_participantRole
- The role of the sender. For example, is it a customer, agent, or system.
$sel:content:Item'
, item_content
- The content of the message or event.
$sel:id:Item'
, item_id
- The ID of the item.
$sel:displayName:Item'
, item_displayName
- The chat display name of the sender.
$sel:type':Item'
, item_type
- Type of the item: message or event.
$sel:contentType:Item'
, item_contentType
- The type of content of the item.
item_absoluteTime :: Lens' Item (Maybe Text) Source #
The time when the message or event was sent.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
item_attachments :: Lens' Item (Maybe [AttachmentItem]) Source #
Provides information about the attachments.
item_participantRole :: Lens' Item (Maybe ParticipantRole) Source #
The role of the sender. For example, is it a customer, agent, or system.