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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb

Overview

Note:

When making an API call, you may pass Message data as a 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)


2376
2377
2378
2379
2380
2381
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 2376

class Message < Struct.new(
  :content_type,
  :content,
  :group_number)
  include Aws::Structure
end

#content_typeString

The content type of the message string.

Returns:

  • (String)


2376
2377
2378
2379
2380
2381
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 2376

class Message < Struct.new(
  :content_type,
  :content,
  :group_number)
  include Aws::Structure
end

#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)


2376
2377
2378
2379
2380
2381
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 2376

class Message < Struct.new(
  :content_type,
  :content,
  :group_number)
  include Aws::Structure
end