amazonka-connect-2.0: Amazon Connect Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Connect.Types.ChatMessage

Description

 
Synopsis

Documentation

data ChatMessage Source #

A chat message.

See: newChatMessage smart constructor.

Constructors

ChatMessage' 

Fields

  • contentType :: Text

    The type of the content. Supported types are text/plain, text/markdown, and application/json.

  • content :: Text

    The content of the chat message.

    • For text/plain and text/markdown, the Length Constraints are Minimum of 1, Maximum of 1024.
    • For application/json, the Length Constraints are Minimum of 1, Maximum of 12000.

Instances

Instances details
ToJSON ChatMessage Source # 
Instance details

Defined in Amazonka.Connect.Types.ChatMessage

Generic ChatMessage Source # 
Instance details

Defined in Amazonka.Connect.Types.ChatMessage

Associated Types

type Rep ChatMessage :: Type -> Type #

Read ChatMessage Source # 
Instance details

Defined in Amazonka.Connect.Types.ChatMessage

Show ChatMessage Source # 
Instance details

Defined in Amazonka.Connect.Types.ChatMessage

NFData ChatMessage Source # 
Instance details

Defined in Amazonka.Connect.Types.ChatMessage

Methods

rnf :: ChatMessage -> () #

Eq ChatMessage Source # 
Instance details

Defined in Amazonka.Connect.Types.ChatMessage

Hashable ChatMessage Source # 
Instance details

Defined in Amazonka.Connect.Types.ChatMessage

type Rep ChatMessage Source # 
Instance details

Defined in Amazonka.Connect.Types.ChatMessage

type Rep ChatMessage = D1 ('MetaData "ChatMessage" "Amazonka.Connect.Types.ChatMessage" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "ChatMessage'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newChatMessage Source #

Create a value of ChatMessage 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:contentType:ChatMessage', chatMessage_contentType - The type of the content. Supported types are text/plain, text/markdown, and application/json.

$sel:content:ChatMessage', chatMessage_content - The content of the chat message.

  • For text/plain and text/markdown, the Length Constraints are Minimum of 1, Maximum of 1024.
  • For application/json, the Length Constraints are Minimum of 1, Maximum of 12000.

chatMessage_contentType :: Lens' ChatMessage Text Source #

The type of the content. Supported types are text/plain, text/markdown, and application/json.

chatMessage_content :: Lens' ChatMessage Text Source #

The content of the chat message.

  • For text/plain and text/markdown, the Length Constraints are Minimum of 1, Maximum of 1024.
  • For application/json, the Length Constraints are Minimum of 1, Maximum of 12000.