libZSservicesZSamazonka-connectparticipantZSamazonka-connectparticipant
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.ConnectParticipant.Types.Item

Description

 
Synopsis

Documentation

data Item Source #

An item - message or event - that has been sent.

See: newItem smart constructor.

Constructors

Item' 

Fields

Instances

Instances details
Eq Item Source # 
Instance details

Defined in Amazonka.ConnectParticipant.Types.Item

Methods

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

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

Read Item Source # 
Instance details

Defined in Amazonka.ConnectParticipant.Types.Item

Show Item Source # 
Instance details

Defined in Amazonka.ConnectParticipant.Types.Item

Methods

showsPrec :: Int -> Item -> ShowS #

show :: Item -> String #

showList :: [Item] -> ShowS #

Generic Item Source # 
Instance details

Defined in Amazonka.ConnectParticipant.Types.Item

Associated Types

type Rep Item :: Type -> Type #

Methods

from :: Item -> Rep Item x #

to :: Rep Item x -> Item #

NFData Item Source # 
Instance details

Defined in Amazonka.ConnectParticipant.Types.Item

Methods

rnf :: Item -> () #

Hashable Item Source # 
Instance details

Defined in Amazonka.ConnectParticipant.Types.Item

Methods

hashWithSalt :: Int -> Item -> Int #

hash :: Item -> Int #

FromJSON Item Source # 
Instance details

Defined in Amazonka.ConnectParticipant.Types.Item

type Rep Item Source # 
Instance details

Defined in Amazonka.ConnectParticipant.Types.Item

newItem :: Item Source #

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_participantId :: Lens' Item (Maybe Text) Source #

The ID of the sender in the session.

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.

item_content :: Lens' Item (Maybe Text) Source #

The content of the message or event.

item_id :: Lens' Item (Maybe Text) Source #

The ID of the item.

item_displayName :: Lens' Item (Maybe Text) Source #

The chat display name of the sender.

item_type :: Lens' Item (Maybe ChatItemType) Source #

Type of the item: message or event.

item_contentType :: Lens' Item (Maybe Text) Source #

The type of content of the item.