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 Message = Message' {}
- newMessage :: ContentType -> Text -> Message
- message_groupNumber :: Lens' Message (Maybe Natural)
- message_contentType :: Lens' Message ContentType
- message_content :: Lens' Message Text
Documentation
The message object that provides the message text and its type.
See: newMessage
smart constructor.
Message' | |
|
Instances
Eq Message Source # | |
Read Message Source # | |
Show Message Source # | |
Generic Message Source # | |
NFData Message Source # | |
Defined in Amazonka.LexModels.Types.Message | |
Hashable Message Source # | |
Defined in Amazonka.LexModels.Types.Message | |
ToJSON Message Source # | |
Defined in Amazonka.LexModels.Types.Message | |
FromJSON Message Source # | |
type Rep Message Source # | |
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)))) |
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.