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.Statement

Description

 
Synopsis

Documentation

data Statement Source #

A collection of messages that convey information to the user. At runtime, Amazon Lex selects the message to convey.

See: newStatement smart constructor.

Constructors

Statement' 

Fields

  • responseCard :: Maybe Text

    At runtime, if the client is using the PostText API, Amazon Lex includes the response card in the response. It substitutes all of the session attributes and slot values for placeholders in the response card.

  • messages :: NonEmpty Message

    A collection of message objects.

Instances

Instances details
Eq Statement Source # 
Instance details

Defined in Amazonka.LexModels.Types.Statement

Read Statement Source # 
Instance details

Defined in Amazonka.LexModels.Types.Statement

Show Statement Source # 
Instance details

Defined in Amazonka.LexModels.Types.Statement

Generic Statement Source # 
Instance details

Defined in Amazonka.LexModels.Types.Statement

Associated Types

type Rep Statement :: Type -> Type #

NFData Statement Source # 
Instance details

Defined in Amazonka.LexModels.Types.Statement

Methods

rnf :: Statement -> () #

Hashable Statement Source # 
Instance details

Defined in Amazonka.LexModels.Types.Statement

ToJSON Statement Source # 
Instance details

Defined in Amazonka.LexModels.Types.Statement

FromJSON Statement Source # 
Instance details

Defined in Amazonka.LexModels.Types.Statement

type Rep Statement Source # 
Instance details

Defined in Amazonka.LexModels.Types.Statement

type Rep Statement = D1 ('MetaData "Statement" "Amazonka.LexModels.Types.Statement" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "Statement'" 'PrefixI 'True) (S1 ('MetaSel ('Just "responseCard") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Message))))

newStatement Source #

Create a value of Statement 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:responseCard:Statement', statement_responseCard - At runtime, if the client is using the PostText API, Amazon Lex includes the response card in the response. It substitutes all of the session attributes and slot values for placeholders in the response card.

$sel:messages:Statement', statement_messages - A collection of message objects.

statement_responseCard :: Lens' Statement (Maybe Text) Source #

At runtime, if the client is using the PostText API, Amazon Lex includes the response card in the response. It substitutes all of the session attributes and slot values for placeholders in the response card.

statement_messages :: Lens' Statement (NonEmpty Message) Source #

A collection of message objects.