AWS SDK for C++

AWS SDK for C++ Version 1.11.763

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/Intent.h>
10#include <aws/lexv2-runtime/model/InterpretationSource.h>
11#include <aws/lexv2-runtime/model/SentimentResponse.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexRuntimeV2 {
23namespace Model {
24
33 public:
34 AWS_LEXRUNTIMEV2_API Interpretation() = default;
35 AWS_LEXRUNTIMEV2_API Interpretation(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXRUNTIMEV2_API Interpretation& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
47 inline const ConfidenceScore& GetNluConfidence() const { return m_nluConfidence; }
48 inline bool NluConfidenceHasBeenSet() const { return m_nluConfidenceHasBeenSet; }
49 template <typename NluConfidenceT = ConfidenceScore>
50 void SetNluConfidence(NluConfidenceT&& value) {
51 m_nluConfidenceHasBeenSet = true;
52 m_nluConfidence = std::forward<NluConfidenceT>(value);
53 }
54 template <typename NluConfidenceT = ConfidenceScore>
55 Interpretation& WithNluConfidence(NluConfidenceT&& value) {
56 SetNluConfidence(std::forward<NluConfidenceT>(value));
57 return *this;
58 }
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) {
71 m_sentimentResponseHasBeenSet = true;
72 m_sentimentResponse = std::forward<SentimentResponseT>(value);
73 }
74 template <typename SentimentResponseT = SentimentResponse>
75 Interpretation& WithSentimentResponse(SentimentResponseT&& value) {
76 SetSentimentResponse(std::forward<SentimentResponseT>(value));
77 return *this;
78 }
80
82
86 inline const Intent& GetIntent() const { return m_intent; }
87 inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; }
88 template <typename IntentT = Intent>
89 void SetIntent(IntentT&& value) {
90 m_intentHasBeenSet = true;
91 m_intent = std::forward<IntentT>(value);
92 }
93 template <typename IntentT = Intent>
94 Interpretation& WithIntent(IntentT&& value) {
95 SetIntent(std::forward<IntentT>(value));
96 return *this;
97 }
99
101
104 inline InterpretationSource GetInterpretationSource() const { return m_interpretationSource; }
105 inline bool InterpretationSourceHasBeenSet() const { return m_interpretationSourceHasBeenSet; }
107 m_interpretationSourceHasBeenSet = true;
108 m_interpretationSource = value;
109 }
112 return *this;
113 }
115 private:
116 ConfidenceScore m_nluConfidence;
117
118 SentimentResponse m_sentimentResponse;
119
120 Intent m_intent;
121
123 bool m_nluConfidenceHasBeenSet = false;
124 bool m_sentimentResponseHasBeenSet = false;
125 bool m_intentHasBeenSet = false;
126 bool m_interpretationSourceHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace LexRuntimeV2
131} // 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