AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
PredictedIntent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex/LexRuntimeService_EXPORTS.h>
10#include <aws/lex/model/IntentConfidence.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexRuntimeService {
22namespace Model {
23
32 public:
33 AWS_LEXRUNTIMESERVICE_API PredictedIntent() = default;
34 AWS_LEXRUNTIMESERVICE_API PredictedIntent(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LEXRUNTIMESERVICE_API PredictedIntent& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetIntentName() const { return m_intentName; }
44 inline bool IntentNameHasBeenSet() const { return m_intentNameHasBeenSet; }
45 template <typename IntentNameT = Aws::String>
46 void SetIntentName(IntentNameT&& value) {
47 m_intentNameHasBeenSet = true;
48 m_intentName = std::forward<IntentNameT>(value);
49 }
50 template <typename IntentNameT = Aws::String>
51 PredictedIntent& WithIntentName(IntentNameT&& value) {
52 SetIntentName(std::forward<IntentNameT>(value));
53 return *this;
54 }
56
58
62 inline const IntentConfidence& GetNluIntentConfidence() const { return m_nluIntentConfidence; }
63 inline bool NluIntentConfidenceHasBeenSet() const { return m_nluIntentConfidenceHasBeenSet; }
64 template <typename NluIntentConfidenceT = IntentConfidence>
65 void SetNluIntentConfidence(NluIntentConfidenceT&& value) {
66 m_nluIntentConfidenceHasBeenSet = true;
67 m_nluIntentConfidence = std::forward<NluIntentConfidenceT>(value);
68 }
69 template <typename NluIntentConfidenceT = IntentConfidence>
70 PredictedIntent& WithNluIntentConfidence(NluIntentConfidenceT&& value) {
71 SetNluIntentConfidence(std::forward<NluIntentConfidenceT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Map<Aws::String, Aws::String>& GetSlots() const { return m_slots; }
81 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
82 template <typename SlotsT = Aws::Map<Aws::String, Aws::String>>
83 void SetSlots(SlotsT&& value) {
84 m_slotsHasBeenSet = true;
85 m_slots = std::forward<SlotsT>(value);
86 }
87 template <typename SlotsT = Aws::Map<Aws::String, Aws::String>>
88 PredictedIntent& WithSlots(SlotsT&& value) {
89 SetSlots(std::forward<SlotsT>(value));
90 return *this;
91 }
92 template <typename SlotsKeyT = Aws::String, typename SlotsValueT = Aws::String>
93 PredictedIntent& AddSlots(SlotsKeyT&& key, SlotsValueT&& value) {
94 m_slotsHasBeenSet = true;
95 m_slots.emplace(std::forward<SlotsKeyT>(key), std::forward<SlotsValueT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_intentName;
101
102 IntentConfidence m_nluIntentConfidence;
103
105 bool m_intentNameHasBeenSet = false;
106 bool m_nluIntentConfidenceHasBeenSet = false;
107 bool m_slotsHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace LexRuntimeService
112} // namespace Aws
AWS_LEXRUNTIMESERVICE_API PredictedIntent(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMESERVICE_API PredictedIntent & operator=(Aws::Utils::Json::JsonView jsonValue)
PredictedIntent & WithIntentName(IntentNameT &&value)
AWS_LEXRUNTIMESERVICE_API PredictedIntent()=default
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNluIntentConfidence(NluIntentConfidenceT &&value)
PredictedIntent & AddSlots(SlotsKeyT &&key, SlotsValueT &&value)
PredictedIntent & WithNluIntentConfidence(NluIntentConfidenceT &&value)
PredictedIntent & WithSlots(SlotsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSlots() const
const IntentConfidence & GetNluIntentConfidence() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue