amazonka-lex-runtime-2.0: Amazon Lex Runtime Service 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.LexRuntime.Types.SentimentResponse

Description

 
Synopsis

Documentation

data SentimentResponse Source #

The sentiment expressed in an utterance.

When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field structure contains the result of the analysis.

See: newSentimentResponse smart constructor.

Constructors

SentimentResponse' 

Fields

Instances

Instances details
FromJSON SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Generic SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Associated Types

type Rep SentimentResponse :: Type -> Type #

Read SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Show SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

NFData SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Methods

rnf :: SentimentResponse -> () #

Eq SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Hashable SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

type Rep SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

type Rep SentimentResponse = D1 ('MetaData "SentimentResponse" "Amazonka.LexRuntime.Types.SentimentResponse" "amazonka-lex-runtime-2.0-Hs8dyr5aBISIGW4JmDmUkW" 'False) (C1 ('MetaCons "SentimentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sentimentLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sentimentScore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newSentimentResponse :: SentimentResponse Source #

Create a value of SentimentResponse 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:sentimentLabel:SentimentResponse', sentimentResponse_sentimentLabel - The inferred sentiment that Amazon Comprehend has the highest confidence in.

$sel:sentimentScore:SentimentResponse', sentimentResponse_sentimentScore - The likelihood that the sentiment was correctly inferred.

sentimentResponse_sentimentLabel :: Lens' SentimentResponse (Maybe Text) Source #

The inferred sentiment that Amazon Comprehend has the highest confidence in.

sentimentResponse_sentimentScore :: Lens' SentimentResponse (Maybe Text) Source #

The likelihood that the sentiment was correctly inferred.