AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIntentName(const Aws::String& value) { m_intentNameHasBeenSet = true; m_intentName = value; }
52 inline void SetIntentName(Aws::String&& value) { m_intentNameHasBeenSet = true; m_intentName = std::move(value); }
53 inline void SetIntentName(const char* value) { m_intentNameHasBeenSet = true; m_intentName.assign(value); }
54 inline PredictedIntent& WithIntentName(const Aws::String& value) { SetIntentName(value); return *this;}
55 inline PredictedIntent& WithIntentName(Aws::String&& value) { SetIntentName(std::move(value)); return *this;}
56 inline PredictedIntent& WithIntentName(const char* value) { SetIntentName(value); return *this;}
58
60
64 inline const IntentConfidence& GetNluIntentConfidence() const{ return m_nluIntentConfidence; }
65 inline bool NluIntentConfidenceHasBeenSet() const { return m_nluIntentConfidenceHasBeenSet; }
66 inline void SetNluIntentConfidence(const IntentConfidence& value) { m_nluIntentConfidenceHasBeenSet = true; m_nluIntentConfidence = value; }
67 inline void SetNluIntentConfidence(IntentConfidence&& value) { m_nluIntentConfidenceHasBeenSet = true; m_nluIntentConfidence = std::move(value); }
69 inline PredictedIntent& WithNluIntentConfidence(IntentConfidence&& value) { SetNluIntentConfidence(std::move(value)); return *this;}
71
73
76 inline const Aws::Map<Aws::String, Aws::String>& GetSlots() const{ return m_slots; }
77 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
78 inline void SetSlots(const Aws::Map<Aws::String, Aws::String>& value) { m_slotsHasBeenSet = true; m_slots = value; }
79 inline void SetSlots(Aws::Map<Aws::String, Aws::String>&& value) { m_slotsHasBeenSet = true; m_slots = std::move(value); }
80 inline PredictedIntent& WithSlots(const Aws::Map<Aws::String, Aws::String>& value) { SetSlots(value); return *this;}
81 inline PredictedIntent& WithSlots(Aws::Map<Aws::String, Aws::String>&& value) { SetSlots(std::move(value)); return *this;}
82 inline PredictedIntent& AddSlots(const Aws::String& key, const Aws::String& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, value); return *this; }
83 inline PredictedIntent& AddSlots(Aws::String&& key, const Aws::String& value) { m_slotsHasBeenSet = true; m_slots.emplace(std::move(key), value); return *this; }
84 inline PredictedIntent& AddSlots(const Aws::String& key, Aws::String&& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, std::move(value)); return *this; }
85 inline PredictedIntent& AddSlots(Aws::String&& key, Aws::String&& value) { m_slotsHasBeenSet = true; m_slots.emplace(std::move(key), std::move(value)); return *this; }
86 inline PredictedIntent& AddSlots(const char* key, Aws::String&& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, std::move(value)); return *this; }
87 inline PredictedIntent& AddSlots(Aws::String&& key, const char* value) { m_slotsHasBeenSet = true; m_slots.emplace(std::move(key), value); return *this; }
88 inline PredictedIntent& AddSlots(const char* key, const char* value) { m_slotsHasBeenSet = true; m_slots.emplace(key, value); return *this; }
90 private:
91
92 Aws::String m_intentName;
93 bool m_intentNameHasBeenSet = false;
94
95 IntentConfidence m_nluIntentConfidence;
96 bool m_nluIntentConfidenceHasBeenSet = false;
97
99 bool m_slotsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace LexRuntimeService
104} // namespace Aws
PredictedIntent & AddSlots(const char *key, Aws::String &&value)
AWS_LEXRUNTIMESERVICE_API PredictedIntent(Aws::Utils::Json::JsonView jsonValue)
PredictedIntent & WithIntentName(Aws::String &&value)
PredictedIntent & AddSlots(Aws::String &&key, const char *value)
PredictedIntent & AddSlots(Aws::String &&key, Aws::String &&value)
PredictedIntent & WithSlots(const Aws::Map< Aws::String, Aws::String > &value)
AWS_LEXRUNTIMESERVICE_API PredictedIntent & operator=(Aws::Utils::Json::JsonView jsonValue)
PredictedIntent & AddSlots(const Aws::String &key, Aws::String &&value)
PredictedIntent & WithSlots(Aws::Map< Aws::String, Aws::String > &&value)
void SetNluIntentConfidence(const IntentConfidence &value)
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
PredictedIntent & WithNluIntentConfidence(const IntentConfidence &value)
AWS_LEXRUNTIMESERVICE_API PredictedIntent()
void SetSlots(Aws::Map< Aws::String, Aws::String > &&value)
void SetNluIntentConfidence(IntentConfidence &&value)
PredictedIntent & AddSlots(const char *key, const char *value)
PredictedIntent & AddSlots(Aws::String &&key, const Aws::String &value)
PredictedIntent & AddSlots(const Aws::String &key, const Aws::String &value)
PredictedIntent & WithNluIntentConfidence(IntentConfidence &&value)
void SetSlots(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetSlots() const
PredictedIntent & WithIntentName(const Aws::String &value)
PredictedIntent & WithIntentName(const char *value)
void SetIntentName(const Aws::String &value)
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