AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNluConfidence(const ConfidenceScore& value) { m_nluConfidenceHasBeenSet = true; m_nluConfidence = value; }
56 inline void SetNluConfidence(ConfidenceScore&& value) { m_nluConfidenceHasBeenSet = true; m_nluConfidence = std::move(value); }
57 inline Interpretation& WithNluConfidence(const ConfidenceScore& value) { SetNluConfidence(value); return *this;}
58 inline Interpretation& WithNluConfidence(ConfidenceScore&& value) { SetNluConfidence(std::move(value)); return *this;}
60
62
67 inline const SentimentResponse& GetSentimentResponse() const{ return m_sentimentResponse; }
68 inline bool SentimentResponseHasBeenSet() const { return m_sentimentResponseHasBeenSet; }
69 inline void SetSentimentResponse(const SentimentResponse& value) { m_sentimentResponseHasBeenSet = true; m_sentimentResponse = value; }
70 inline void SetSentimentResponse(SentimentResponse&& value) { m_sentimentResponseHasBeenSet = true; m_sentimentResponse = std::move(value); }
71 inline Interpretation& WithSentimentResponse(const SentimentResponse& value) { SetSentimentResponse(value); return *this;}
72 inline Interpretation& WithSentimentResponse(SentimentResponse&& value) { SetSentimentResponse(std::move(value)); return *this;}
74
76
80 inline const Intent& GetIntent() const{ return m_intent; }
81 inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; }
82 inline void SetIntent(const Intent& value) { m_intentHasBeenSet = true; m_intent = value; }
83 inline void SetIntent(Intent&& value) { m_intentHasBeenSet = true; m_intent = std::move(value); }
84 inline Interpretation& WithIntent(const Intent& value) { SetIntent(value); return *this;}
85 inline Interpretation& WithIntent(Intent&& value) { SetIntent(std::move(value)); return *this;}
87
89
92 inline const InterpretationSource& GetInterpretationSource() const{ return m_interpretationSource; }
93 inline bool InterpretationSourceHasBeenSet() const { return m_interpretationSourceHasBeenSet; }
94 inline void SetInterpretationSource(const InterpretationSource& value) { m_interpretationSourceHasBeenSet = true; m_interpretationSource = value; }
95 inline void SetInterpretationSource(InterpretationSource&& value) { m_interpretationSourceHasBeenSet = true; m_interpretationSource = std::move(value); }
97 inline Interpretation& WithInterpretationSource(InterpretationSource&& value) { SetInterpretationSource(std::move(value)); return *this;}
99 private:
100
101 ConfidenceScore m_nluConfidence;
102 bool m_nluConfidenceHasBeenSet = false;
103
104 SentimentResponse m_sentimentResponse;
105 bool m_sentimentResponseHasBeenSet = false;
106
107 Intent m_intent;
108 bool m_intentHasBeenSet = false;
109
110 InterpretationSource m_interpretationSource;
111 bool m_interpretationSourceHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace LexRuntimeV2
116} // namespace Aws
Interpretation & WithNluConfidence(const ConfidenceScore &value)
void SetNluConfidence(ConfidenceScore &&value)
void SetInterpretationSource(InterpretationSource &&value)
Interpretation & WithSentimentResponse(const SentimentResponse &value)
Interpretation & WithNluConfidence(ConfidenceScore &&value)
Interpretation & WithInterpretationSource(const InterpretationSource &value)
void SetInterpretationSource(const InterpretationSource &value)
void SetSentimentResponse(SentimentResponse &&value)
void SetNluConfidence(const ConfidenceScore &value)
Interpretation & WithIntent(const Intent &value)
Interpretation & WithInterpretationSource(InterpretationSource &&value)
Interpretation & WithSentimentResponse(SentimentResponse &&value)
const ConfidenceScore & GetNluConfidence() const
AWS_LEXRUNTIMEV2_API Interpretation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSentimentResponse(const SentimentResponse &value)
const SentimentResponse & GetSentimentResponse() const
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
Interpretation & WithIntent(Intent &&value)
const InterpretationSource & GetInterpretationSource() const
AWS_LEXRUNTIMEV2_API Interpretation(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue