libZSservicesZSamazonka-lex-runtimeZSamazonka-lex-runtime
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.LexRuntime.Types.Button

Description

 
Synopsis

Documentation

data Button Source #

Represents an option to be shown on the client platform (Facebook, Slack, etc.)

See: newButton smart constructor.

Constructors

Button' 

Fields

  • text :: Text

    Text that is visible to the user on the button.

  • value :: Text

    The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."

Instances

Instances details
Eq Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

Methods

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

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

Read Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

Show Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

Generic Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

Associated Types

type Rep Button :: Type -> Type #

Methods

from :: Button -> Rep Button x #

to :: Rep Button x -> Button #

NFData Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

Methods

rnf :: Button -> () #

Hashable Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

Methods

hashWithSalt :: Int -> Button -> Int #

hash :: Button -> Int #

FromJSON Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

type Rep Button Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.Button

type Rep Button = D1 ('MetaData "Button" "Amazonka.LexRuntime.Types.Button" "libZSservicesZSamazonka-lex-runtimeZSamazonka-lex-runtime" '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 - Text that is visible to the user on the button.

$sel:value:Button', button_value - The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."

button_text :: Lens' Button Text Source #

Text that is visible to the user on the button.

button_value :: Lens' Button Text Source #

The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."