AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IntentOverride.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/lexv2-models/model/SlotValueOverride.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 LexModelsV2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LEXMODELSV2_API IntentOverride();
38 AWS_LEXMODELSV2_API IntentOverride(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXMODELSV2_API IntentOverride& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline IntentOverride& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline IntentOverride& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline IntentOverride& WithName(const char* value) { SetName(value); return *this;}
56
58
63 inline const Aws::Map<Aws::String, SlotValueOverride>& GetSlots() const{ return m_slots; }
64 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
65 inline void SetSlots(const Aws::Map<Aws::String, SlotValueOverride>& value) { m_slotsHasBeenSet = true; m_slots = value; }
66 inline void SetSlots(Aws::Map<Aws::String, SlotValueOverride>&& value) { m_slotsHasBeenSet = true; m_slots = std::move(value); }
67 inline IntentOverride& WithSlots(const Aws::Map<Aws::String, SlotValueOverride>& value) { SetSlots(value); return *this;}
68 inline IntentOverride& WithSlots(Aws::Map<Aws::String, SlotValueOverride>&& value) { SetSlots(std::move(value)); return *this;}
69 inline IntentOverride& AddSlots(const Aws::String& key, const SlotValueOverride& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, value); return *this; }
70 inline IntentOverride& AddSlots(Aws::String&& key, const SlotValueOverride& value) { m_slotsHasBeenSet = true; m_slots.emplace(std::move(key), value); return *this; }
71 inline IntentOverride& AddSlots(const Aws::String& key, SlotValueOverride&& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, std::move(value)); return *this; }
72 inline IntentOverride& AddSlots(Aws::String&& key, SlotValueOverride&& value) { m_slotsHasBeenSet = true; m_slots.emplace(std::move(key), std::move(value)); return *this; }
73 inline IntentOverride& AddSlots(const char* key, SlotValueOverride&& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, std::move(value)); return *this; }
74 inline IntentOverride& AddSlots(const char* key, const SlotValueOverride& value) { m_slotsHasBeenSet = true; m_slots.emplace(key, value); return *this; }
76 private:
77
78 Aws::String m_name;
79 bool m_nameHasBeenSet = false;
80
82 bool m_slotsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace LexModelsV2
87} // namespace Aws
const Aws::Map< Aws::String, SlotValueOverride > & GetSlots() const
void SetSlots(Aws::Map< Aws::String, SlotValueOverride > &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
IntentOverride & AddSlots(const char *key, const SlotValueOverride &value)
IntentOverride & WithSlots(const Aws::Map< Aws::String, SlotValueOverride > &value)
const Aws::String & GetName() const
IntentOverride & AddSlots(Aws::String &&key, const SlotValueOverride &value)
IntentOverride & WithName(Aws::String &&value)
IntentOverride & WithName(const char *value)
void SetName(const Aws::String &value)
IntentOverride & AddSlots(const Aws::String &key, const SlotValueOverride &value)
IntentOverride & WithName(const Aws::String &value)
void SetSlots(const Aws::Map< Aws::String, SlotValueOverride > &value)
AWS_LEXMODELSV2_API IntentOverride(Aws::Utils::Json::JsonView jsonValue)
IntentOverride & AddSlots(const Aws::String &key, SlotValueOverride &&value)
IntentOverride & AddSlots(const char *key, SlotValueOverride &&value)
IntentOverride & AddSlots(Aws::String &&key, SlotValueOverride &&value)
AWS_LEXMODELSV2_API IntentOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
IntentOverride & WithSlots(Aws::Map< Aws::String, SlotValueOverride > &&value)
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