amazonka-lexv2-models-2.0: Amazon Lex Model Building V2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.LexV2Models.Types.Button

Description

 
Synopsis

Documentation

data Button Source #

Describes a button to use on a response card used to gather slot values from a user.

See: newButton smart constructor.

Constructors

Button' 

Fields

  • text :: Text

    The text that appears on the button. Use this to tell the user what value is returned when they choose this button.

  • value :: Text

    The value returned to Amazon Lex when the user chooses this button. This must be one of the slot values configured for the slot.

Instances

Instances details
FromJSON Button Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Button

ToJSON Button Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Button

Generic Button Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Button

Associated Types

type Rep Button :: Type -> Type #

Methods

from :: Button -> Rep Button x #

to :: Rep Button x -> Button #

Read Button Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Button

Show Button Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Button

NFData Button Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Button

Methods

rnf :: Button -> () #

Eq Button Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Button

Methods

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

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

Hashable Button Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Button

Methods

hashWithSalt :: Int -> Button -> Int #

hash :: Button -> Int #

type Rep Button Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.Button

type Rep Button = D1 ('MetaData "Button" "Amazonka.LexV2Models.Types.Button" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "Button'" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newButton Source #

Create a value of Button 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:text:Button', button_text - The text that appears on the button. Use this to tell the user what value is returned when they choose this button.

$sel:value:Button', button_value - The value returned to Amazon Lex when the user chooses this button. This must be one of the slot values configured for the slot.

button_text :: Lens' Button Text Source #

The text that appears on the button. Use this to tell the user what value is returned when they choose this button.

button_value :: Lens' Button Text Source #

The value returned to Amazon Lex when the user chooses this button. This must be one of the slot values configured for the slot.