AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PredictedIntent.h
1
6#pragma once
7#include <aws/lex/LexRuntimeService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex/model/IntentConfidence.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexRuntimeService
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_LEXRUNTIMESERVICE_API PredictedIntent() = default;
39 AWS_LEXRUNTIMESERVICE_API PredictedIntent(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXRUNTIMESERVICE_API PredictedIntent& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetIntentName() const { return m_intentName; }
50 inline bool IntentNameHasBeenSet() const { return m_intentNameHasBeenSet; }
51 template<typename IntentNameT = Aws::String>
52 void SetIntentName(IntentNameT&& value) { m_intentNameHasBeenSet = true; m_intentName = std::forward<IntentNameT>(value); }
53 template<typename IntentNameT = Aws::String>
54 PredictedIntent& WithIntentName(IntentNameT&& value) { SetIntentName(std::forward<IntentNameT>(value)); return *this;}
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) { m_nluIntentConfidenceHasBeenSet = true; m_nluIntentConfidence = std::forward<NluIntentConfidenceT>(value); }
66 template<typename NluIntentConfidenceT = IntentConfidence>
67 PredictedIntent& WithNluIntentConfidence(NluIntentConfidenceT&& value) { SetNluIntentConfidence(std::forward<NluIntentConfidenceT>(value)); return *this;}
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetSlots() const { return m_slots; }
75 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
76 template<typename SlotsT = Aws::Map<Aws::String, Aws::String>>
77 void SetSlots(SlotsT&& value) { m_slotsHasBeenSet = true; m_slots = std::forward<SlotsT>(value); }
78 template<typename SlotsT = Aws::Map<Aws::String, Aws::String>>
79 PredictedIntent& WithSlots(SlotsT&& value) { SetSlots(std::forward<SlotsT>(value)); return *this;}
80 template<typename SlotsKeyT = Aws::String, typename SlotsValueT = Aws::String>
81 PredictedIntent& AddSlots(SlotsKeyT&& key, SlotsValueT&& value) {
82 m_slotsHasBeenSet = true; m_slots.emplace(std::forward<SlotsKeyT>(key), std::forward<SlotsValueT>(value)); return *this;
83 }
85 private:
86
87 Aws::String m_intentName;
88 bool m_intentNameHasBeenSet = false;
89
90 IntentConfidence m_nluIntentConfidence;
91 bool m_nluIntentConfidenceHasBeenSet = false;
92
94 bool m_slotsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace LexRuntimeService
99} // 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