libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models
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.LexModels.Types.Message

Description

 
Synopsis

Documentation

data Message Source #

The message object that provides the message text and its type.

See: newMessage smart constructor.

Constructors

Message' 

Fields

  • groupNumber :: Maybe Natural

    Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response.

  • contentType :: ContentType

    The content type of the message string.

  • content :: Text

    The text of the message.

Instances

Instances details
Eq Message Source # 
Instance details

Defined in Amazonka.LexModels.Types.Message

Methods

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

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

Read Message Source # 
Instance details

Defined in Amazonka.LexModels.Types.Message

Show Message Source # 
Instance details

Defined in Amazonka.LexModels.Types.Message

Generic Message Source # 
Instance details

Defined in Amazonka.LexModels.Types.Message

Associated Types

type Rep Message :: Type -> Type #

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

NFData Message Source # 
Instance details

Defined in Amazonka.LexModels.Types.Message

Methods

rnf :: Message -> () #

Hashable Message Source # 
Instance details

Defined in Amazonka.LexModels.Types.Message

Methods

hashWithSalt :: Int -> Message -> Int #

hash :: Message -> Int #

ToJSON Message Source # 
Instance details

Defined in Amazonka.LexModels.Types.Message

FromJSON Message Source # 
Instance details

Defined in Amazonka.LexModels.Types.Message

type Rep Message Source # 
Instance details

Defined in Amazonka.LexModels.Types.Message

type Rep Message = D1 ('MetaData "Message" "Amazonka.LexModels.Types.Message" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "Message'" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ContentType) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newMessage Source #

Create a value of Message 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:groupNumber:Message', message_groupNumber - Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response.

$sel:contentType:Message', message_contentType - The content type of the message string.

$sel:content:Message', message_content - The text of the message.

message_groupNumber :: Lens' Message (Maybe Natural) Source #

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response.

message_contentType :: Lens' Message ContentType Source #

The content type of the message string.

message_content :: Lens' Message Text Source #

The text of the message.