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

Description

 
Synopsis

Documentation

data GenericAttachment Source #

Represents an option rendered to the user when a prompt is shown. It could be an image, a button, a link, or text.

See: newGenericAttachment smart constructor.

Constructors

GenericAttachment' 

Fields

Instances

Instances details
Eq GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

Read GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

Show GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

Generic GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

Associated Types

type Rep GenericAttachment :: Type -> Type #

NFData GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

Methods

rnf :: GenericAttachment -> () #

Hashable GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

FromJSON GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

type Rep GenericAttachment Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.GenericAttachment

type Rep GenericAttachment = D1 ('MetaData "GenericAttachment" "Amazonka.LexRuntime.Types.GenericAttachment" "libZSservicesZSamazonka-lex-runtimeZSamazonka-lex-runtime" 'False) (C1 ('MetaCons "GenericAttachment'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "buttons") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Button])) :*: S1 ('MetaSel ('Just "subTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "imageUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "attachmentLinkUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newGenericAttachment :: GenericAttachment Source #

Create a value of GenericAttachment 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:buttons:GenericAttachment', genericAttachment_buttons - The list of options to show to the user.

$sel:subTitle:GenericAttachment', genericAttachment_subTitle - The subtitle shown below the title.

$sel:imageUrl:GenericAttachment', genericAttachment_imageUrl - The URL of an image that is displayed to the user.

$sel:attachmentLinkUrl:GenericAttachment', genericAttachment_attachmentLinkUrl - The URL of an attachment to the response card.

$sel:title:GenericAttachment', genericAttachment_title - The title of the option.

genericAttachment_buttons :: Lens' GenericAttachment (Maybe [Button]) Source #

The list of options to show to the user.

genericAttachment_subTitle :: Lens' GenericAttachment (Maybe Text) Source #

The subtitle shown below the title.

genericAttachment_imageUrl :: Lens' GenericAttachment (Maybe Text) Source #

The URL of an image that is displayed to the user.

genericAttachment_attachmentLinkUrl :: Lens' GenericAttachment (Maybe Text) Source #

The URL of an attachment to the response card.