You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::LexModelBuildingService::Types::Message

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Message as input to an Aws::Client method, you can use a vanilla Hash:

{
  content_type: "PlainText", # required, accepts PlainText, SSML, CustomPayload
  content: "ContentString", # required
  group_number: 1,
}

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

Instance Attribute Summary collapse

Instance Attribute Details

#contentString

The text of the message.

Returns:

  • (String)

    The text of the message.

#content_typeString

The content type of the message string.

Possible values:

  • PlainText
  • SSML
  • CustomPayload

Returns:

  • (String)

    The content type of the message string.

#group_numberInteger

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.

Returns:

  • (Integer)

    Identifies the message group that the message belongs to.