AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Interpretation.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/lexv2-runtime/model/ConfidenceScore.h>
9#include <aws/lexv2-runtime/model/SentimentResponse.h>
10#include <aws/lexv2-runtime/model/Intent.h>
11#include <aws/lexv2-runtime/model/InterpretationSource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LexRuntimeV2
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_LEXRUNTIMEV2_API Interpretation() = default;
40 AWS_LEXRUNTIMEV2_API Interpretation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXRUNTIMEV2_API Interpretation& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
53 inline const ConfidenceScore& GetNluConfidence() const { return m_nluConfidence; }
54 inline bool NluConfidenceHasBeenSet() const { return m_nluConfidenceHasBeenSet; }
55 template<typename NluConfidenceT = ConfidenceScore>
56 void SetNluConfidence(NluConfidenceT&& value) { m_nluConfidenceHasBeenSet = true; m_nluConfidence = std::forward<NluConfidenceT>(value); }
57 template<typename NluConfidenceT = ConfidenceScore>
58 Interpretation& WithNluConfidence(NluConfidenceT&& value) { SetNluConfidence(std::forward<NluConfidenceT>(value)); return *this;}
60
62
67 inline const SentimentResponse& GetSentimentResponse() const { return m_sentimentResponse; }
68 inline bool SentimentResponseHasBeenSet() const { return m_sentimentResponseHasBeenSet; }
69 template<typename SentimentResponseT = SentimentResponse>
70 void SetSentimentResponse(SentimentResponseT&& value) { m_sentimentResponseHasBeenSet = true; m_sentimentResponse = std::forward<SentimentResponseT>(value); }
71 template<typename SentimentResponseT = SentimentResponse>
72 Interpretation& WithSentimentResponse(SentimentResponseT&& value) { SetSentimentResponse(std::forward<SentimentResponseT>(value)); return *this;}
74
76
80 inline const Intent& GetIntent() const { return m_intent; }
81 inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; }
82 template<typename IntentT = Intent>
83 void SetIntent(IntentT&& value) { m_intentHasBeenSet = true; m_intent = std::forward<IntentT>(value); }
84 template<typename IntentT = Intent>
85 Interpretation& WithIntent(IntentT&& value) { SetIntent(std::forward<IntentT>(value)); return *this;}
87
89
92 inline InterpretationSource GetInterpretationSource() const { return m_interpretationSource; }
93 inline bool InterpretationSourceHasBeenSet() const { return m_interpretationSourceHasBeenSet; }
94 inline void SetInterpretationSource(InterpretationSource value) { m_interpretationSourceHasBeenSet = true; m_interpretationSource = value; }
97 private:
98
99 ConfidenceScore m_nluConfidence;
100 bool m_nluConfidenceHasBeenSet = false;
101
102 SentimentResponse m_sentimentResponse;
103 bool m_sentimentResponseHasBeenSet = false;
104
105 Intent m_intent;
106 bool m_intentHasBeenSet = false;
107
109 bool m_interpretationSourceHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace LexRuntimeV2
114} // namespace Aws
AWS_LEXRUNTIMEV2_API Interpretation()=default
Interpretation & WithSentimentResponse(SentimentResponseT &&value)
void SetNluConfidence(NluConfidenceT &&value)
void SetInterpretationSource(InterpretationSource value)
Interpretation & WithNluConfidence(NluConfidenceT &&value)
void SetSentimentResponse(SentimentResponseT &&value)
const ConfidenceScore & GetNluConfidence() const
AWS_LEXRUNTIMEV2_API Interpretation & operator=(Aws::Utils::Json::JsonView jsonValue)
InterpretationSource GetInterpretationSource() const
const SentimentResponse & GetSentimentResponse() const
Interpretation & WithInterpretationSource(InterpretationSource value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMEV2_API Interpretation(Aws::Utils::Json::JsonView jsonValue)
Interpretation & WithIntent(IntentT &&value)
Aws::Utils::Json::JsonValue JsonValue